Skip to content

Commit

Permalink
[automation] Auto-update linters version, help and documentation (#1351)
Browse files Browse the repository at this point in the history
* [automation] Auto-update linters version, help and documentation

* Disable rstfmt

* pylint
  • Loading branch information
nvuillam committed Mar 27, 2022
1 parent abfb0dc commit 7694809
Show file tree
Hide file tree
Showing 74 changed files with 222 additions and 140 deletions.
64 changes: 64 additions & 0 deletions .automation/generated/flavors-stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -679,6 +679,10 @@
[
"2022-03-24T01:48:26",
2472315
],
[
"2022-03-26T22:36:41",
2473595
]
],
"ci_light": [
Expand Down Expand Up @@ -1361,6 +1365,10 @@
[
"2022-03-24T01:48:26",
8517
],
[
"2022-03-26T22:36:41",
8771
]
],
"dart": [
Expand Down Expand Up @@ -2043,6 +2051,10 @@
[
"2022-03-24T01:48:26",
2488
],
[
"2022-03-26T22:36:41",
2499
]
],
"documentation": [
Expand Down Expand Up @@ -2725,6 +2737,10 @@
[
"2022-03-24T01:48:26",
46087
],
[
"2022-03-26T22:36:41",
46328
]
],
"dotnet": [
Expand Down Expand Up @@ -3407,6 +3423,10 @@
[
"2022-03-24T01:48:26",
291690
],
[
"2022-03-26T22:36:41",
291986
]
],
"go": [
Expand Down Expand Up @@ -4089,6 +4109,10 @@
[
"2022-03-24T01:48:26",
9027
],
[
"2022-03-26T22:36:41",
9118
]
],
"java": [
Expand Down Expand Up @@ -4771,6 +4795,10 @@
[
"2022-03-24T01:48:26",
65969
],
[
"2022-03-26T22:36:41",
66689
]
],
"javascript": [
Expand Down Expand Up @@ -5453,6 +5481,10 @@
[
"2022-03-24T01:48:26",
99034
],
[
"2022-03-26T22:36:41",
99756
]
],
"php": [
Expand Down Expand Up @@ -6135,6 +6167,10 @@
[
"2022-03-24T01:48:26",
4693
],
[
"2022-03-26T22:36:41",
4747
]
],
"python": [
Expand Down Expand Up @@ -6817,6 +6853,10 @@
[
"2022-03-24T01:48:26",
65983
],
[
"2022-03-26T22:36:41",
66332
]
],
"ruby": [
Expand Down Expand Up @@ -7495,6 +7535,10 @@
[
"2022-03-24T01:48:26",
2007
],
[
"2022-03-26T22:36:41",
2010
]
],
"rust": [
Expand Down Expand Up @@ -8173,6 +8217,10 @@
[
"2022-03-24T01:48:26",
2855
],
[
"2022-03-26T22:36:41",
2897
]
],
"salesforce": [
Expand Down Expand Up @@ -8855,6 +8903,10 @@
[
"2022-03-24T01:48:26",
11477
],
[
"2022-03-26T22:36:41",
11500
]
],
"scala": [
Expand Down Expand Up @@ -9533,6 +9585,10 @@
[
"2022-03-24T01:48:26",
1463
],
[
"2022-03-26T22:36:41",
1463
]
],
"swift": [
Expand Down Expand Up @@ -10211,6 +10267,10 @@
[
"2022-03-24T01:48:26",
1501
],
[
"2022-03-26T22:36:41",
1501
]
],
"terraform": [
Expand Down Expand Up @@ -10893,6 +10953,10 @@
[
"2022-03-24T01:48:26",
46854
],
[
"2022-03-26T22:36:41",
47461
]
]
}
38 changes: 21 additions & 17 deletions .automation/generated/linter-helps.json
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,8 @@
" input).",
" --python-cell-magics TEXT When processing Jupyter Notebooks, add the",
" given magic to the list of known python-",
" magics (python, pypy, timeit, time, prun,",
" capture, python3). Useful for formatting",
" magics (timeit, time, python, capture,",
" python3, pypy, prun). Useful for formatting",
" cells with custom python magics.",
" -S, --skip-string-normalization",
" Don't normalize string quotes or prefixes.",
Expand Down Expand Up @@ -1514,8 +1514,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: ['E126', 'E704', 'E123', 'W504', 'W503',",
" 'E24', 'E121', 'E226'])",
" (Default: ['E123', 'W503', 'E24', 'W504', 'E704',",
" 'E121', 'E226', 'E126'])",
" --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 @@ -2400,7 +2400,7 @@
" [--exclude-files <glob> [<glob>] ...]",
" [--include-files <glob> [<glob>] ...]",
"",
"luacheck 0.25.0, a linter and a static analyzer for Lua.",
"luacheck 0.26.0, a linter and a static analyzer for Lua.",
"",
"Arguments:",
" files List of files, directories and rockspecs to check. Pass",
Expand Down Expand Up @@ -2558,7 +2558,7 @@
"",
"Links:",
"",
" Luacheck on GitHub: https://github.com/luarocks/luacheck",
" Luacheck on GitHub: https://github.com/lunarmodules/luacheck",
" Luacheck documentation: https://luacheck.readthedocs.org"
],
"markdown-link-check": [
Expand Down Expand Up @@ -3860,7 +3860,8 @@
" --ignore-patterns=<pattern>[,<pattern>...]",
" Files or directories matching the regex patterns are",
" skipped. The regex matches against base names, not",
" paths. [current: none]",
" paths. The default value ignores emacs file locks",
" [current: ^\\.#]",
" --ignore-paths=<pattern>[,<pattern>...]",
" Add files or directories matching the regex patterns",
" to the ignore-list. The regex matches against paths",
Expand Down Expand Up @@ -3911,6 +3912,8 @@
" continuous integration scripts.",
" --from-stdin Interpret the stdin as a python script, whose filename",
" needs to be passed as the module_or_package argument.",
" --recursive=<yn> Discover python modules and packages in the file",
" system subtree. [current: no]",
" --py-version=<py_version>",
" Minimum Python version to use for version dependent",
" checks. Will default to the version used to run",
Expand Down Expand Up @@ -3942,8 +3945,8 @@
" --confidence=<levels>",
" Only show warnings with the listed confidence levels.",
" Leave empty to show all. Valid levels: HIGH,",
" INFERENCE, INFERENCE_FAILURE, UNDEFINED. [current:",
" none]",
" CONTROL_FLOW, INFERENCE, INFERENCE_FAILURE, UNDEFINED.",
" [current: none]",
" -e <msg ids>, --enable=<msg ids>",
" Enable the message, report, category or checker with",
" the given id(s). You can either give multiple",
Expand All @@ -3958,7 +3961,7 @@
" multiple times (only on the command line, not in the",
" configuration file where it should appear only once).",
" You can also use \"--disable=all\" to disable everything",
" first and then reenable specific checks. For example,",
" first and then re-enable specific checks. For example,",
" if you want to run only the similarities checker, you",
" can use \"--disable=all --enable=similarities\". If you",
" want to run only the classes checker, but have no",
Expand All @@ -3977,13 +3980,14 @@
" --evaluation=<python_expression>",
" Python expression which should return a score less",
" than or equal to 10. You have access to the variables",
" 'error', 'warning', 'refactor', and 'convention' which",
" contain the number of messages in each category, as",
" well as 'statement' which is the total number of",
" statements analyzed. This score is used by the global",
" evaluation report (RP0004). [current: 10.0 - ((float(5",
" * error + warning + refactor + convention) /",
" statement) * 10)]",
" 'fatal', 'error', 'warning', 'refactor', 'convention',",
" and 'info' which contain the number of messages in",
" each category, as well as 'statement' which is the",
" total number of statements analyzed. This score is",
" used by the global evaluation report (RP0004).",
" [current: max(0, 0 if fatal else 10.0 - ((float(5 *",
" error + warning + refactor + convention) / statement)",
" * 10))]",
" -s <y or n>, --score=<y or n>",
" Activate the evaluation score. [current: yes]",
" --msg-template=<template>",
Expand Down
24 changes: 12 additions & 12 deletions .automation/generated/linter-versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,25 @@
"bash-exec": "5.1.16",
"black": "22.1.0",
"cfn-lint": "0.58.4",
"checkov": "2.0.983",
"checkov": "2.0.995",
"checkstyle": "10.0",
"chktex": "1.7.6",
"clippy": "0.1.59",
"clj-kondo": "2022.02.09",
"coffeelint": "5.2.5",
"cpplint": "1.6.0",
"cspell": "5.19.2",
"cspell": "5.19.3",
"dartanalyzer": "0.0.0",
"dockerfilelint": "1.8.0",
"dotenv-linter": "3.2.0",
"dotnet-format": "000",
"editorconfig-checker": "2.3.5",
"eslint": "8.11.0",
"eslint": "8.12.0",
"eslint-plugin-jsonc": "2.2.1",
"flake8": "4.0.1",
"gherkin-lint": "0.0.0",
"git_diff": "2.30.2",
"golangci-lint": "1.45.0",
"golangci-lint": "1.45.2",
"graphql-schema-linter": "2.0.1",
"hadolint": "2.9.1",
"htmlhint": "1.1.2",
Expand All @@ -36,24 +36,24 @@
"kubeconform": "0.4.12",
"kubeval": "0.16.1",
"lintr": "0.0.0",
"luacheck": "0.25.0",
"luacheck": "0.26.0",
"markdown-link-check": "3.10.0",
"markdown-table-formatter": "1.3.0",
"markdownlint": "0.31.1",
"misspell": "0.3.4",
"mypy": "0.941",
"mypy": "0.942",
"npm-groovy-lint": "9.4.1",
"perlcritic": "1.140",
"php": "7.4.26",
"phpcs": "3.6.2",
"phplint": "3.0",
"phpstan": "1.4.10",
"phpstan": "1.5.0",
"powershell": "7.2.2",
"prettier": "2.6.0",
"prettier": "2.6.1",
"protolint": "0.37.1",
"psalm": "Psalm.4.x-dev@",
"puppet-lint": "2.5.2",
"pylint": "2.12.2",
"pylint": "2.13.1",
"raku": "2020.10",
"remark-lint": "14.0.2",
"revive": "0.0.0",
Expand All @@ -71,12 +71,12 @@
"shellcheck": "0.8.0",
"shfmt": "3.5.0",
"snakefmt": "0.6.0",
"snakemake": "7.3.1",
"snakemake": "7.3.2",
"spectral": "5.6.0",
"sql-lint": "0.0.19",
"sqlfluff": "0.11.1",
"sqlfluff": "0.11.2",
"standard": "15.0.1",
"stylelint": "14.6.0",
"stylelint": "14.6.1",
"swiftlint": "0.46.5",
"tekton-lint": "0.6.0",
"terraform-fmt": "1.1.7",
Expand Down
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),

