From 0ef9d1d6f61207ea667f557903242fcc73bb5941 Mon Sep 17 00:00:00 2001 From: Nicolas Vuillamy Date: Sun, 13 Mar 2022 23:25:52 +0100 Subject: [PATCH] [automation] Auto-update linters version, help and documentation (#1329) --- .automation/generated/flavors-stats.json | 44 +++++++++++----------- .automation/generated/linter-helps.json | 10 ++--- .automation/generated/linter-versions.json | 4 +- CHANGELOG.md | 2 + docs/all_linters.md | 4 +- docs/descriptors/python_black.md | 6 +-- docs/descriptors/python_flake8.md | 4 +- docs/descriptors/spell_cspell.md | 2 +- docs/descriptors/terraform_checkov.md | 2 +- flavors/ci_light/action.yml | 2 +- flavors/dart/action.yml | 2 +- flavors/documentation/action.yml | 2 +- flavors/dotnet/action.yml | 2 +- flavors/go/action.yml | 2 +- flavors/java/action.yml | 2 +- flavors/javascript/action.yml | 2 +- flavors/php/action.yml | 2 +- flavors/python/action.yml | 2 +- flavors/ruby/action.yml | 2 +- flavors/rust/action.yml | 2 +- flavors/salesforce/action.yml | 2 +- flavors/scala/action.yml | 2 +- flavors/swift/action.yml | 2 +- flavors/terraform/action.yml | 2 +- 24 files changed, 55 insertions(+), 53 deletions(-) diff --git a/.automation/generated/flavors-stats.json b/.automation/generated/flavors-stats.json index cb734f35d8d..d2afba5af54 100644 --- a/.automation/generated/flavors-stats.json +++ b/.automation/generated/flavors-stats.json @@ -637,8 +637,8 @@ 2468521 ], [ - "2022-03-13T19:22:23", - 2468675 + "2022-03-13T19:08:51", + 2468681 ] ], "ci_light": [ @@ -1279,7 +1279,7 @@ 8322 ], [ - "2022-03-13T19:22:23", + "2022-03-13T19:08:51", 8336 ] ], @@ -1921,7 +1921,7 @@ 2417 ], [ - "2022-03-13T19:22:23", + "2022-03-13T19:08:51", 2420 ] ], @@ -2563,8 +2563,8 @@ 45034 ], [ - "2022-03-13T19:22:23", - 45066 + "2022-03-13T19:08:51", + 45067 ] ], "dotnet": [ @@ -3205,7 +3205,7 @@ 290485 ], [ - "2022-03-13T19:22:23", + "2022-03-13T19:08:51", 290502 ] ], @@ -3847,7 +3847,7 @@ 8740 ], [ - "2022-03-13T19:22:23", + "2022-03-13T19:08:51", 8742 ] ], @@ -4489,8 +4489,8 @@ 63831 ], [ - "2022-03-13T19:22:23", - 63963 + "2022-03-13T19:08:51", + 63964 ] ], "javascript": [ @@ -5131,8 +5131,8 @@ 96845 ], [ - "2022-03-13T19:22:23", - 96896 + "2022-03-13T19:08:51", + 96902 ] ], "php": [ @@ -5773,7 +5773,7 @@ 4534 ], [ - "2022-03-13T19:22:23", + "2022-03-13T19:08:51", 4547 ] ], @@ -6415,8 +6415,8 @@ 64668 ], [ - "2022-03-13T19:22:23", - 64742 + "2022-03-13T19:08:51", + 64753 ] ], "ruby": [ @@ -7053,7 +7053,7 @@ 1929 ], [ - "2022-03-13T19:22:23", + "2022-03-13T19:08:51", 1929 ] ], @@ -7691,8 +7691,8 @@ 2529 ], [ - "2022-03-13T19:22:23", - 2583 + "2022-03-13T19:08:51", + 2584 ] ], "salesforce": [ @@ -8333,7 +8333,7 @@ 11321 ], [ - "2022-03-13T19:22:23", + "2022-03-13T19:08:51", 11326 ] ], @@ -8971,7 +8971,7 @@ 1460 ], [ - "2022-03-13T19:22:23", + "2022-03-13T19:08:51", 1460 ] ], @@ -9609,7 +9609,7 @@ 1501 ], [ - "2022-03-13T19:22:23", + "2022-03-13T19:08:51", 1501 ] ], @@ -10251,7 +10251,7 @@ 44539 ], [ - "2022-03-13T19:22:23", + "2022-03-13T19:08:51", 44641 ] ] diff --git a/.automation/generated/linter-helps.json b/.automation/generated/linter-helps.json index 3662be0dd8e..a05fc429346 100644 --- a/.automation/generated/linter-helps.json +++ b/.automation/generated/linter-helps.json @@ -339,9 +339,9 @@ " input).", " --python-cell-magics TEXT When processing Jupyter Notebooks, add the", " given magic to the list of known python-", - " magics (prun, time, python, python3, timeit,", - " capture, pypy). Useful for formatting cells", - " with custom python magics.", + " magics (prun, pypy, time, timeit, python3,", + " python, capture). Useful for formatting", + " cells with custom python magics.", " -S, --skip-string-normalization", " Don't normalize string quotes or prefixes.", " -C, --skip-magic-trailing-comma", @@ -1510,8 +1510,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: ['E24', 'E704', 'W503', 'E126', 'E121',", - " 'E226', 'W504', 'E123'])", + " (Default: ['W504', 'E226', 'E126', 'E121', 'E24',", + " 'E123', 'W503', 'E704'])", " --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 8b475816da4..808e7aede3a 100644 --- a/.automation/generated/linter-versions.json +++ b/.automation/generated/linter-versions.json @@ -6,14 +6,14 @@ "bash-exec": "5.1.0", "black": "22.1.0", "cfn-lint": "0.58.3", - "checkov": "2.0.939", + "checkov": "2.0.940", "checkstyle": "10.0", "chktex": "1.7.6", "clippy": "0.1.59", "clj-kondo": "2022.02.09", "coffeelint": "5.2.4", "cpplint": "1.6.0", - "cspell": "5.19.0", + "cspell": "5.19.1", "dartanalyzer": "0.0.0", "dockerfilelint": "1.8.0", "dotenv-linter": "3.2.0", diff --git a/CHANGELOG.md b/CHANGELOG.md index 7e28fa0500d..f95137bf1be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,8 @@ 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 - Linter versions upgrades + - [cspell](https://github.com/streetsidesoftware/cspell/tree/master/packages/cspell) from 5.19.0 to **5.19.1** on 2022-03-13 + - [checkov](https://www.checkov.io/) from 2.0.939 to **2.0.940** on 2022-03-13 ## [v5.9.0] - 2022-03-13 diff --git a/docs/all_linters.md b/docs/all_linters.md index 87a5146270e..c529cb31d4c 100644 --- a/docs/all_linters.md +++ b/docs/all_linters.md @@ -12,14 +12,14 @@ | [**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.3 | | [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.939 | [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.940 | [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} | 10.0 | [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.59 | | [RUST](descriptors/rust_clippy.md) | :white_circle: | [Web Site](https://github.com/rust-lang/rust-clippy){target=_blank} | | [**clj-kondo**](https://github.com/borkdude/clj-kondo){target=_blank} | 2022.02.09 | | [CLOJURE](descriptors/clojure_clj_kondo.md) | :heart: | [MegaLinter reference](https://github.com/borkdude/clj-kondo/blob/master/doc/ci-integration.md#github){target=_blank} | | [**coffeelint**](https://github.com/clutchski/coffeelint){target=_blank} | 5.2.4 | [Other](licenses/coffeelint.md) | [COFFEE](descriptors/coffee_coffeelint.md) | :white_circle: | [Repository](https://github.com/clutchski/coffeelint){target=_blank} | | [**cpplint**](https://github.com/cpplint/cpplint){target=_blank} | 1.6.0 | | [C](descriptors/c_cpplint.md)
[CPP](descriptors/cpp_cpplint.md) | :white_circle: | [Web Site](https://github.com/cpplint/cpplint){target=_blank} | -| [**cspell**](https://github.com/streetsidesoftware/cspell){target=_blank} | 5.19.0 | [MIT](licenses/cspell.md) | [SPELL](descriptors/spell_cspell.md) | :heart: | [MegaLinter reference](https://github.com/streetsidesoftware/cspell/tree/master/packages/cspell#mega-linter){target=_blank} | +| [**cspell**](https://github.com/streetsidesoftware/cspell){target=_blank} | 5.19.1 | [MIT](licenses/cspell.md) | [SPELL](descriptors/spell_cspell.md) | :heart: | [MegaLinter reference](https://github.com/streetsidesoftware/cspell/tree/master/packages/cspell#mega-linter){target=_blank} | | [**dartanalyzer**](https://github.com/dart-lang/sdk){target=_blank} | N/A | [BSD-3-Clause](licenses/dartanalyzer.md) | [DART](descriptors/dart_dartanalyzer.md) | :no_entry_sign: | [Repository](https://github.com/dart-lang/sdk){target=_blank} | | [**dockerfilelint**](https://github.com/replicatedhq/dockerfilelint){target=_blank} | 1.8.0 | | [DOCKERFILE](descriptors/dockerfile_dockerfilelint.md) | :white_circle: | [Web Site](https://github.com/replicatedhq/dockerfilelint){target=_blank} | | [**dotenv-linter**](https://github.com/dotenv-linter/dotenv-linter){target=_blank} | 3.2.0 | [MIT](licenses/dotenv-linter.md) | [ENV](descriptors/env_dotenv_linter.md) | :heart: | [MegaLinter reference](https://dotenv-linter.github.io/#/integrations/mega_linter){target=_blank} | diff --git a/docs/descriptors/python_black.md b/docs/descriptors/python_black.md index ae37ca7d51b..3fa05e03c47 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 (prun, time, python, python3, timeit, - capture, pypy). Useful for formatting cells - with custom python magics. + magics (prun, pypy, time, timeit, python3, + python, capture). 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 22b26f9a148..b2a1ab6f6a6 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: ['E24', 'E704', 'W503', 'E126', 'E121', - 'E226', 'W504', 'E123']) + (Default: ['W504', 'E226', 'E126', 'E121', 'E24', + 'E123', 'W503', 'E704']) --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/spell_cspell.md b/docs/descriptors/spell_cspell.md index ccac7e82b45..de6e1156395 100644 --- a/docs/descriptors/spell_cspell.md +++ b/docs/descriptors/spell_cspell.md @@ -7,7 +7,7 @@ Copy it at the root of your repository, read it, remove real spelling errors (af ## cspell documentation -- Version in MegaLinter: **5.19.0** +- Version in MegaLinter: **5.19.1** - Visit [Official Web Site](https://github.com/streetsidesoftware/cspell/tree/master/packages/cspell#readme){target=_blank} - See [How to configure cspell rules](https://github.com/streetsidesoftware/cspell/tree/master/packages/cspell#customization){target=_blank} - See [How to disable cspell rules in files](https://github.com/streetsidesoftware/cspell/tree/master/packages/cspell#enable--disable-checking-sections-of-code){target=_blank} diff --git a/docs/descriptors/terraform_checkov.md b/docs/descriptors/terraform_checkov.md index 0f6eddcf593..94af8eddbe7 100644 --- a/docs/descriptors/terraform_checkov.md +++ b/docs/descriptors/terraform_checkov.md @@ -9,7 +9,7 @@ ## checkov documentation -- Version in MegaLinter: **2.0.939** +- Version in MegaLinter: **2.0.940** - 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/flavors/ci_light/action.yml b/flavors/ci_light/action.yml index 2af0a924df3..ab9dfbb8a11 100644 --- a/flavors/ci_light/action.yml +++ b/flavors/ci_light/action.yml @@ -7,7 +7,7 @@ outputs: description: "0 if no source file has been updated, 1 if source files has been updated" runs: using: "docker" - image: "docker://megalinter/megalinter-ci_light:v5.9.0" + image: "docker://megalinter/megalinter-ci_light:v5" args: - "-v" - "/var/run/docker.sock:/var/run/docker.sock:rw" diff --git a/flavors/dart/action.yml b/flavors/dart/action.yml index 0426e9ba447..53356ae875c 100644 --- a/flavors/dart/action.yml +++ b/flavors/dart/action.yml @@ -7,7 +7,7 @@ outputs: description: "0 if no source file has been updated, 1 if source files has been updated" runs: using: "docker" - image: "docker://megalinter/megalinter-dart:v5.9.0" + image: "docker://megalinter/megalinter-dart:v5" args: - "-v" - "/var/run/docker.sock:/var/run/docker.sock:rw" diff --git a/flavors/documentation/action.yml b/flavors/documentation/action.yml index 2ca9717d85e..ae90e36ca1b 100644 --- a/flavors/documentation/action.yml +++ b/flavors/documentation/action.yml @@ -7,7 +7,7 @@ outputs: description: "0 if no source file has been updated, 1 if source files has been updated" runs: using: "docker" - image: "docker://megalinter/megalinter-documentation:v5.9.0" + image: "docker://megalinter/megalinter-documentation:v5" args: - "-v" - "/var/run/docker.sock:/var/run/docker.sock:rw" diff --git a/flavors/dotnet/action.yml b/flavors/dotnet/action.yml index 9ab6a737698..e09b2825d2d 100644 --- a/flavors/dotnet/action.yml +++ b/flavors/dotnet/action.yml @@ -7,7 +7,7 @@ outputs: description: "0 if no source file has been updated, 1 if source files has been updated" runs: using: "docker" - image: "docker://megalinter/megalinter-dotnet:v5.9.0" + image: "docker://megalinter/megalinter-dotnet:v5" args: - "-v" - "/var/run/docker.sock:/var/run/docker.sock:rw" diff --git a/flavors/go/action.yml b/flavors/go/action.yml index 9b949f254d5..7c73a43f705 100644 --- a/flavors/go/action.yml +++ b/flavors/go/action.yml @@ -7,7 +7,7 @@ outputs: description: "0 if no source file has been updated, 1 if source files has been updated" runs: using: "docker" - image: "docker://megalinter/megalinter-go:v5.9.0" + image: "docker://megalinter/megalinter-go:v5" args: - "-v" - "/var/run/docker.sock:/var/run/docker.sock:rw" diff --git a/flavors/java/action.yml b/flavors/java/action.yml index 2c9cfe59d73..235bbdc2859 100644 --- a/flavors/java/action.yml +++ b/flavors/java/action.yml @@ -7,7 +7,7 @@ outputs: description: "0 if no source file has been updated, 1 if source files has been updated" runs: using: "docker" - image: "docker://megalinter/megalinter-java:v5.9.0" + image: "docker://megalinter/megalinter-java:v5" args: - "-v" - "/var/run/docker.sock:/var/run/docker.sock:rw" diff --git a/flavors/javascript/action.yml b/flavors/javascript/action.yml index 43c65be32bf..21f313d3a63 100644 --- a/flavors/javascript/action.yml +++ b/flavors/javascript/action.yml @@ -7,7 +7,7 @@ outputs: description: "0 if no source file has been updated, 1 if source files has been updated" runs: using: "docker" - image: "docker://megalinter/megalinter-javascript:v5.9.0" + image: "docker://megalinter/megalinter-javascript:v5" args: - "-v" - "/var/run/docker.sock:/var/run/docker.sock:rw" diff --git a/flavors/php/action.yml b/flavors/php/action.yml index 798d54bc71f..a22a8b34bb6 100644 --- a/flavors/php/action.yml +++ b/flavors/php/action.yml @@ -7,7 +7,7 @@ outputs: description: "0 if no source file has been updated, 1 if source files has been updated" runs: using: "docker" - image: "docker://megalinter/megalinter-php:v5.9.0" + image: "docker://megalinter/megalinter-php:v5" args: - "-v" - "/var/run/docker.sock:/var/run/docker.sock:rw" diff --git a/flavors/python/action.yml b/flavors/python/action.yml index 62bd08d90d8..d5bfdfaf143 100644 --- a/flavors/python/action.yml +++ b/flavors/python/action.yml @@ -7,7 +7,7 @@ outputs: description: "0 if no source file has been updated, 1 if source files has been updated" runs: using: "docker" - image: "docker://megalinter/megalinter-python:v5.9.0" + image: "docker://megalinter/megalinter-python:v5" args: - "-v" - "/var/run/docker.sock:/var/run/docker.sock:rw" diff --git a/flavors/ruby/action.yml b/flavors/ruby/action.yml index 7a57503de92..f4cbc4ad6df 100644 --- a/flavors/ruby/action.yml +++ b/flavors/ruby/action.yml @@ -7,7 +7,7 @@ outputs: description: "0 if no source file has been updated, 1 if source files has been updated" runs: using: "docker" - image: "docker://megalinter/megalinter-ruby:v5.9.0" + image: "docker://megalinter/megalinter-ruby:v5" args: - "-v" - "/var/run/docker.sock:/var/run/docker.sock:rw" diff --git a/flavors/rust/action.yml b/flavors/rust/action.yml index d10b22b1586..bbfc5f91a9e 100644 --- a/flavors/rust/action.yml +++ b/flavors/rust/action.yml @@ -7,7 +7,7 @@ outputs: description: "0 if no source file has been updated, 1 if source files has been updated" runs: using: "docker" - image: "docker://megalinter/megalinter-rust:v5.9.0" + image: "docker://megalinter/megalinter-rust:v5" args: - "-v" - "/var/run/docker.sock:/var/run/docker.sock:rw" diff --git a/flavors/salesforce/action.yml b/flavors/salesforce/action.yml index e9b1662bed9..961e8e91a21 100644 --- a/flavors/salesforce/action.yml +++ b/flavors/salesforce/action.yml @@ -7,7 +7,7 @@ outputs: description: "0 if no source file has been updated, 1 if source files has been updated" runs: using: "docker" - image: "docker://megalinter/megalinter-salesforce:v5.9.0" + image: "docker://megalinter/megalinter-salesforce:v5" args: - "-v" - "/var/run/docker.sock:/var/run/docker.sock:rw" diff --git a/flavors/scala/action.yml b/flavors/scala/action.yml index 35a3be8917c..7a85eeed9fa 100644 --- a/flavors/scala/action.yml +++ b/flavors/scala/action.yml @@ -7,7 +7,7 @@ outputs: description: "0 if no source file has been updated, 1 if source files has been updated" runs: using: "docker" - image: "docker://megalinter/megalinter-scala:v5.9.0" + image: "docker://megalinter/megalinter-scala:v5" args: - "-v" - "/var/run/docker.sock:/var/run/docker.sock:rw" diff --git a/flavors/swift/action.yml b/flavors/swift/action.yml index 5e9f142d739..40a5113f630 100644 --- a/flavors/swift/action.yml +++ b/flavors/swift/action.yml @@ -7,7 +7,7 @@ outputs: description: "0 if no source file has been updated, 1 if source files has been updated" runs: using: "docker" - image: "docker://megalinter/megalinter-swift:v5.9.0" + image: "docker://megalinter/megalinter-swift:v5" args: - "-v" - "/var/run/docker.sock:/var/run/docker.sock:rw" diff --git a/flavors/terraform/action.yml b/flavors/terraform/action.yml index 8786438df9e..ec73254fa7a 100644 --- a/flavors/terraform/action.yml +++ b/flavors/terraform/action.yml @@ -7,7 +7,7 @@ outputs: description: "0 if no source file has been updated, 1 if source files has been updated" runs: using: "docker" - image: "docker://megalinter/megalinter-terraform:v5.9.0" + image: "docker://megalinter/megalinter-terraform:v5" args: - "-v" - "/var/run/docker.sock:/var/run/docker.sock:rw"