From 7694809db8689c9f897e6280205eec2eb63da024 Mon Sep 17 00:00:00 2001 From: Nicolas Vuillamy Date: Sun, 27 Mar 2022 01:19:40 +0100 Subject: [PATCH] [automation] Auto-update linters version, help and documentation (#1351) * [automation] Auto-update linters version, help and documentation * Disable rstfmt * pylint --- .automation/generated/flavors-stats.json | 64 +++++++++++++++++++ .automation/generated/linter-helps.json | 38 ++++++----- .automation/generated/linter-versions.json | 24 +++---- CHANGELOG.md | 15 +++++ Dockerfile | 2 - README.md | 2 +- docs/all_linters.md | 24 +++---- docs/descriptors/action_actionlint.md | 2 +- docs/descriptors/ansible_ansible_lint.md | 2 +- docs/descriptors/bash_bash_exec.md | 2 +- docs/descriptors/bash_shellcheck.md | 2 +- docs/descriptors/bash_shfmt.md | 2 +- docs/descriptors/copypaste_jscpd.md | 2 +- docs/descriptors/credentials_secretlint.md | 2 +- docs/descriptors/css_scss_lint.md | 2 +- docs/descriptors/css_stylelint.md | 4 +- docs/descriptors/dockerfile_dockerfilelint.md | 2 +- docs/descriptors/dockerfile_hadolint.md | 2 +- .../editorconfig_editorconfig_checker.md | 2 +- docs/descriptors/env_dotenv_linter.md | 2 +- docs/descriptors/git_git_diff.md | 2 +- docs/descriptors/go_golangci_lint.md | 2 +- .../graphql_graphql_schema_linter.md | 2 +- docs/descriptors/groovy_npm_groovy_lint.md | 2 +- docs/descriptors/html_htmlhint.md | 2 +- docs/descriptors/javascript_eslint.md | 2 +- docs/descriptors/javascript_prettier.md | 2 +- docs/descriptors/json_eslint_plugin_jsonc.md | 2 +- docs/descriptors/json_jsonlint.md | 2 +- docs/descriptors/json_prettier.md | 4 +- docs/descriptors/json_v8r.md | 2 +- docs/descriptors/jsx_eslint.md | 2 +- docs/descriptors/kotlin_ktlint.md | 2 +- docs/descriptors/kubernetes_kubeconform.md | 2 +- docs/descriptors/kubernetes_kubeval.md | 2 +- docs/descriptors/lua_luacheck.md | 6 +- .../markdown_markdown_link_check.md | 2 +- .../markdown_markdown_table_formatter.md | 2 +- docs/descriptors/markdown_markdownlint.md | 2 +- docs/descriptors/markdown_remark_lint.md | 2 +- docs/descriptors/openapi_spectral.md | 2 +- docs/descriptors/php_phpstan.md | 2 +- docs/descriptors/protobuf_protolint.md | 2 +- docs/descriptors/python_bandit.md | 2 +- docs/descriptors/python_black.md | 6 +- docs/descriptors/python_flake8.md | 6 +- docs/descriptors/python_isort.md | 2 +- docs/descriptors/python_mypy.md | 4 +- docs/descriptors/python_pylint.md | 30 +++++---- docs/descriptors/rst_rst_lint.md | 2 +- docs/descriptors/rst_rstcheck.md | 2 +- docs/descriptors/rst_rstfmt.md | 9 +-- docs/descriptors/snakemake_snakefmt.md | 2 +- docs/descriptors/snakemake_snakemake.md | 4 +- docs/descriptors/spell_cspell.md | 4 +- docs/descriptors/spell_misspell.md | 2 +- docs/descriptors/sql_sql_lint.md | 2 +- docs/descriptors/sql_sqlfluff.md | 4 +- docs/descriptors/tekton_tekton_lint.md | 2 +- docs/descriptors/terraform_checkov.md | 2 +- docs/descriptors/tsx_eslint.md | 2 +- docs/descriptors/typescript_eslint.md | 2 +- docs/descriptors/typescript_prettier.md | 2 +- docs/descriptors/xml_xmllint.md | 2 +- docs/descriptors/yaml_prettier.md | 4 +- docs/descriptors/yaml_v8r.md | 2 +- docs/descriptors/yaml_yamllint.md | 2 +- docs/flavors.md | 2 +- docs/flavors/python.md | 1 - flavors/python/Dockerfile | 2 - flavors/python/flavor.json | 1 - megalinter/descriptors/all_flavors.json | 1 - .../descriptors/rst.megalinter-descriptor.yml | 1 + .../test_megalinter/helpers/utilstest.py | 4 +- 74 files changed, 222 insertions(+), 140 deletions(-) diff --git a/.automation/generated/flavors-stats.json b/.automation/generated/flavors-stats.json index 5ead6bc321e..20928451b9e 100644 --- a/.automation/generated/flavors-stats.json +++ b/.automation/generated/flavors-stats.json @@ -679,6 +679,10 @@ [ "2022-03-24T01:48:26", 2472315 + ], + [ + "2022-03-26T22:36:41", + 2473595 ] ], "ci_light": [ @@ -1361,6 +1365,10 @@ [ "2022-03-24T01:48:26", 8517 + ], + [ + "2022-03-26T22:36:41", + 8771 ] ], "dart": [ @@ -2043,6 +2051,10 @@ [ "2022-03-24T01:48:26", 2488 + ], + [ + "2022-03-26T22:36:41", + 2499 ] ], "documentation": [ @@ -2725,6 +2737,10 @@ [ "2022-03-24T01:48:26", 46087 + ], + [ + "2022-03-26T22:36:41", + 46328 ] ], "dotnet": [ @@ -3407,6 +3423,10 @@ [ "2022-03-24T01:48:26", 291690 + ], + [ + "2022-03-26T22:36:41", + 291986 ] ], "go": [ @@ -4089,6 +4109,10 @@ [ "2022-03-24T01:48:26", 9027 + ], + [ + "2022-03-26T22:36:41", + 9118 ] ], "java": [ @@ -4771,6 +4795,10 @@ [ "2022-03-24T01:48:26", 65969 + ], + [ + "2022-03-26T22:36:41", + 66689 ] ], "javascript": [ @@ -5453,6 +5481,10 @@ [ "2022-03-24T01:48:26", 99034 + ], + [ + "2022-03-26T22:36:41", + 99756 ] ], "php": [ @@ -6135,6 +6167,10 @@ [ "2022-03-24T01:48:26", 4693 + ], + [ + "2022-03-26T22:36:41", + 4747 ] ], "python": [ @@ -6817,6 +6853,10 @@ [ "2022-03-24T01:48:26", 65983 + ], + [ + "2022-03-26T22:36:41", + 66332 ] ], "ruby": [ @@ -7495,6 +7535,10 @@ [ "2022-03-24T01:48:26", 2007 + ], + [ + "2022-03-26T22:36:41", + 2010 ] ], "rust": [ @@ -8173,6 +8217,10 @@ [ "2022-03-24T01:48:26", 2855 + ], + [ + "2022-03-26T22:36:41", + 2897 ] ], "salesforce": [ @@ -8855,6 +8903,10 @@ [ "2022-03-24T01:48:26", 11477 + ], + [ + "2022-03-26T22:36:41", + 11500 ] ], "scala": [ @@ -9533,6 +9585,10 @@ [ "2022-03-24T01:48:26", 1463 + ], + [ + "2022-03-26T22:36:41", + 1463 ] ], "swift": [ @@ -10211,6 +10267,10 @@ [ "2022-03-24T01:48:26", 1501 + ], + [ + "2022-03-26T22:36:41", + 1501 ] ], "terraform": [ @@ -10893,6 +10953,10 @@ [ "2022-03-24T01:48:26", 46854 + ], + [ + "2022-03-26T22:36:41", + 47461 ] ] } \ No newline at end of file diff --git a/.automation/generated/linter-helps.json b/.automation/generated/linter-helps.json index c064af45b88..e1f625f0e4b 100644 --- a/.automation/generated/linter-helps.json +++ b/.automation/generated/linter-helps.json @@ -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.", @@ -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-", @@ -2400,7 +2400,7 @@ " [--exclude-files [] ...]", " [--include-files [] ...]", "", - "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", @@ -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": [ @@ -3860,7 +3860,8 @@ " --ignore-patterns=[,...]", " 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=[,...]", " Add files or directories matching the regex patterns", " to the ignore-list. The regex matches against paths", @@ -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= Discover python modules and packages in the file", + " system subtree. [current: no]", " --py-version=", " Minimum Python version to use for version dependent", " checks. Will default to the version used to run", @@ -3942,8 +3945,8 @@ " --confidence=", " 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 , --enable=", " Enable the message, report, category or checker with", " the given id(s). You can either give multiple", @@ -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", @@ -3977,13 +3980,14 @@ " --evaluation=", " 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 , --score=", " Activate the evaluation score. [current: yes]", " --msg-template=