Code Inspections in EditorConfig
This topic lists all JetBrains Rider code inspections available in EditorConfig.
You can toggle specific inspections or change their severity level on the Editor | Inspection Settings | Inspection Severity | Other Languages page of the Settings/Preferences Ctrl+Alt+S.
Inspection | Description | Default Severity |
---|---|---|
Correctness of EditorConfig key | Reports unknown property values. | Warning |
Correctness of EditorConfig value | Reports any unexpected values. | Error |
Correctness of identifier reference | Reports invalid referenced identifiers. | Error |
Correctness of root declaration | Reports unexpected top-level declarations. | Error |
Deprecation of EditorConfig element | Reports deprecated properties. | Warning |
Duplicate letter in char class | Reports duplicate characters in the section's file wildcard pattern. | Warning |
Emptiness of EditorConfig section | Reports sections which don't have any properties. | Warning |
Empty header | Reports sections which have an empty file wildcard pattern. | Error |
List unexpected | Reports lists of values that can't be used in current context. | Error |
Meaningfulness of EditorConfig option | Reports properties which don't affect the resulting code style. | Warning |
Missing required declaration | Reports declarations that miss required parts. | Error |
No matching files | Reports sections which don't match any files in the project. | Warning |
Option redundancy | Reports options that override other options but have the same properties and values. | Warning |
Pair unexpected | Reports pairs of values that can't be used in current context. | Error |
Partial override | Reports header with glob that has suspicious intersection with one of related globs. Example: [{foo, bar}] and [{foo, bas}] have non-empty intersection and none of them is subcase of the other. This is likely to be a typo. | Weak warning |
Redundancy of pattern enumeration | Reports redundancy in patterns. | Warning |
Redundant char class | Reports the file wildcard patterns with charclasses which have less than two symbols. | Warning |
Redundant pattern enumeration | Reports pattern enumerations that contain only one possible pattern. | Error |
Space in header | Reports any suspicious spaces in the section's file wildcard pattern. Even though spaces can be used in the wildcard patterns, they are likely to be a typo. | Weak warning |
Too many wildcards | Reports sections that contain too many wildcards. They might lead to performance issues. | Weak warning |
Unexpected comma | Reports any commas that are not allowed in the current context. | Error |
Uniqueness of EditorConfig section | Reports sections which match the same file patterns. | Warning |
Uniqueness of occurrence of EditorConfig option | Reports properties that disable any other properties declared earlier in the file. | Warning |
Uniqueness of top-level declaration | Checks that an EditorConfig file has only one top-level declaration. | Error |
Uniqueness of value in list | Reports repeated values in the list of the prohibited value repetitions. | Error |
Unused declaration | Reports unused declarations. | Warning |
Wildcard redundancy | Reports wildcard patterns that could be safely removed. | Warning |