StyleCop Analyzers Configuration
Configuration file for StyleCop Analyzers
Validate with Lintel
npx @lintel/lintel check
Configuration file for StyleCop Analyzers
Properties
The top-level object containing configuration properties for built-in rules.
8 nested properties
Indentation configuration
3 nested properties
Specifies the indentation size.
Specifies the tab width.
Specifies whether indentation should use hard tabs instead of spaces.
Configuration for spacing rules (SA1000-)
Configuration for readability rules (SA1100-)
1 nested properties
When true, diagnostics will not be reported for using aliases of built-in types.
Configuration for ordering rules (SA1200-)
4 nested properties
Specifies the traits used for ordering elements within a document, along with their precedence.
[
"kind",
"accessibility",
"constant",
"static",
"readonly"
]
When true, System using directives should be placed before other using directives.
Specifies the desired placement of using directives. insideNamespace: Place using directives inside the namespace definition outsideNamespace: Place using directives outside the namespace definition preserve: Allow using directives inside or outside the namespace definition
Specifies if using groups should be separated by a blank line. allow: A blank line is allowed, but not required require: A blank line is required omit: A blank line is not allowed
Configuration for naming rules (SA1300-)
5 nested properties
Determines whether common Hungarian notation prefixes should be allowed.
Allowed Hungarian notation prefixes.
[]
Allowed namespace components, such as ones beginning with a lowercase letter.
[]
Specifies whether inferred tuple element names will be analyzed as well.
Specifies the casing convention used for tuple element names.
Configuration for ordering rules (SA1400-)
1 nested properties
The set of type kinds which should be placed in separate files according to the type name.
[
"class"
]
Configuration for layout rules (SA1500-)
3 nested properties
Specifies the handling for newline characters which appear at the end of a file allow: Files are allowed to end with a single newline character, but it is not required require: Files are required to end with a single newline character omit: Files may not end with a newline character
Specifies if SA1519 will allow consecutive using statements without braces
Specifies if SA1500 will allow the 'while' expression of a 'do'/'while' loop to be on the same line as the closing brace.
Configuration for documentation rules (SA1600-)
13 nested properties
Specifies whether exposed elements need to be documented. When true, all publicly-exposed types and members require documentation.
Specifies whether internal elements need to be documented. When true, all internally-exposed types and members require documentation.
Specifies whether private elements need to be documented. When true, all types and members except for declared private fields require documentation.
Specifies whether interface members need to be documented. When true, all interface members require documentation, regardless of accessibility.
Specifies whether private fields need to be documented. When true, all fields require documentation, regardless of accessibility.
The name of the company which appears in file headers.
The copyright text which should appear in file headers.
Replacement variables which may be used in the 'copyrightText' value.
Determines whether the file header should be wrapped in the StyleCop-standard XML structure.
The text used as decoration for the copyright header comment.
Specifies the preferred naming convention for files. The default value "stylecop" uses the naming convention defined by StyleCop Classic, while "metadata" uses a file naming convention that matches the metadata names of types.
The culture that should be used for documentation comments.
Specifies the top-level tags within XML documentation that will be excluded from punctuation analysis.
[
"seealso"
]