Skip to content

Consistently use _ prefix for field names #4380

@manfred-brands

Description

@manfred-brands

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.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions