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.