PhpStorm 2019.3 Help

Code Inspections in EditorConfig

This topic lists all PhpStorm code inspections available in EditorConfig.

You can toggle specific inspections or change their severity level on the Editor | Inspections page of PhpStorm settings Ctrl+Alt+S.

Inspection

Description

Default Severity

Unused declaration

Reports unused declarations.

Warning Warning
Correctness of EditorConfig value

Reports any unexpected values.

Error Error
Duplicate letter in char class

Reports duplicate characters in the section's file wildcard pattern.

Warning Warning
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 Weak warning
Unexpected comma

Reports any commas that are not allowed in the current context.

Error Error
Too many wildcards

Reports sections that contain too many wildcards. They might lead to performance issues.

Weak Warning Weak warning
Uniqueness of occurrence of EditorConfig option

Reports properties that disable any other properties declared earlier in the file.

Warning Warning
Emptiness of EditorConfig section

Reports sections which don't have any properties.

Warning Warning
Deprecation of EditorConfig element

Reports deprecated properties.

Warning Warning
No matching files

Reports sections which don't match any files in the project.

Warning Warning
Missing required declaration

Reports declarations that miss required parts.

Error Error
Correctness of identifier reference

Reports invalid referenced identifiers.

Error Error
Redundant pattern enumeration

Reports pattern enumerations that contain only one possible pattern.

Error Error
Uniqueness of top-level declaration

Checks that an EditorConfig file has only one top-level declaration.

Error Error
Meaningfulness of EditorConfig option

Reports properties which don't affect the resulting code style.

Warning Warning
Correctness of root declaration

Reports unexpected top-level declarations.

Error Error
Redundant char class

Reports the file wildcard patterns with charclasses which have less than two symbols.

Warning Warning
Correctness of EditorConfig key

Reports unknown property values.

Warning Warning
List unexpected

Reports lists of values that can't be used in current context.

Error Error
Option redundancy

Reports options that override other options but have the same properties and values.

Warning Warning
Uniqueness of value in list

Reports repeated values in the list of the prohibited value repetitions.

Error Error
Empty header

Reports sections which have an empty file wildcard pattern.

Error Error
Redundancy of pattern enumeration

Reports redundancy in patterns.

Warning Warning
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 Weak warning
Wildcard redundancy

Reports wildcard patterns that could be safely removed.

Warning Warning
Pair unexpected

Reports pairs of values that can't be used in current context.

Error Error
Uniqueness of EditorConfig section

Reports sections which match the same file patterns.

Warning Warning
Last modified: 27 February 2020