Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[automation] Auto-update linters version, help and documentation #1257

Merged
merged 1 commit into from
Feb 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions .automation/generated/flavors-stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -555,6 +555,10 @@
[
"2022-02-07T07:41:03",
2439227
],
[
"2022-02-09T01:41:08",
2441726
]
],
"ci_light": [
Expand Down Expand Up @@ -1113,6 +1117,10 @@
[
"2022-02-07T07:41:03",
7031
],
[
"2022-02-09T01:41:08",
7116
]
],
"dart": [
Expand Down Expand Up @@ -1671,6 +1679,10 @@
[
"2022-02-07T07:41:03",
2177
],
[
"2022-02-09T01:41:08",
2196
]
],
"documentation": [
Expand Down Expand Up @@ -2229,6 +2241,10 @@
[
"2022-02-07T07:41:03",
36295
],
[
"2022-02-09T01:41:08",
36935
]
],
"dotnet": [
Expand Down Expand Up @@ -2787,6 +2803,10 @@
[
"2022-02-07T07:41:03",
277249
],
[
"2022-02-09T01:41:08",
278432
]
],
"go": [
Expand Down Expand Up @@ -3345,6 +3365,10 @@
[
"2022-02-07T07:41:03",
7732
],
[
"2022-02-09T01:41:08",
7797
]
],
"java": [
Expand Down Expand Up @@ -3903,6 +3927,10 @@
[
"2022-02-07T07:41:03",
55617
],
[
"2022-02-09T01:41:08",
56236
]
],
"javascript": [
Expand Down Expand Up @@ -4461,6 +4489,10 @@
[
"2022-02-07T07:41:03",
84175
],
[
"2022-02-09T01:41:08",
85520
]
],
"php": [
Expand Down Expand Up @@ -5019,6 +5051,10 @@
[
"2022-02-07T07:41:03",
3944
],
[
"2022-02-09T01:41:08",
3958
]
],
"python": [
Expand Down Expand Up @@ -5577,6 +5613,10 @@
[
"2022-02-07T07:41:03",
54266
],
[
"2022-02-09T01:41:08",
55236
]
],
"ruby": [
Expand Down Expand Up @@ -6131,6 +6171,10 @@
[
"2022-02-07T07:41:03",
1847
],
[
"2022-02-09T01:41:08",
1853
]
],
"rust": [
Expand Down Expand Up @@ -6685,6 +6729,10 @@
[
"2022-02-07T07:41:03",
1579
],
[
"2022-02-09T01:41:08",
1585
]
],
"salesforce": [
Expand Down Expand Up @@ -7243,6 +7291,10 @@
[
"2022-02-07T07:41:03",
10371
],
[
"2022-02-09T01:41:08",
10405
]
],
"scala": [
Expand Down Expand Up @@ -7797,6 +7849,10 @@
[
"2022-02-07T07:41:03",
1429
],
[
"2022-02-09T01:41:08",
1435
]
],
"swift": [
Expand Down Expand Up @@ -8351,6 +8407,10 @@
[
"2022-02-07T07:41:03",
1469
],
[
"2022-02-09T01:41:08",
1475
]
],
"terraform": [
Expand Down Expand Up @@ -8909,6 +8969,10 @@
[
"2022-02-07T07:41:03",
36017
],
[
"2022-02-09T01:41:08",
36420
]
]
}
45 changes: 27 additions & 18 deletions .automation/generated/linter-helps.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,47 +54,56 @@
" Show version and how this binary was installed"
],
"ansible-lint": [
"usage: ansible-lint [-h] [-L] [-f {rich,plain,rst}] [-q] [-p]",
" [--parseable-severity] [--progressive] [-r RULESDIR] [-R]",
"usage: ansible-lint [-h] [-L] [-f {rich,plain,rst,codeclimate,quiet,pep8}]",
" [-q] [-p] [--parseable-severity] [--progressive]",
" [--project-dir PROJECT_DIR] [-r RULESDIR] [-R]",
" [--show-relpath] [-t TAGS] [-T] [-v] [-x SKIP_LIST]",
" [-w WARN_LIST] [--nocolor] [--force-color]",
" [--exclude EXCLUDE_PATHS] [-c CONFIG_FILE] [--version]",
" [playbook [playbook ...]]",
" [-w WARN_LIST] [--enable-list ENABLE_LIST] [--nocolor]",
" [--force-color] [--exclude EXCLUDE_PATHS] [-c CONFIG_FILE]",
" [--offline] [--version]",
" [lintables ...]",
"",
"positional arguments:",
" playbook One or more files or paths. When missing it will",
" lintables One or more files or paths. When missing it will",
" enable auto-detection mode.",
"",
"optional arguments:",
" -h, --help show this help message and exit",
" -L list all the rules",
" -f {rich,plain,rst} Format used rules output, (default: rich)",
" -q quieter, although not silent output",
" -p parseable output in the format of pep8",
" -f {rich,plain,rst,codeclimate,quiet,pep8}",
" Format used rules output, (default: rich)",
" -q quieter, reduce verbosity, can be specified twice.",
" -p parseable output, same as '-f pep8'",
" --parseable-severity parseable output including severity of rule",
" --progressive Return success if it detects a reduction in number of",
" violations compared with previous git commit. This",
" feature works only in git repositories.",
" --project-dir PROJECT_DIR",
" Location of project/repository, autodetected based on",
" location of configuration file.",
" -r RULESDIR Specify custom rule directories. Add -R to keep using",
" embedded rules from /usr/lib/python3.8/site-",
" embedded rules from /usr/local/lib/python3.9/site-",
" packages/ansiblelint/rules",
" -R Keep default rules when using -r",
" --show-relpath Display path relative to CWD",
" -t TAGS only check rules whose id/tags match these values",
" -T list all the tags",
" -v Increase verbosity level",
" -v Increase verbosity level (-vv for more)",
" -x SKIP_LIST only check rules whose id/tags do not match these",
" values",
" -w WARN_LIST only warn about these rules, unless overridden in",
" config file defaults to 'experimental'",
" --nocolor disable colored output",
" --force-color Try force colored output (relying on ansible's code)",
" --enable-list ENABLE_LIST",
" activate optional rules by their tag name",
" --nocolor disable colored output, same as NO_COLOR=1",
" --force-color Force colored output, same as FORCE_COLOR=1",
" --exclude EXCLUDE_PATHS",
" path to directories or files to skip. This option is",
" repeatable.",
" -c CONFIG_FILE Specify configuration file to use. Defaults to",
" \".ansible-lint\"",
" --version show program's version number and exit"
" --offline Disable installation of requirements.yml",
" --version"
],
"arm-ttk": [
"\u001b[91mTest-AzTemplate:",
Expand Down Expand Up @@ -329,8 +338,8 @@
" input).",
" --python-cell-magics TEXT When processing Jupyter Notebooks, add the",
" given magic to the list of known python-",
" magics (capture, python3, python, prun,",
" time, pypy, timeit). Useful for formatting",
" magics (timeit, time, python3, python,",
" capture, prun, pypy). Useful for formatting",
" cells with custom python magics.",
" -S, --skip-string-normalization",
" Don't normalize string quotes or prefixes.",
Expand Down Expand Up @@ -1405,8 +1414,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: ['E123', 'E226', 'E24', 'W504', 'W503',",
" 'E704', 'E121', 'E126'])",
" (Default: ['W503', 'E121', 'W504', 'E126', 'E123',",
" 'E704', 'E24', 'E226'])",
" --extend-ignore errors",
" Comma-separated list of errors and warnings to add to",
" the list of ignored ones. For example, ``--extend-",
Expand Down
9 changes: 5 additions & 4 deletions .automation/generated/linter-versions.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
{
"actionlint": "1.6.8",
"ansible-lint": "5.3.2",
"arm-ttk": "0.0.0",
"bandit": "1.7.2",
"bash-exec": "5.1.0",
"black": "22.1.0",
"cfn-lint": "0.58.0",
"checkov": "2.0.795",
"checkov": "2.0.812",
"checkstyle": "9.3",
"chktex": "1.7.6",
"clippy": "0.1.58",
"clj-kondo": "2022.01.15",
"coffeelint": "5.2.4",
"cpplint": "1.5.5",
"cspell": "5.18.3",
"cspell": "5.18.4",
"dartanalyzer": "0.0.0",
"dockerfilelint": "1.8.0",
"dotenv-linter": "3.2.0",
Expand Down Expand Up @@ -69,12 +70,12 @@
"shellcheck": "0.8.0",
"shfmt": "3.5.0",
"snakefmt": "0.4.4",
"snakemake": "6.15.2",
"snakemake": "6.15.3",
"spectral": "5.6.0",
"sql-lint": "0.0.19",
"sqlfluff": "0.9.4",
"standard": "15.0.1",
"stylelint": "14.3.0",
"stylelint": "14.4.0",
"swiftlint": "0.46.2",
"tekton-lint": "0.6.0",
"terraform-fmt": "1.1.5",
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ Note: Can be used with `megalinter/megalinter@beta` in your GitHub Action mega-l
- [checkov](https://www.checkov.io/) from 2.0.791 to **2.0.793** on 2022-02-06
- [phpstan](https://phpstan.org/) from 1.4.5 to **1.4.6** on 2022-02-06
- [checkov](https://www.checkov.io/) from 2.0.793 to **2.0.795** on 2022-02-06
- [stylelint](https://stylelint.io) from 14.3.0 to **14.4.0** on 2022-02-09
- [snakemake](https://snakemake.readthedocs.io/en/stable/) from 6.15.2 to **6.15.3** on 2022-02-09
- [cspell](https://github.com/streetsidesoftware/cspell/tree/master/packages/cspell) from 5.18.3 to **5.18.4** on 2022-02-09
- [checkov](https://www.checkov.io/) from 2.0.795 to **2.0.812** on 2022-02-09
<!-- linter-versions-end -->

## [v5.7.1] - 2022-02-02
Expand Down
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,7 @@ RUN ML_THIRD_PARTY_DIR="/third-party/kubeval" \
&& mv ${ML_THIRD_PARTY_DIR}/kubeval /usr/local/bin \
&& find ${ML_THIRD_PARTY_DIR} -type f -not -name 'LICENSE*' -delete -o -type d -empty -delete


# chktex installation
COPY --from=chktex /usr/bin/chktex /usr/bin/
RUN cd ~ && touch .chktexrc
Expand Down
Loading