C#-FieldNotPrivateNorProtected¶
A field should be either private or protected
Required inputs: CSharpAST
Possible Messages
Key |
Text |
Severity |
Disabled |
|---|---|---|---|
no_public_field |
Field has neither private nor protected visibility. |
None |
False |
Options¶
This rule shares the following common options: excludes, includes, justification_checker, post_processing, provider, severity
The following places define options that affect this rule: Stylechecks, Analysis-GlobalOptions
report_const_fields¶
report_const_fields : bool = False
report_fields_in_struct_layout_types¶
report_fields_in_struct_layout_types : bool = False
report_fields_in_structs¶
report_fields_in_structs : bool = False
report_readonly_fields¶
report_readonly_fields : bool = False