Note: Can be used with `megalinter/megalinter@beta` in your GitHub Action mega-linter.yml file, or with `megalinter/megalinter:beta` docker image

- Linters
- Disable rstfmt as it is neither stable or maintained

- Linter versions upgrades
- [checkov](https://www.checkov.io/) from 2.0.975 to **2.0.977** on 2022-03-21
- [bash-exec](https://tiswww.case.edu/php/chet/bash/bashtop.html) from 5.1.0 to **5.1.16** on 2022-03-22
Expand All @@ -23,6 +26,18 @@ Note: Can be used with `megalinter/megalinter@beta` in your GitHub Action mega-l
- [sfdx-scanner-aura](https://forcedotcom.github.io/sfdx-scanner/) from 2.13.0 to **2.13.1** on 2022-03-24
- [sfdx-scanner-lwc](https://forcedotcom.github.io/sfdx-scanner/) from 2.13.0 to **2.13.1** on 2022-03-24
- [snakemake](https://snakemake.readthedocs.io/en/stable/) from 7.3.0 to **7.3.1** on 2022-03-24
- [stylelint](https://stylelint.io) from 14.6.0 to **14.6.1** on 2022-03-26
- [golangci-lint](https://golangci-lint.run/) from 1.45.0 to **1.45.2** on 2022-03-26
- [eslint](https://eslint.org) from 8.11.0 to **8.12.0** on 2022-03-26
- [prettier](https://prettier.io/) from 2.6.0 to **2.6.1** on 2022-03-26
- [luacheck](https://luacheck.readthedocs.io) from 0.25.0 to **0.26.0** on 2022-03-26
- [phpstan](https://phpstan.org/) from 1.4.10 to **1.5.0** on 2022-03-26
- [mypy](https://mypy.readthedocs.io/en/stable/) from 0.941 to **0.942** on 2022-03-26
- [pylint](https://www.pylint.org) from 2.12.2 to **2.13.1** on 2022-03-26
- [snakemake](https://snakemake.readthedocs.io/en/stable/) from 7.3.1 to **7.3.2** on 2022-03-26
- [cspell](https://github.com/streetsidesoftware/cspell/tree/master/packages/cspell) from 5.19.2 to **5.19.3** on 2022-03-26
- [sqlfluff](https://www.sqlfluff.com/) from 0.11.1 to **0.11.2** on 2022-03-26
- [checkov](https://www.checkov.io/) from 2.0.983 to **2.0.995** on 2022-03-26
<!-- linter-versions-end -->

## [v5.10.0] - 2022-03-20
Expand Down
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,6 @@ RUN pip3 install --no-cache-dir --upgrade pip && pip3 install --no-cache-dir --u
'mypy' \
'restructuredtext_lint' \
'rstcheck' \
'sphinx<4.0' \
'rstfmt' \
'snakemake' \
'snakefmt' \
'sqlfluff' \
Expand Down
Loading

0 comments on commit 7694809

Please sign in to comment.