Skip to content

Commit

Permalink
[automation] Auto-update linters version, help and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
nvuillam committed Jan 25, 2022
1 parent 8d849f4 commit 0a08505
Show file tree
Hide file tree
Showing 8 changed files with 49 additions and 43 deletions.
64 changes: 32 additions & 32 deletions .automation/generated/flavors-stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -509,8 +509,8 @@
2426620
],
[
"2022-01-25T07:19:01",
2426950
"2022-01-25T08:17:34",
2427037
]
],
"ci_light": [
Expand Down Expand Up @@ -1023,8 +1023,8 @@
6703
],
[
"2022-01-25T07:19:01",
6703
"2022-01-25T08:17:34",
6705
]
],
"dart": [
Expand Down Expand Up @@ -1537,8 +1537,8 @@
1980
],
[
"2022-01-25T07:19:01",
1984
"2022-01-25T08:17:34",
1989
]
],
"documentation": [
Expand Down Expand Up @@ -2051,8 +2051,8 @@
32914
],
[
"2022-01-25T07:19:01",
32996
"2022-01-25T08:17:34",
33106
]
],
"dotnet": [
Expand Down Expand Up @@ -2565,8 +2565,8 @@
271262
],
[
"2022-01-25T07:19:01",
271425
"2022-01-25T08:17:34",
271453
]
],
"go": [
Expand Down Expand Up @@ -3079,8 +3079,8 @@
7307
],
[
"2022-01-25T07:19:01",
7322
"2022-01-25T08:17:34",
7326
]
],
"java": [
Expand Down Expand Up @@ -3593,8 +3593,8 @@
52939
],
[
"2022-01-25T07:19:01",
53057
"2022-01-25T08:17:34",
53065
]
],
"javascript": [
Expand Down Expand Up @@ -4107,8 +4107,8 @@
77689
],
[
"2022-01-25T07:19:01",
77843
"2022-01-25T08:17:34",
77906
]
],
"php": [
Expand Down Expand Up @@ -4621,8 +4621,8 @@
3769
],
[
"2022-01-25T07:19:01",
3769
"2022-01-25T08:17:34",
3773
]
],
"python": [
Expand Down Expand Up @@ -5135,8 +5135,8 @@
49015
],
[
"2022-01-25T07:19:01",
49123
"2022-01-25T08:17:34",
49205
]
],
"ruby": [
Expand Down Expand Up @@ -5645,8 +5645,8 @@
1775
],
[
"2022-01-25T07:19:01",
1775
"2022-01-25T08:17:34",
1777
]
],
"rust": [
Expand Down Expand Up @@ -6155,8 +6155,8 @@
1509
],
[
"2022-01-25T07:19:01",
1509
"2022-01-25T08:17:34",
1511
]
],
"salesforce": [
Expand Down Expand Up @@ -6669,8 +6669,8 @@
9978
],
[
"2022-01-25T07:19:01",
9990
"2022-01-25T08:17:34",
9992
]
],
"scala": [
Expand Down Expand Up @@ -7179,8 +7179,8 @@
1354
],
[
"2022-01-25T07:19:01",
1354
"2022-01-25T08:17:34",
1356
]
],
"swift": [
Expand Down Expand Up @@ -7689,8 +7689,8 @@
1402
],
[
"2022-01-25T07:19:01",
1402
"2022-01-25T08:17:34",
1404
]
],
"terraform": [
Expand Down Expand Up @@ -8203,8 +8203,8 @@
33695
],
[
"2022-01-25T07:19:01",
33803
"2022-01-25T08:17:34",
33805
]
]
}
6 changes: 3 additions & 3 deletions .automation/generated/linter-helps.json
Original file line number Diff line number Diff line change
Expand Up @@ -1382,8 +1382,8 @@
" of opening bracket's line.",
" --ignore errors Comma-separated list of errors and warnings to ignore",
" (or skip). For example, ``--ignore=E4,E51,W234``.",
" (Default: ['E226', 'E126', 'E24', 'W503', 'E704',",
" 'W504', 'E121', 'E123'])",
" (Default: ['E226', 'E121', 'E704', 'W503', 'E24',",
" 'E123', 'E126', 'W504'])",
" --extend-ignore errors",
" Comma-separated list of errors and warnings to add to",
" the list of ignored ones. For example, ``--extend-",
Expand Down Expand Up @@ -6670,7 +6670,7 @@
" -h, --help display help for command"
],
"sqlfluff": [
"Usage: python -m sqlfluff [OPTIONS] COMMAND [ARGS]...",
"Usage: sqlfluff [OPTIONS] COMMAND [ARGS]...",
"",
" Sqlfluff is a modular sql linter for humans.",
"",
Expand Down
2 changes: 1 addition & 1 deletion .automation/generated/linter-versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"bash-exec": "5.1.0",
"black": "21.12",
"cfn-lint": "0.57.0",
"checkov": "2.0.754",
"checkov": "2.0.756",
"checkstyle": "9.2.1",
"chktex": "1.7.6",
"clippy": "0.1.58",
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Note: Can be used with `megalinter/megalinter@beta` in your GitHub Action mega-l
- [checkov](https://www.checkov.io/) from 2.0.746 to **2.0.749** on 2022-01-24
- [dotenv-linter](https://dotenv-linter.github.io/) from 3.1.1 to **3.2.0** on 2022-01-24
- [checkov](https://www.checkov.io/) from 2.0.749 to **2.0.754** on 2022-01-24
- [checkov](https://www.checkov.io/) from 2.0.754 to **2.0.756** on 2022-01-25
<!-- linter-versions-end -->

## [v5.6.0] - 2022-01-22
Expand Down
2 changes: 1 addition & 1 deletion docs/all_linters.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
| [**bash-exec**](https://tiswww.case.edu/php/chet/bash/bashtop.html){target=_blank} | 5.1.0 | <!-- --> | [BASH](descriptors/bash_bash_exec.md) | <!-- --> | [Web Site](https://tiswww.case.edu/php/chet/bash/bashtop.html){target=_blank} |
| [**black**](https://github.com/psf/black){target=_blank} | 21.12 | [MIT](licenses/black.md) | [PYTHON](descriptors/python_black.md) | :white_circle: | [Repository](https://github.com/psf/black){target=_blank} |
| [**cfn-lint**](https://github.com/martysweet/cfn-lint){target=_blank} | 0.57.0 | <!-- --> | [CLOUDFORMATION](descriptors/cloudformation_cfn_lint.md) | :white_circle: | [Web Site](https://github.com/martysweet/cfn-lint){target=_blank} |
| [**checkov**](https://github.com/bridgecrewio/checkov){target=_blank} | 2.0.754 | [Apache-2.0](licenses/checkov.md) | [TERRAFORM](descriptors/terraform_checkov.md) | :no_entry_sign: | [Repository](https://github.com/bridgecrewio/checkov){target=_blank} |
| [**checkov**](https://github.com/bridgecrewio/checkov){target=_blank} | 2.0.756 | [Apache-2.0](licenses/checkov.md) | [TERRAFORM](descriptors/terraform_checkov.md) | :no_entry_sign: | [Repository](https://github.com/bridgecrewio/checkov){target=_blank} |
| [**checkstyle**](https://github.com/checkstyle/checkstyle){target=_blank} | 9.2.1 | [Other](licenses/checkstyle.md) | [JAVA](descriptors/java_checkstyle.md) | :heart: | [MegaLinter reference](https://checkstyle.sourceforge.io/index.html#Related_Tools_Active_Tools){target=_blank} |
| [**chktex**](https://www.nongnu.org/chktex){target=_blank} | 1.7.6 | <!-- --> | [LATEX](descriptors/latex_chktex.md) | :white_circle: | [Web Site](https://www.nongnu.org/chktex){target=_blank} |
| [**clippy**](https://github.com/rust-lang/rust-clippy){target=_blank} | 0.1.58 | <!-- --> | [RUST](descriptors/rust_clippy.md) | :white_circle: | [Web Site](https://github.com/rust-lang/rust-clippy){target=_blank} |
Expand Down
4 changes: 2 additions & 2 deletions docs/descriptors/python_flake8.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,8 +124,8 @@ optional arguments:
of opening bracket's line.
--ignore errors Comma-separated list of errors and warnings to ignore
(or skip). For example, ``--ignore=E4,E51,W234``.
(Default: ['E226', 'E126', 'E24', 'W503', 'E704',
'W504', 'E121', 'E123'])
(Default: ['E226', 'E121', 'E704', 'W503', 'E24',
'E123', 'E126', 'W504'])
--extend-ignore errors
Comma-separated list of errors and warnings to add to
the list of ignored ones. For example, ``--extend-
Expand Down
11 changes: 8 additions & 3 deletions docs/descriptors/sql_sqlfluff.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<div align="center">
<a href="https://www.sqlfluff.com/" target="blank" title="Visit linter Web Site">
<img src="https://raw.githubusercontent.com/sqlfluff/sqlfluff/master/images/sqlfluff-wide.png" alt="sqlfluff" height="150px" class="megalinter-banner">
<img src="https://raw.githubusercontent.com/sqlfluff/sqlfluff/main/images/sqlfluff-wide.png" alt="sqlfluff" height="150px" class="megalinter-banner">
</a>
</div>

Expand All @@ -12,6 +12,7 @@
- Version in MegaLinter: **0.9.1**
- Visit [Official Web Site](https://www.sqlfluff.com/){target=_blank}
- See [How to configure sqlfluff rules](https://docs.sqlfluff.com/en/stable/configuration.html){target=_blank}
- If custom `.sqlfluff` config file is not found, [.sqlfluff](https://github.com/megalinter/megalinter/tree/main/TEMPLATES/.sqlfluff){target=_blank} will be used
- See [Index of problems detected by sqlfluff](https://docs.sqlfluff.com/en/stable/rules.html){target=_blank}

[![sqlfluff - GitHub](https://gh-card.dev/repos/sqlfluff/sqlfluff.svg?fullname=)](https://github.com/sqlfluff/sqlfluff){target=_blank}
Expand All @@ -31,7 +32,7 @@
| SQL_SQLFLUFF_FILE_NAMES_REGEX | File name regex filters. Regular expression list for filtering files by their base names using regex full match. Empty list includes all files<br/>Ex: `["Dockerfile(-.+)?", "Jenkinsfile"]` | Include every file |
| SQL_SQLFLUFF_PRE_COMMANDS | List of bash commands to run before the linter | None |
| SQL_SQLFLUFF_POST_COMMANDS | List of bash commands to run after the linter | None |
| SQL_SQLFLUFF_CONFIG_FILE | sqlfluff configuration file name</br>Use `LINTER_DEFAULT` to let the linter find it | `setup.cfg` |
| SQL_SQLFLUFF_CONFIG_FILE | sqlfluff configuration file name</br>Use `LINTER_DEFAULT` to let the linter find it | `.sqlfluff` |
| SQL_SQLFLUFF_RULES_PATH | Path where to find linter configuration file | Workspace folder, then MegaLinter default rules |
| SQL_SQLFLUFF_DISABLE_ERRORS | Run linter but consider errors as warnings | `false` |
| SQL_SQLFLUFF_DISABLE_ERRORS_IF_LESS_THAN | Maximum number of errors allowed | `0` |
Expand Down Expand Up @@ -76,11 +77,15 @@ This linter is available in the following flavours
sqlfluff myfile.sql
```

```shell
sqlfluff --config .sqlfluff myfile.sql myfile2.sql
```


### Help content

```shell
Usage: python -m sqlfluff [OPTIONS] COMMAND [ARGS]...
Usage: sqlfluff [OPTIONS] COMMAND [ARGS]...

Sqlfluff is a modular sql linter for humans.

Expand Down
2 changes: 1 addition & 1 deletion docs/descriptors/terraform_checkov.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

## checkov documentation

- Version in MegaLinter: **2.0.754**
- Version in MegaLinter: **2.0.756**
- Visit [Official Web Site](https://www.checkov.io/){target=_blank}
- See [How to disable checkov rules in files](https://www.checkov.io/2.Basics/Suppressing%20and%20Skipping%20Policies.html){target=_blank}
- See [Index of problems detected by checkov](https://www.checkov.io/5.Policy%20Index/all.html){target=_blank}
Expand Down

0 comments on commit 0a08505

Please sign in to comment.