-
Notifications
You must be signed in to change notification settings - Fork 4
AA2100MethodParametersMustNotBeRefOrOut
Warning: this wiki page is auto-generated by the Arnolyzer solution-build process. Do not directly edit this page, as your changes will be lost on the next commit. To edit this page, please refer to Contributing to this project.
These wiki pages reflect the state of the project in development, per the last commit. For details of the latest release of the Arnolyzer Analysers, please see the Arnolyzer website.
Report code: AA2100-MethodParametersMustNotBeRefOrOut
Status | Implemented |
Description | Method parameters must not use REF or OUT parameters; all results should be via a return |
Category | Single Responsibilty Analyzers |
Enabled by default: | Yes |
Severity: | Error |
out
parameters are normally used to return a second value from a method, which in turn is often a sign that the method is
doing more than one thing and thus is breaking the Single Responsibility Principle.
There currently aren't any implemented code-fixes for this rule.
This rule cannot be suppressed.