Our current .editorconfig says that private fields should be prefixed with an _ and in camel case.
Our code base does not consistently reflect this.
For maintainers a consistent code style is much easier to work with.
Having a prefix for fields makes it obvious in code reviews if code uses a field or a local variable.
Increase level of IDE1006 Naming rule violation to warning and fix resulting violations.
At the same time fix this.name = name where the this prefix was needed because fields and parameters were named the same.
Our current
.editorconfigsays thatprivatefields should be prefixed with an_and in camel case.Our code base does not consistently reflect this.
For maintainers a consistent code style is much easier to work with.
Having a prefix for fields makes it obvious in code reviews if code uses a field or a local variable.
Increase level of
IDE1006 Naming rule violationtowarningand fix resulting violations.At the same time fix
this.name = namewhere thethisprefix was needed because fields and parameters were named the same.