From 371bcec4aa96bd9f56d1526fbbe6fd036d539a7b Mon Sep 17 00:00:00 2001 From: Nicolas Vuillamy Date: Sat, 9 Dec 2023 21:27:38 +0100 Subject: [PATCH] [automation] Auto-update linters version, help and documentation (#3199) * [automation] Auto-update linters version, help and documentation * [MegaLinter] Apply linters fixes --------- Co-authored-by: nvuillam --- .automation/generated/linter-helps.json | 634 +++++++++++---------- .automation/generated/linter-versions.json | 14 +- CHANGELOG.md | 7 + README.md | 54 +- docs/all_linters.md | 14 +- docs/descriptors/css_stylelint.md | 6 +- docs/descriptors/kubernetes_kubescape.md | 2 +- docs/descriptors/lua_luacheck.md | 4 +- docs/descriptors/markdown_markdownlint.md | 2 +- docs/descriptors/php_phpcs.md | 10 +- docs/descriptors/php_phpstan.md | 2 +- docs/descriptors/python_bandit.md | 2 +- docs/descriptors/python_isort.md | 6 +- docs/descriptors/python_pylint.md | 610 ++++++++++---------- docs/descriptors/repository_checkov.md | 4 +- docs/descriptors/repository_syft.md | 2 +- docs/descriptors/terraform_terragrunt.md | 6 +- docs/flavors/c_cpp.md | 40 +- docs/flavors/cupcake.md | 46 +- docs/flavors/documentation.md | 40 +- docs/flavors/dotnet.md | 42 +- docs/flavors/dotnetweb.md | 42 +- docs/flavors/go.md | 40 +- docs/flavors/java.md | 40 +- docs/flavors/javascript.md | 42 +- docs/flavors/php.md | 40 +- docs/flavors/python.md | 46 +- docs/flavors/ruby.md | 40 +- docs/flavors/rust.md | 40 +- docs/flavors/salesforce.md | 42 +- docs/flavors/swift.md | 40 +- docs/flavors/terraform.md | 40 +- docs/index.md | 52 +- docs/supported-linters.md | 52 +- docs/used-by-stats.md | 69 +-- mega-linter-runner/README.md | 52 +- 36 files changed, 1118 insertions(+), 1106 deletions(-) diff --git a/.automation/generated/linter-helps.json b/.automation/generated/linter-helps.json index d485bc4a98a..029bb654d1c 100644 --- a/.automation/generated/linter-helps.json +++ b/.automation/generated/linter-helps.json @@ -739,7 +739,7 @@ " [--secrets-scan-file-type SECRETS_SCAN_FILE_TYPE]", " [--enable-secret-scan-all-files]", " [--block-list-secret-scan BLOCK_LIST_SECRET_SCAN]", - " [--summary-position {bottom,top}]", + " [--summary-position {top,bottom}]", " [--skip-resources-without-violations] [--deep-analysis]", " [--no-fail-on-crash] [--mask MASK] [--scan-secrets-history]", " [--secrets-history-timeout SECRETS_HISTORY_TIMEOUT]", @@ -1031,7 +1031,7 @@ " --block-list-secret-scan BLOCK_LIST_SECRET_SCAN", " List of files to filter out from the secret scanner", " [env var: CKV_SECRETS_SCAN_BLOCK_LIST]", - " --summary-position {bottom,top}", + " --summary-position {top,bottom}", " Chose whether the summary will be appended on top", " (before the checks results) or on bottom (after check", " results), default is on top.", @@ -2624,7 +2624,7 @@ " [-f KNOWN_FUTURE_LIBRARY] [-o KNOWN_THIRD_PARTY]", " [-p KNOWN_FIRST_PARTY] [--known-local-folder KNOWN_LOCAL_FOLDER]", " [--virtual-env VIRTUAL_ENV] [--conda-env CONDA_ENV]", - " [--py {all,2,27,3,310,311,36,37,38,39,auto}]", + " [--py {all,2,27,3,310,311,312,36,37,38,39,auto}]", " [files ...]", "", "Sort Python import definitions alphabetically within logical sections. Run", @@ -2955,7 +2955,7 @@ " --conda-env CONDA_ENV", " Conda environment to use for determining whether a", " package is third-party", - " --py {all,2,27,3,310,311,36,37,38,39,auto}, --python-version {all,2,27,3,310,311,36,37,38,39,auto}", + " --py {all,2,27,3,310,311,312,36,37,38,39,auto}, --python-version {all,2,27,3,310,311,312,36,37,38,39,auto}", " Tells isort to set the known standard library based on", " the specified Python version. Default is to assume any", " Python 3 version could be the target, and use a union", @@ -3256,7 +3256,7 @@ " completion Generate autocompletion script", " config Handle cached configurations", " delete Delete configurations in Kubescape SaaS version", - " download Download artifacts,attack-tracks,controls-inputs,exceptions,control,framework", + " download Download controls-inputs,exceptions,control,framework,artifacts,attack-tracks", " fix Fix misconfiguration in files", " help Help about any command", " list List frameworks/controls will list the supported frameworks and controls", @@ -3369,7 +3369,7 @@ " [--exclude-files [] ...]", " [--include-files [] ...]", "", - "luacheck 1.1.1, a linter and a static analyzer for Lua.", + "luacheck 1.1.2, a linter and a static analyzer for Lua.", "", "Arguments:", " files List of files, directories and rockspecs to check. Pass", @@ -4245,7 +4245,7 @@ " e.g., module/php,es/js", " One or more files and/or directories to check", " A file containing a list of files and/or directories to check (one per line)", - " Use either the \"gitmodified\" or \"gitstaged\" filter,", + " Use either the \"GitModified\" or \"GitStaged\" filter,", " or specify the path to a custom filter class", " Use either the \"HTML\", \"Markdown\" or \"Text\" generator", " (forces documentation generation instead of checking)", @@ -4253,8 +4253,8 @@ " How many files should be checked simultaneously (default is 1)", " Print either the \"full\", \"xml\", \"checkstyle\", \"csv\"", " \"json\", \"junit\", \"emacs\", \"source\", \"summary\", \"diff\"", - " \"svnblame\", \"gitblame\", \"hgblame\" or \"notifysend\" report,", - " or specify the path to a custom report class", + " \"svnblame\", \"gitblame\", \"hgblame\", \"notifysend\" or \"performance\",", + " report or specify the path to a custom report class", " (the \"full\" report is printed by default)", " Write the report to the specified file path", " How many columns wide screen reports should be printed", @@ -5842,206 +5842,31 @@ " delimiter is used inconsistently within a module.", " (default: False)", "", - "Basic:", - " --good-names Good variable names which should always be accepted,", - " separated by a comma. (default: ('i', 'j', 'k', 'ex',", - " 'Run', '_'))", - " --good-names-rgxs ", - " Good variable names regexes, separated by a comma. If", - " names match any regex, they will always be accepted", - " (default: )", - " --bad-names Bad variable names which should always be refused,", - " separated by a comma. (default: ('foo', 'bar', 'baz',", - " 'toto', 'tutu', 'tata'))", - " --bad-names-rgxs ", - " Bad variable names regexes, separated by a comma. If", - " names match any regex, they will always be refused", - " (default: )", - " --name-group ", - " Colon-delimited sets of names that determine each", - " other's naming style when the name regexes allow", - " several styles. (default: ())", - " --include-naming-hint ", - " Include a hint for the correct naming format with", - " invalid-name. (default: False)", - " --property-classes ", - " List of decorators that produce properties, such as", - " abc.abstractproperty. Add to this list to register", - " other decorators that produce valid properties. These", - " decorators are taken in consideration only for", - " invalid-name. (default: ('abc.abstractproperty',))", - " --argument-naming-style