Skip to content

Commit

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

* [MegaLinter] Apply linters fixes

---------

Co-authored-by: nvuillam <nvuillam@users.noreply.github.com>
  • Loading branch information
nvuillam and nvuillam authored Dec 9, 2023
1 parent 89e2b1b commit 371bcec
Show file tree
Hide file tree
Showing 36 changed files with 1,118 additions and 1,106 deletions.
634 changes: 318 additions & 316 deletions .automation/generated/linter-helps.json

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions .automation/generated/linter-versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"actionlint": "1.6.26",
"ansible-lint": "6.22.1",
"arm-ttk": "0.0.0",
"bandit": "1.7.5",
"bandit": "1.7.6",
"bash-exec": "5.2.15",
"bicep_linter": "0.23.1",
"black": "23.11.0",
Expand Down Expand Up @@ -40,7 +40,7 @@
"hadolint": "2.12.0",
"helm": "3.11.3",
"htmlhint": "1.1.4",
"isort": "5.12.0",
"isort": "5.13.0",
"jscpd": "3.5.10",
"jsonlint": "14.0.3",
"kics": "1.7.11",
Expand All @@ -50,20 +50,20 @@
"kubeval": "0.16.1",
"lightning-flow-scanner": "2.16.0",
"lintr": "0.0.0",
"luacheck": "1.1.1",
"luacheck": "1.1.2",
"lychee": "0.13.0",
"markdown-link-check": "3.11.2",
"markdown-table-formatter": "1.5.0",
"markdownlint": "0.37.0",
"markdownlint": "0.38.0",
"misspell": "0.3.4",
"mypy": "1.7.1",
"npm-groovy-lint": "13.0.2",
"npm-package-json-lint": "7.1.0",
"perlcritic": "1.152",
"php": "7.4.26",
"phpcs": "3.7.2",
"phpcs": "3.8.0",
"phplint": "9.0.6",
"phpstan": "1.10.47",
"phpstan": "1.10.48",
"pmd": "6.55.0",
"powershell": "7.4.0",
"powershell_formatter": "7.4.0",
Expand Down Expand Up @@ -104,7 +104,7 @@
"syft": "0.98.0",
"tekton-lint": "0.6.0",
"terraform-fmt": "1.6.5",
"terragrunt": "0.53.8",
"terragrunt": "0.54.0",
"terrascan": "1.18.3",
"tflint": "0.49.0",
"trivy": "0.48.0",
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,13 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l
- [checkstyle](https://checkstyle.sourceforge.io) from 10.12.5 to **10.12.6** on 2023-12-07
- [checkov](https://www.checkov.io/) from 3.1.25 to **3.1.27** on 2023-12-07
- [cspell](https://github.com/streetsidesoftware/cspell/tree/master/packages/cspell) from 8.1.2 to **8.1.3** on 2023-12-07
- [luacheck](https://luacheck.readthedocs.io) from 1.1.1 to **1.1.2** on 2023-12-09
- [markdownlint](https://github.com/DavidAnson/markdownlint) from 0.37.0 to **0.38.0** on 2023-12-09
- [phpcs](https://github.com/squizlabs/PHP_CodeSniffer) from 3.7.2 to **3.8.0** on 2023-12-09
- [phpstan](https://phpstan.org/) from 1.10.47 to **1.10.48** on 2023-12-09
- [bandit](https://bandit.readthedocs.io/en/latest/) from 1.7.5 to **1.7.6** on 2023-12-09
- [isort](https://pycqa.github.io/isort/) from 5.12.0 to **5.13.0** on 2023-12-09
- [terragrunt](https://terragrunt.gruntwork.io) from 0.53.8 to **0.54.0** on 2023-12-09
<!-- linter-versions-end -->

## [v7.6.0] - 2023-11-19
Expand Down
54 changes: 27 additions & 27 deletions README.md

Large diffs are not rendered by default.

14 changes: 7 additions & 7 deletions docs/all_linters.md

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions docs/descriptors/css_stylelint.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ description: How to use stylelint (configure, ignore files, ignore errors, help
</a>
</div>

[![GitHub stars](https://img.shields.io/github/stars/stylelint/stylelint?cacheSeconds=3600)](https://github.com/stylelint/stylelint) ![autofix](https://shields.io/badge/-autofix-green) [![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/stylelint/stylelint?sort=semver)](https://github.com/stylelint/stylelint/releases) [![GitHub last commit](https://img.shields.io/github/last-commit/stylelint/stylelint)](https://github.com/stylelint/stylelint/commits) [![GitHub commit activity](https://img.shields.io/github/commit-activity/y/stylelint/stylelint)](https://github.com/stylelint/stylelint/graphs/commit-activity/) [![GitHub contributors](https://img.shields.io/github/contributors/stylelint/stylelint)](https://github.com/stylelint/stylelint/graphs/contributors/)
![downgraded version](https://shields.io/badge/-downgraded%20version-orange) [![GitHub stars](https://img.shields.io/github/stars/stylelint/stylelint?cacheSeconds=3600)](https://github.com/stylelint/stylelint) ![autofix](https://shields.io/badge/-autofix-green) [![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/stylelint/stylelint?sort=semver)](https://github.com/stylelint/stylelint/releases) [![GitHub last commit](https://img.shields.io/github/last-commit/stylelint/stylelint)](https://github.com/stylelint/stylelint/commits) [![GitHub commit activity](https://img.shields.io/github/commit-activity/y/stylelint/stylelint)](https://github.com/stylelint/stylelint/graphs/commit-activity/) [![GitHub contributors](https://img.shields.io/github/contributors/stylelint/stylelint)](https://github.com/stylelint/stylelint/graphs/contributors/)

## stylelint documentation

Expand Down Expand Up @@ -294,7 +294,7 @@ stylelint --fix --config .stylelintrc.json myfile.css myfile2.css myfile3.css
### Installation on mega-linter Docker image
- NPM packages (node.js):
- [stylelint](https://www.npmjs.com/package/stylelint)
- [stylelint-config-standard](https://www.npmjs.com/package/stylelint-config-standard)
- [stylelint@15.11.0](https://www.npmjs.com/package/stylelint@15.11.0)
- [stylelint-config-standard@34.0.0](https://www.npmjs.com/package/stylelint-config-standard@34.0.0)
- [stylelint-config-sass-guidelines](https://www.npmjs.com/package/stylelint-config-sass-guidelines)
- [stylelint-scss](https://www.npmjs.com/package/stylelint-scss)
2 changes: 1 addition & 1 deletion docs/descriptors/kubernetes_kubescape.md
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ Available Commands:
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
Expand Down
4 changes: 2 additions & 2 deletions docs/descriptors/lua_luacheck.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: How to use luacheck (configure, ignore files, ignore errors, help &

## luacheck documentation

- Version in MegaLinter: **1.1.1**
- Version in MegaLinter: **1.1.2**
- Visit [Official Web Site](https://luacheck.readthedocs.io){target=_blank}
- See [How to configure luacheck rules](https://luacheck.readthedocs.io/en/stable/config.html){target=_blank}
- If custom `.luacheckrc` config file isn't found, [.luacheckrc](https://github.com/oxsecurity/megalinter/tree/main/TEMPLATES/.luacheckrc){target=_blank} will be used
Expand Down Expand Up @@ -110,7 +110,7 @@ Usage: luacheck ([--config <config>] | [--no-config])
[--exclude-files <glob> [<glob>] ...]
[--include-files <glob> [<glob>] ...]

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
Expand Down
2 changes: 1 addition & 1 deletion docs/descriptors/markdown_markdownlint.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ To see MarkdownLint version, you can have a look in the dependencies of latest m

## markdownlint documentation

- Version in MegaLinter: **0.37.0**
- Version in MegaLinter: **0.38.0**
- Visit [Official Web Site](https://github.com/DavidAnson/markdownlint#readme){target=_blank}
- See [How to configure markdownlint rules](https://github.com/igorshubovych/markdownlint-cli#configuration){target=_blank}
- If custom `.markdownlint.json` config file isn't found, [.markdownlint.json](https://github.com/oxsecurity/megalinter/tree/main/TEMPLATES/.markdownlint.json){target=_blank} will be used
Expand Down
10 changes: 5 additions & 5 deletions docs/descriptors/php_phpcs.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: How to use phpcs (configure, ignore files, ignore errors, help & ve

## phpcs documentation

- Version in MegaLinter: **3.7.2**
- Version in MegaLinter: **3.8.0**
- Visit [Official Web Site](https://github.com/squizlabs/PHP_CodeSniffer#readme){target=_blank}
- See [How to configure phpcs rules](https://github.com/squizlabs/PHP_CodeSniffer/wiki/Advanced-Usage#using-a-default-configuration-file){target=_blank}
- If custom `phpcs.xml` config file isn't found, [phpcs.xml](https://github.com/oxsecurity/megalinter/tree/main/TEMPLATES/phpcs.xml){target=_blank} will be used
Expand Down Expand Up @@ -139,16 +139,16 @@ Usage: phpcs [-nwlsaepqvi] [-d key[=value]] [--colors] [--no-colors]
e.g., module/php,es/js
<file> One or more files and/or directories to check
<fileList> A file containing a list of files and/or directories to check (one per line)
<filter> Use either the "gitmodified" or "gitstaged" filter,
<filter> Use either the "GitModified" or "GitStaged" filter,
or specify the path to a custom filter class
<generator> Use either the "HTML", "Markdown" or "Text" generator
(forces documentation generation instead of checking)
<patterns> A comma separated list of patterns to ignore files and directories
<processes> How many files should be checked simultaneously (default is 1)
<report> 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)
<reportFile> Write the report to the specified file path
<reportWidth> How many columns wide screen reports should be printed
Expand Down Expand Up @@ -183,7 +183,7 @@ RUN GITHUB_AUTH_TOKEN="$(cat /run/secrets/GITHUB_TOKEN)" \
&& update-alternatives --install /usr/bin/php php /usr/bin/php81 110

# Linter install
RUN GITHUB_AUTH_TOKEN="$(cat /run/secrets/GITHUB_TOKEN)" && export GITHUB_AUTH_TOKEN && phive --no-progress install phpcs -g --trust-gpg-keys 31C7E470E2138192
RUN GITHUB_AUTH_TOKEN="$(cat /run/secrets/GITHUB_TOKEN)" && export GITHUB_AUTH_TOKEN && phive --no-progress install phpcs -g --trust-gpg-keys 31C7E470E2138192,95DE904AB800754A11D80B605E6DDE998AB73B8E

```
2 changes: 1 addition & 1 deletion docs/descriptors/php_phpstan.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: How to use phpstan (configure, ignore files, ignore errors, help &

## phpstan documentation

- Version in MegaLinter: **1.10.47**
- Version in MegaLinter: **1.10.48**
- 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 isn't found, [phpstan.neon.dist](https://github.com/oxsecurity/megalinter/tree/main/TEMPLATES/phpstan.neon.dist){target=_blank} will be used
Expand Down
2 changes: 1 addition & 1 deletion docs/descriptors/python_bandit.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ If you find it too harsh, you may define `PYTHON_BANDIT_DISABLE_ERRORS: true` in

## bandit documentation

- Version in MegaLinter: **1.7.5**
- Version in MegaLinter: **1.7.6**
- Visit [Official Web Site](https://bandit.readthedocs.io/en/latest/){target=_blank}
- See [How to configure bandit rules](https://bandit.readthedocs.io/en/latest/config.html#){target=_blank}
- If custom `.bandit.yml` config file isn't found, [.bandit.yml](https://github.com/oxsecurity/megalinter/tree/main/TEMPLATES/.bandit.yml){target=_blank} will be used
Expand Down
6 changes: 3 additions & 3 deletions docs/descriptors/python_isort.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ description: How to use isort (configure, ignore files, ignore errors, help & ve

## isort documentation

- Version in MegaLinter: **5.12.0**
- Version in MegaLinter: **5.13.0**
- Visit [Official Web Site](https://pycqa.github.io/isort/){target=_blank}
- See [How to configure isort rules](https://pycqa.github.io/isort/docs/configuration/config_files.html){target=_blank}
- If custom `.isort.cfg` config file isn't found, [.isort.cfg](https://github.com/oxsecurity/megalinter/tree/main/TEMPLATES/.isort.cfg){target=_blank} will be used
Expand Down Expand Up @@ -135,7 +135,7 @@ usage: isort [-h] [-V] [--vn] [-v] [--only-modified] [--dedup-headings] [-q]
[-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
Expand Down Expand Up @@ -466,7 +466,7 @@ section output options:
--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
Expand Down
Loading

0 comments on commit 371bcec

Please sign in to comment.