Skip to main content

check

Configuration for the config check command.

Parameters

This is expected to be a list of objects containing the following parameters:

ParameterTypeDescription
patternslist of stringsPattern of files to include (or exclude, if starting by !) in the check. Allows for glob patterns to be used.
ignorelist of stringsError codes to ignore.
selectlist of stringsError codes to select.

Example

check:
patterns:
# Match yaml files at the root of the repository
- "*.yaml"
# Match yaml files in all subdirectories
- "**/*.yaml"
# Exclude yaml files in the `test` directory
- "!test/**/*.yaml"
# Exclude all files in the `test` directory and its subdirectories
- "!test/**"

ignore:
- "C" # Ignore all errors of type C
- "M0" # Ignore all errors of type M0
- "P002" # Ignore all errors of type P002

select:
- "C001" # Select all errors of type C001
- "M" # Select all errors of type M
- "P0" # Select all errors of type P