Merge pull request #738 from theodore-s-beers/patch-1

Use YAML syntax in FILTER_REGEX examples
This commit is contained in:
Lukas Gravley 2020-09-17 09:24:45 -05:00 committed by GitHub
commit 87db6105ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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