mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-22 08:41:02 -05:00
Use YAML syntax in FILTER_REGEX examples
I think it probably makes more sense for the examples in this README to follow YAML syntax, assuming that people will be running super-linter as a GitHub Action. There's a separate doc covering the process for running the linter locally, in which case, of course, environment variables would be set with an equals sign. It's not a big deal, but I thought I would make the suggestion.
This commit is contained in:
parent
58d3d191b8
commit
c1b2ccce03
1 changed files with 4 additions and 4 deletions
|
@ -294,11 +294,11 @@ If you need to disable certain _rules_ and _functionality_, you can view [Disabl
|
||||||
|
|
||||||
If you need to lint only a folder or exclude some files from linting, you can use optional environment parameters `FILTER_REGEX_INCLUDE` and `FILTER_REGEX_EXCLUDE`
|
If you need to lint only a folder or exclude some files from linting, you can use optional environment parameters `FILTER_REGEX_INCLUDE` and `FILTER_REGEX_EXCLUDE`
|
||||||
|
|
||||||
Examples :
|
Examples:
|
||||||
|
|
||||||
- Lint only src folder: `FILTER_REGEX_INCLUDE=.*src/.*`
|
- Lint only src folder: `FILTER_REGEX_INCLUDE: .*src/.*`
|
||||||
- Do not lint files inside test folder: `FILTER_REGEX_EXCLUDE=.*test/.*`
|
- Do not lint files inside test folder: `FILTER_REGEX_EXCLUDE: .*test/.*`
|
||||||
- Do not lint javascript files inside test folder: `FILTER_REGEX_EXCLUDE=.*test/.*.js`
|
- Do not lint javascript files inside test folder: `FILTER_REGEX_EXCLUDE: .*test/.*.js`
|
||||||
|
|
||||||
## Docker Hub
|
## Docker Hub
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue