From aaa827895fb264de260b9602d8cd202c16c83182 Mon Sep 17 00:00:00 2001 From: Nicolas Vuillamy Date: Sun, 6 Feb 2022 17:28:43 +0000 Subject: [PATCH 1/2] [automation] Auto-update linters version, help and documentation --- .automation/generated/flavors-stats.json | 64 +++++++++++----------- .automation/generated/linter-helps.json | 10 ++-- .automation/generated/linter-versions.json | 4 +- CHANGELOG.md | 2 + docs/all_linters.md | 4 +- docs/descriptors/javascript_eslint.md | 2 +- docs/descriptors/jsx_eslint.md | 2 +- docs/descriptors/php_phpstan.md | 2 +- docs/descriptors/python_black.md | 6 +- docs/descriptors/python_flake8.md | 4 +- docs/descriptors/terraform_checkov.md | 2 +- docs/descriptors/tsx_eslint.md | 2 +- docs/descriptors/typescript_eslint.md | 2 +- 13 files changed, 54 insertions(+), 52 deletions(-) diff --git a/.automation/generated/flavors-stats.json b/.automation/generated/flavors-stats.json index 10a7aaede6d..52c09ae4e82 100644 --- a/.automation/generated/flavors-stats.json +++ b/.automation/generated/flavors-stats.json @@ -549,8 +549,8 @@ 2437974 ], [ - "2022-02-06T01:42:06", - 2438079 + "2022-02-06T17:27:14", + 2438690 ] ], "ci_light": [ @@ -1103,8 +1103,8 @@ 7017 ], [ - "2022-02-06T01:42:06", - 7017 + "2022-02-06T17:27:14", + 7020 ] ], "dart": [ @@ -1657,8 +1657,8 @@ 2171 ], [ - "2022-02-06T01:42:06", - 2171 + "2022-02-06T17:27:14", + 2174 ] ], "documentation": [ @@ -2211,8 +2211,8 @@ 36074 ], [ - "2022-02-06T01:42:06", - 36094 + "2022-02-06T17:27:14", + 36206 ] ], "dotnet": [ @@ -2765,8 +2765,8 @@ 276794 ], [ - "2022-02-06T01:42:06", - 276833 + "2022-02-06T17:27:14", + 277064 ] ], "go": [ @@ -3319,8 +3319,8 @@ 7723 ], [ - "2022-02-06T01:42:06", - 7723 + "2022-02-06T17:27:14", + 7731 ] ], "java": [ @@ -3873,8 +3873,8 @@ 55509 ], [ - "2022-02-06T01:42:06", - 55518 + "2022-02-06T17:27:14", + 55578 ] ], "javascript": [ @@ -4427,8 +4427,8 @@ 83707 ], [ - "2022-02-06T01:42:06", - 83731 + "2022-02-06T17:27:14", + 83948 ] ], "php": [ @@ -4981,8 +4981,8 @@ 3934 ], [ - "2022-02-06T01:42:06", - 3934 + "2022-02-06T17:27:14", + 3943 ] ], "python": [ @@ -5535,8 +5535,8 @@ 53939 ], [ - "2022-02-06T01:42:06", - 53981 + "2022-02-06T17:27:14", + 54165 ] ], "ruby": [ @@ -6085,8 +6085,8 @@ 1843 ], [ - "2022-02-06T01:42:06", - 1843 + "2022-02-06T17:27:14", + 1846 ] ], "rust": [ @@ -6635,8 +6635,8 @@ 1575 ], [ - "2022-02-06T01:42:06", - 1575 + "2022-02-06T17:27:14", + 1578 ] ], "salesforce": [ @@ -7189,8 +7189,8 @@ 10343 ], [ - "2022-02-06T01:42:06", - 10346 + "2022-02-06T17:27:14", + 10357 ] ], "scala": [ @@ -7739,8 +7739,8 @@ 1425 ], [ - "2022-02-06T01:42:06", - 1425 + "2022-02-06T17:27:14", + 1428 ] ], "swift": [ @@ -8289,8 +8289,8 @@ 1465 ], [ - "2022-02-06T01:42:06", - 1465 + "2022-02-06T17:27:14", + 1468 ] ], "terraform": [ @@ -8843,8 +8843,8 @@ 35832 ], [ - "2022-02-06T01:42:06", - 35881 + "2022-02-06T17:27:14", + 35934 ] ] } \ No newline at end of file diff --git a/.automation/generated/linter-helps.json b/.automation/generated/linter-helps.json index 75f7bcde7ff..9e09323062f 100644 --- a/.automation/generated/linter-helps.json +++ b/.automation/generated/linter-helps.json @@ -329,9 +329,9 @@ " input).", " --python-cell-magics TEXT When processing Jupyter Notebooks, add the", " given magic to the list of known python-", - " magics (python, timeit, pypy, time, python3,", - " capture, prun). Useful for formatting cells", - " with custom python magics.", + " magics (capture, python3, python, prun,", + " time, pypy, timeit). Useful for formatting", + " cells with custom python magics.", " -S, --skip-string-normalization", " Don't normalize string quotes or prefixes.", " -C, --skip-magic-trailing-comma", @@ -1405,8 +1405,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: ['E121', 'E126', 'E704', 'W504', 'W503',", - " 'E24', 'E123', 'E226'])", + " (Default: ['E123', 'E226', 'E24', 'W504', 'W503',", + " 'E704', 'E121', 'E126'])", " --extend-ignore errors", " Comma-separated list of errors and warnings to add to", " the list of ignored ones. For example, ``--extend-", diff --git a/.automation/generated/linter-versions.json b/.automation/generated/linter-versions.json index 3978fd86156..92f2f36a863 100644 --- a/.automation/generated/linter-versions.json +++ b/.automation/generated/linter-versions.json @@ -6,7 +6,7 @@ "bash-exec": "5.1.0", "black": "22.1.0", "cfn-lint": "0.58.0", - "checkov": "2.0.793", + "checkov": "2.0.795", "checkstyle": "9.3", "chktex": "1.7.6", "clippy": "0.1.58", @@ -46,7 +46,7 @@ "php": "7.4.26", "phpcs": "3.6.2", "phplint": "3.0", - "phpstan": "1.4.5", + "phpstan": "1.4.6", "powershell": "7.2.1", "prettier": "2.5.1", "protolint": "0.36.0", diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b74503027e..245e43e765e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,8 @@ Note: Can be used with `megalinter/megalinter@beta` in your GitHub Action mega-l - [markdownlint](https://github.com/DavidAnson/markdownlint) from 0.30.0 to **0.31.0** on 2022-02-06 - [snakemake](https://snakemake.readthedocs.io/en/stable/) from 6.15.1 to **6.15.2** on 2022-02-06 - [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 ## [v5.7.1] - 2022-02-02 diff --git a/docs/all_linters.md b/docs/all_linters.md index 8a57b8b6ece..c76ac4812c3 100644 --- a/docs/all_linters.md +++ b/docs/all_linters.md @@ -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} | 22.1.0 | [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.58.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.793 | [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.795 | [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.3 | [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} | @@ -52,7 +52,7 @@ | [**php**](https://github.com/php/php-src){target=_blank} | 7.4.26 | [Other](licenses/php.md) | [PHP](descriptors/php_php.md) | | [Repository](https://github.com/php/php-src){target=_blank} | | [**phpcs**](https://github.com/squizlabs/PHP_CodeSniffer){target=_blank} | 3.6.2 | | [PHP](descriptors/php_phpcs.md) | :white_circle: | [Web Site](https://github.com/squizlabs/PHP_CodeSniffer){target=_blank} | | [**phplint**](https://github.com/overtrue/phplint){target=_blank} | 3.0 | | [PHP](descriptors/php_phplint.md) | :white_circle: | [Web Site](https://github.com/overtrue/phplint){target=_blank} | -| [**phpstan**](https://github.com/phpstan/phpstan){target=_blank} | 1.4.5 | [MIT](licenses/phpstan.md) | [PHP](descriptors/php_phpstan.md) | :white_circle: | [Repository](https://github.com/phpstan/phpstan){target=_blank} | +| [**phpstan**](https://github.com/phpstan/phpstan){target=_blank} | 1.4.6 | [MIT](licenses/phpstan.md) | [PHP](descriptors/php_phpstan.md) | :white_circle: | [Repository](https://github.com/phpstan/phpstan){target=_blank} | | [**powershell**](https://github.com/PowerShell/PSScriptAnalyzer){target=_blank} | 7.2.1 | | [POWERSHELL](descriptors/powershell_powershell.md) | :white_circle: | [Web Site](https://github.com/PowerShell/PSScriptAnalyzer){target=_blank} | | [**prettier**](https://github.com/prettier/prettier){target=_blank} | 2.5.1 | [MIT](licenses/prettier.md) | [JAVASCRIPT](descriptors/javascript_prettier.md)
[JSON](descriptors/json_prettier.md)
[TYPESCRIPT](descriptors/typescript_prettier.md)
[YAML](descriptors/yaml_prettier.md) | :white_circle: | [Repository](https://github.com/prettier/prettier){target=_blank} | | [**protolint**](https://github.com/yoheimuta/protolint){target=_blank} | 0.36.0 | | [PROTOBUF](descriptors/protobuf_protolint.md) | :white_circle: | [Web Site](https://github.com/yoheimuta/protolint){target=_blank} | diff --git a/docs/descriptors/javascript_eslint.md b/docs/descriptors/javascript_eslint.md index 034bd679795..58ce85665b1 100644 --- a/docs/descriptors/javascript_eslint.md +++ b/docs/descriptors/javascript_eslint.md @@ -72,7 +72,7 @@ This linter is available in the following flavours ### How are identified applicable files -- Activated only if one of these files is found: `.eslintrc.json, .eslintrc.yml, .eslintrc.yaml, .eslintrc.js, .eslintrc.cjs` +- Activated only if one of these files is found: `.eslintrc.json, .eslintrc.yml, .eslintrc.yaml, .eslintrc.js, .eslintrc.cjs, package.json:eslintConfig` - File extensions: `.js`, `.vue` diff --git a/docs/descriptors/jsx_eslint.md b/docs/descriptors/jsx_eslint.md index cec29e25238..a9ad3ce9809 100644 --- a/docs/descriptors/jsx_eslint.md +++ b/docs/descriptors/jsx_eslint.md @@ -71,7 +71,7 @@ This linter is available in the following flavours ### How are identified applicable files -- Activated only if one of these files is found: `.eslintrc.json, .eslintrc.yml, .eslintrc.yaml, .eslintrc.js, .eslintrc.cjs` +- Activated only if one of these files is found: `.eslintrc.json, .eslintrc.yml, .eslintrc.yaml, .eslintrc.js, .eslintrc.cjs, package.json:eslintConfig` - File extensions: `.jsx` diff --git a/docs/descriptors/php_phpstan.md b/docs/descriptors/php_phpstan.md index abb1b72b5c7..d7d5d647d1c 100644 --- a/docs/descriptors/php_phpstan.md +++ b/docs/descriptors/php_phpstan.md @@ -4,7 +4,7 @@ ## phpstan documentation -- Version in MegaLinter: **1.4.5** +- Version in MegaLinter: **1.4.6** - Visit [Official Web Site](https://phpstan.org/){target=_blank} - See [How to configure phpstan rules](https://phpstan.org/config-reference#neon-format){target=_blank} - If custom `phpstan.neon.dist` config file is not found, [phpstan.neon.dist](https://github.com/megalinter/megalinter/tree/main/TEMPLATES/phpstan.neon.dist){target=_blank} will be used diff --git a/docs/descriptors/python_black.md b/docs/descriptors/python_black.md index 234decc256b..7ff278788ef 100644 --- a/docs/descriptors/python_black.md +++ b/docs/descriptors/python_black.md @@ -112,9 +112,9 @@ Options: input). --python-cell-magics TEXT When processing Jupyter Notebooks, add the given magic to the list of known python- - magics (python, timeit, pypy, time, python3, - capture, prun). Useful for formatting cells - with custom python magics. + magics (capture, python3, python, prun, + time, pypy, timeit). Useful for formatting + cells with custom python magics. -S, --skip-string-normalization Don't normalize string quotes or prefixes. -C, --skip-magic-trailing-comma diff --git a/docs/descriptors/python_flake8.md b/docs/descriptors/python_flake8.md index c99f54b3680..34cb96802d5 100644 --- a/docs/descriptors/python_flake8.md +++ b/docs/descriptors/python_flake8.md @@ -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: ['E121', 'E126', 'E704', 'W504', 'W503', - 'E24', 'E123', 'E226']) + (Default: ['E123', 'E226', 'E24', 'W504', 'W503', + 'E704', 'E121', 'E126']) --extend-ignore errors Comma-separated list of errors and warnings to add to the list of ignored ones. For example, ``--extend- diff --git a/docs/descriptors/terraform_checkov.md b/docs/descriptors/terraform_checkov.md index d4a751b87d5..09b9f978f3e 100644 --- a/docs/descriptors/terraform_checkov.md +++ b/docs/descriptors/terraform_checkov.md @@ -9,7 +9,7 @@ ## checkov documentation -- Version in MegaLinter: **2.0.793** +- Version in MegaLinter: **2.0.795** - 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} diff --git a/docs/descriptors/tsx_eslint.md b/docs/descriptors/tsx_eslint.md index 5222a8a4ee7..0dc69c4c1f2 100644 --- a/docs/descriptors/tsx_eslint.md +++ b/docs/descriptors/tsx_eslint.md @@ -72,7 +72,7 @@ This linter is available in the following flavours ### How are identified applicable files -- Activated only if one of these files is found: `.eslintrc.json, .eslintrc.yml, .eslintrc.yaml, .eslintrc.js, .eslintrc.cjs` +- Activated only if one of these files is found: `.eslintrc.json, .eslintrc.yml, .eslintrc.yaml, .eslintrc.js, .eslintrc.cjs, package.json:eslintConfig` - File extensions: `.tsx` diff --git a/docs/descriptors/typescript_eslint.md b/docs/descriptors/typescript_eslint.md index 69100f99e35..4e90dbff408 100644 --- a/docs/descriptors/typescript_eslint.md +++ b/docs/descriptors/typescript_eslint.md @@ -72,7 +72,7 @@ This linter is available in the following flavours ### How are identified applicable files -- Activated only if one of these files is found: `.eslintrc.json, .eslintrc.yml, .eslintrc.yaml, .eslintrc.js, .eslintrc.cjs` +- Activated only if one of these files is found: `.eslintrc.json, .eslintrc.yml, .eslintrc.yaml, .eslintrc.js, .eslintrc.cjs, package.json:eslintConfig` - File extensions: `.ts` From 7f80633599395254edd1c1d45c9acff1772b613b Mon Sep 17 00:00:00 2001 From: nvuillam Date: Sun, 6 Feb 2022 17:32:23 +0000 Subject: [PATCH 2/2] [MegaLinter] Apply linters fixes --- megalinter/descriptors/javascript.megalinter-descriptor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/megalinter/descriptors/javascript.megalinter-descriptor.yml b/megalinter/descriptors/javascript.megalinter-descriptor.yml index 62dedee23b1..a5e25888ee7 100644 --- a/megalinter/descriptors/javascript.megalinter-descriptor.yml +++ b/megalinter/descriptors/javascript.megalinter-descriptor.yml @@ -28,7 +28,7 @@ linters: - ".eslintrc.yaml" - ".eslintrc.js" - ".eslintrc.cjs" - - "package.json:eslintConfig" + - "package.json:eslintConfig" cli_lint_mode: list_of_files config_file_name: .eslintrc.json cli_config_extra_args: