Skip to content

AA1003StaticMethodsShouldNotCreateState

David Arno edited this page Jul 18, 2016 · 1 revision

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.


AA1003 - Static Methods Should Not Create State

Report code: AA1003-StaticMethodsShouldNotCreateState

Summary

Status Planned for a future release
Description The only result from calling a static method should be the returned value, or an exception. Therefore it should not invoke any method that has no parameters and/or a void return type, nor write to any field or property.
Category Pure-Function Analyzers
Enabled by default: Yes
Severity: Error

Cause

How to fix violations

Not yet implemented.

How to suppress violations

Not yet implemented.

Clone this wiki locally