Code Inspections in EditorConfig
This topic lists all GoLand code inspections available in EditorConfig.
You can toggle specific inspections or change their severity level on the Editor | Inspections page of the Settings/Preferences Ctrl+Alt+S.
Inspection | Description | Default Severity |
---|---|---|
Correctness of EditorConfig key | Reports unknown property values. | ![]() |
Correctness of EditorConfig value | Reports any unexpected values. | ![]() |
Correctness of identifier reference | Reports invalid referenced identifiers. | ![]() |
Correctness of root declaration | Reports unexpected top-level declarations. | ![]() |
Deprecation of EditorConfig element | Reports deprecated properties. | ![]() |
Duplicate letter in char class | Reports duplicate characters in the section's file wildcard pattern. | ![]() |
Emptiness of EditorConfig section | Reports sections which don't have any properties. | ![]() |
Empty header | Reports sections which have an empty file wildcard pattern. | ![]() |
List unexpected | Reports lists of values that can't be used in current context. | ![]() |
Meaningfulness of EditorConfig option | Reports properties which don't affect the resulting code style. | ![]() |
Missing required declaration | Reports declarations that miss required parts. | ![]() |
No matching files | Reports sections which don't match any files in the project. | ![]() |
Option redundancy | Reports options that override other options but have the same properties and values. | ![]() |
Pair unexpected | Reports pairs of values that can't be used in current context. | ![]() |
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. | ![]() |
Redundancy of pattern enumeration | Reports redundancy in patterns. | ![]() |
Redundant char class | Reports the file wildcard patterns with charclasses which have less than two symbols. | ![]() |
Redundant pattern enumeration | Reports pattern enumerations that contain only one possible pattern. | ![]() |
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. | ![]() |
Too many wildcards | Reports sections that contain too many wildcards. They might lead to performance issues. | ![]() |
Unexpected comma | Reports any commas that are not allowed in the current context. | ![]() |
Uniqueness of EditorConfig section | Reports sections which match the same file patterns. | ![]() |
Uniqueness of occurrence of EditorConfig option | Reports properties that disable any other properties declared earlier in the file. | ![]() |
Uniqueness of top-level declaration | Checks that an EditorConfig file has only one top-level declaration. | ![]() |
Uniqueness of value in list | Reports repeated values in the list of the prohibited value repetitions. | ![]() |
Unused declaration | Reports unused declarations. | ![]() |
Wildcard redundancy | Reports wildcard patterns that could be safely removed. | ![]() |