Code Inspections in YAML
This topic lists all JetBrains Rider code inspections available in YAML.
You can toggle specific inspections or change their severity level on the Editor | Inspection Settings | Inspection Severity | Other Languages settings page CtrlAlt0S.
Inspection | Description | Default Severity |
---|---|---|
Deprecated YAML key | Reports deprecated keys in YAML files. Deprecation is checked only if there exists a JSON schema associated with the corresponding YAML file. Note that the deprecation mechanism is not defined in the JSON Schema specification yet, and this inspection uses a non-standard Scheme deprecation example:
The following is an example with the corresponding warning:
| |
Duplicated YAML keys | Reports duplicated keys in YAML files. Example:
| |
Recursive alias | Reports recursion in YAML aliases. Alias can't be recursive and be used inside the data referenced by a corresponding anchor. Example:
| |
Unresolved alias | Reports unresolved aliases in YAML files. Example:
| |
Unused anchor | Reports unused anchors. Example:
| |
Validation by JSON Schema | Reports inconsistencies between a YAML file and a JSON Schema if the schema is specified. Scheme example:
The following is an example with the corresponding warning:
|