
* Modify rule S1110: Update rule description Improve grammar and sentence structure. * Modify rule S3603: Update rule description Improve grammar in the sentence structure. * Modify rule S3449: Update rule description Clarify the sentence structure with minor word changes. * Modify rule S3449: correct word in description Correct spelling mistakes in two instances of one word.
6 lines
420 B
Plaintext
6 lines
420 B
Plaintext
== Why is this an issue?
|
|
|
|
Marking a method with the https://learn.microsoft.com/en-us/dotnet/api/system.diagnostics.contracts.pureattribute[`Pure`] attribute indicates that the method doesn't make any visible state changes. Therefore, a `Pure` method should return a result. Otherwise, it indicates a no-operation call.
|
|
|
|
Using `Pure` on a `void` method is either by mistake or the method is not doing a meaningful task.
|