Skip to content

Commit

Permalink
[automation] Auto-update linters version, help and documentation (#3744)
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 <[email protected]>
  • Loading branch information
nvuillam and nvuillam authored Jul 6, 2024
1 parent 350fd81 commit 9d76a95
Show file tree
Hide file tree
Showing 20 changed files with 150 additions and 148 deletions.
91 changes: 44 additions & 47 deletions .automation/generated/linter-helps.json

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions .automation/generated/linter-versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"coffeelint": "5.2.11",
"cpplint": "1.6.1",
"csharpier": "0.28.2",
"cspell": "8.10.0",
"cspell": "8.10.4",
"dartanalyzer": "0.0.0",
"detekt": "1.23.6",
"devskim": "1.0.33",
Expand Down Expand Up @@ -65,8 +65,8 @@
"php": "7.4.26",
"php-cs-fixer": "3.59.3",
"phpcs": "3.10.1",
"phplint": "9.3.1",
"phpstan": "1.11.6",
"phplint": "9.4.1",
"phpstan": "1.11.7",
"pmd": "7.3.0",
"powershell": "7.4.2",
"powershell_formatter": "7.4.2",
Expand All @@ -85,7 +85,7 @@
"rstcheck": "6.2.1",
"rstfmt": "0.0.14",
"rubocop": "1.64.1",
"ruff": "0.5.0",
"ruff": "0.5.1",
"scalafix": "0.12.1",
"scss-lint": "0.60.0",
"secretlint": "8.2.4",
Expand All @@ -97,7 +97,7 @@
"shellcheck": "0.10.0",
"shfmt": "3.8.0",
"snakefmt": "0.10.2",
"snakemake": "8.15.1",
"snakemake": "8.15.2",
"spectral": "6.11.1",
"sql-lint": "1.0.0",
"sqlfluff": "3.1.0",
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,11 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l
- [sfdx-scanner-aura](https://forcedotcom.github.io/sfdx-scanner/) from 3.26.0 to **4.3.2** on 2024-07-04
- [sfdx-scanner-lwc](https://forcedotcom.github.io/sfdx-scanner/) from 3.26.0 to **4.3.2** on 2024-07-04
- [phpstan](https://phpstan.org/) from 1.11.4 to **1.11.6** on 2024-07-06
- [phplint](https://github.com/overtrue/phplint) from 9.3.1 to **9.4.1** on 2024-07-06
- [phpstan](https://phpstan.org/) from 1.11.6 to **1.11.7** on 2024-07-06
- [ruff](https://github.com/astral-sh/ruff) from 0.5.0 to **0.5.1** on 2024-07-06
- [snakemake](https://snakemake.readthedocs.io/en/stable/) from 8.15.1 to **8.15.2** on 2024-07-06
- [cspell](https://github.com/streetsidesoftware/cspell/tree/master/packages/cspell) from 8.10.0 to **8.10.4** on 2024-07-06
<!-- linter-versions-end -->

## [v7.12.0] - 2024-06-02
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
[![MegaLinter](https://github.com/oxsecurity/megalinter/workflows/MegaLinter/badge.svg?branch=main)](https://github.com/oxsecurity/megalinter/actions?query=workflow%3AMegaLinter+branch%3Amain)
[![codecov](https://codecov.io/gh/oxsecurity/megalinter/branch/main/graph/badge.svg)](https://codecov.io/gh/oxsecurity/megalinter)
<!-- gh-dependents-info-used-by-start -->
[![Generated by github-dependents-info](https://img.shields.io/static/v1?label=Used%20by&message=2503&color=informational&logo=slickpic)](https://github.com/oxsecurity/megalinter/blob/main/./docs/used-by-stats.md)<!-- gh-dependents-info-used-by-end -->
[![Generated by github-dependents-info](https://img.shields.io/static/v1?label=Used%20by&message=2506&color=informational&logo=slickpic)](https://github.com/oxsecurity/megalinter/blob/main/./docs/used-by-stats.md)<!-- gh-dependents-info-used-by-end -->
[![Secured with Trivy](https://img.shields.io/badge/Trivy-secured-green?logo=docker)](https://github.com/aquasecurity/trivy)
[![GitHub contributors](https://img.shields.io/github/contributors/oxsecurity/megalinter.svg)](https://github.com/oxsecurity/megalinter/graphs/contributors/)
[![GitHub Sponsors](https://img.shields.io/github/sponsors/nvuillam)](https://github.com/sponsors/nvuillam)
Expand Down
10 changes: 5 additions & 5 deletions docs/all_linters.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/descriptors/markdown_markdown_link_check.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ markdown-link-check -c .markdown-link-check.json myfile.md
### Help content

```shell
(node:1519) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(node:1522) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Usage: markdown-link-check [options] [filenamesOrUrls...]

Expand Down
2 changes: 1 addition & 1 deletion docs/descriptors/php_phpcs.md
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ RUN GITHUB_AUTH_TOKEN="$(cat /run/secrets/GITHUB_TOKEN)" \
COPY --from=composer/composer:2-bin /composer /usr/bin/composer
ENV PATH="/root/.composer/vendor/bin:${PATH}"
# Linter install
RUN GITHUB_AUTH_TOKEN="$(cat /run/secrets/GITHUB_TOKEN)" && export GITHUB_AUTH_TOKEN && composer global require squizlabs/php_codesniffer bartlett/sarif-php-sdk ^1.5
RUN GITHUB_AUTH_TOKEN="$(cat /run/secrets/GITHUB_TOKEN)" && export GITHUB_AUTH_TOKEN && composer global require squizlabs/php_codesniffer bartlett/sarif-php-converters "1.0.x-dev#8ed4611 as 1.0.0"

```
51 changes: 24 additions & 27 deletions docs/descriptors/php_phplint.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: How to use phplint (configure, ignore files, ignore errors, help &

## phplint documentation

- Version in MegaLinter: **9.3.1**
- Version in MegaLinter: **9.4.1**
- Visit [Official Web Site](https://github.com/overtrue/phplint#readme){target=_blank}
- If custom `.phplint.yml` config file isn't found, [.phplint.yml](https://github.com/oxsecurity/megalinter/tree/main/TEMPLATES/.phplint.yml){target=_blank} will be used

Expand Down Expand Up @@ -89,33 +89,30 @@ Usage:
lint [options] [--] [<path>...]

Arguments:
path Path to file or directory to lint (default: working directory)
path Path to file or directory to lint (default: working directory)

Options:
--exclude=EXCLUDE Path to file or directory to exclude from linting (multiple values allowed)
--extensions=EXTENSIONS Check only files with selected extensions (multiple values allowed)
-j, --jobs=JOBS Number of paralleled jobs to run
-c, --configuration=CONFIGURATION Read configuration from config file [default: ".phplint.yml"]
--no-configuration Ignore default configuration file (.phplint.yml)
--cache=CACHE Path to the cache directory
--no-cache Ignore cached data
-p, --progress=PROGRESS Show the progress output
--no-progress Hide the progress output
--log-json[=LOG-JSON] Log scan results in JSON format to file (default: standard output)
--log-junit[=LOG-JUNIT] Log scan results in JUnit XML format to file (default: standard output)
--log-sarif[=LOG-SARIF] Log scan results in SARIF format to file (default: standard output)
--sarif-converter[=SARIF-CONVERTER] SARIF class converter (default: Bartlett\Sarif\Converter\PhpLintConverter)
-w, --warning Also show warnings
--memory-limit=MEMORY-LIMIT Memory limit for analysis
--ignore-exit-code Ignore exit codes so there are no "failure" exit code even when no files processed
--bootstrap=BOOTSTRAP A PHP script that is included before the linter run
-h, --help Display help for the given command. When no command is given display help for the lint command
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi|--no-ansi Force (or disable --no-ansi) ANSI output
-n, --no-interaction Do not ask any interactive question
--manifest Show which versions of dependencies are bundled
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
--exclude=EXCLUDE Path to file or directory to exclude from linting (multiple values allowed)
--extensions=EXTENSIONS Check only files with selected extensions (multiple values allowed)
-j, --jobs=JOBS Number of paralleled jobs to run
-c, --configuration=CONFIGURATION Read configuration from config file [default: ".phplint.yml"]
--no-configuration Ignore default configuration file (.phplint.yml)
--cache=CACHE Path to the cache directory
--no-cache Ignore cached data
-p, --progress=PROGRESS Show the progress output
--no-progress Hide the progress output
-o, --output=OUTPUT Generate an output to the specified path (default: standard output)
--format=FORMAT Format of requested reports (multiple values allowed)
-w, --warning Also show warnings
--memory-limit=MEMORY-LIMIT Memory limit for analysis
--ignore-exit-code Ignore exit codes so there are no "failure" exit code even when no files processed
--bootstrap=BOOTSTRAP A PHP script that is included before the linter run
-h, --help Display help for the given command. When no command is given display help for the lint command
-q, --quiet Do not output any message
-V, --version Display this application version
--ansi|--no-ansi Force (or disable --no-ansi) ANSI output
-n, --no-interaction Do not ask any interactive question
-v|vv|vvv, --verbose Increase the verbosity of messages: 1 for normal output, 2 for more verbose output and 3 for debug
```

### Installation on mega-linter Docker image
Expand All @@ -141,7 +138,7 @@ RUN GITHUB_AUTH_TOKEN="$(cat /run/secrets/GITHUB_TOKEN)" \
COPY --from=composer/composer:2-bin /composer /usr/bin/composer
ENV PATH="/root/.composer/vendor/bin:${PATH}"
# Linter install
RUN GITHUB_AUTH_TOKEN="$(cat /run/secrets/GITHUB_TOKEN)" && export GITHUB_AUTH_TOKEN && phive --no-progress install overtrue/phplint --force-accept-unsigned -g
RUN GITHUB_AUTH_TOKEN="$(cat /run/secrets/GITHUB_TOKEN)" && export GITHUB_AUTH_TOKEN && composer global require overtrue/phplint bartlett/sarif-php-converters "1.0.x-dev#8ed4611 as 1.0.0"

```

4 changes: 2 additions & 2 deletions 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.11.4**
- Version in MegaLinter: **1.11.7**
- 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 Expand Up @@ -140,6 +140,6 @@ RUN GITHUB_AUTH_TOKEN="$(cat /run/secrets/GITHUB_TOKEN)" \
COPY --from=composer/composer:2-bin /composer /usr/bin/composer
ENV PATH="/root/.composer/vendor/bin:${PATH}"
# Linter install
RUN GITHUB_AUTH_TOKEN="$(cat /run/secrets/GITHUB_TOKEN)" && export GITHUB_AUTH_TOKEN && composer global require phpstan/phpstan:1.11.4 bartlett/sarif-php-sdk ^1.5
RUN GITHUB_AUTH_TOKEN="$(cat /run/secrets/GITHUB_TOKEN)" && export GITHUB_AUTH_TOKEN && composer global require phpstan/phpstan bartlett/sarif-php-converters "1.0.x-dev#8ed4611 as 1.0.0"
```
2 changes: 1 addition & 1 deletion docs/descriptors/python_ruff.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ An extremely fast Python linter, written in Rust.

## ruff documentation

- Version in MegaLinter: **0.5.0**
- Version in MegaLinter: **0.5.1**
- Visit [Official Web Site](https://github.com/astral-sh/ruff#readme){target=_blank}
- See [How to configure ruff rules](https://docs.astral.sh/ruff/configuration/){target=_blank}
- If custom `.ruff.toml` config file isn't found, [.ruff.toml](https://github.com/oxsecurity/megalinter/tree/main/TEMPLATES/.ruff.toml){target=_blank} will be used
Expand Down
4 changes: 2 additions & 2 deletions docs/descriptors/repository_checkov.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/descriptors/salesforce.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ ARG SALESFORCE_CLI_VERSION=2.48.6
# renovate: datasource=npm depName=@salesforce/plugin-packaging
ARG SALESFORCE_PLUGIN_PACKAGING_VERSION=2.7.0
# renovate: datasource=npm depName=sfdx-hardis
ARG SFDX_HARDIS_VERSION=4.41.0
ARG SFDX_HARDIS_VERSION=4.42.0
ENV JAVA_HOME=/usr/lib/jvm/java-21-openjdk
ENV PATH="$JAVA_HOME/bin:${PATH}"
RUN sf plugins install @salesforce/plugin-packaging@${SALESFORCE_PLUGIN_PACKAGING_VERSION} \
Expand Down
4 changes: 2 additions & 2 deletions docs/descriptors/salesforce_lightning_flow_scanner.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ sf flow:scan
### Help content

```shell
(node:1749) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(node:1750) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Find and fix potential bugs in Salesforce flows.

Expand Down Expand Up @@ -127,7 +127,7 @@ ARG SALESFORCE_CLI_VERSION=2.48.6
# renovate: datasource=npm depName=@salesforce/plugin-packaging
ARG SALESFORCE_PLUGIN_PACKAGING_VERSION=2.7.0
# renovate: datasource=npm depName=sfdx-hardis
ARG SFDX_HARDIS_VERSION=4.41.0
ARG SFDX_HARDIS_VERSION=4.42.0
ENV JAVA_HOME=/usr/lib/jvm/java-21-openjdk
ENV PATH="$JAVA_HOME/bin:${PATH}"
RUN sf plugins install @salesforce/plugin-packaging@${SALESFORCE_PLUGIN_PACKAGING_VERSION} \
Expand Down
6 changes: 3 additions & 3 deletions docs/descriptors/salesforce_sfdx_scanner_apex.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ sf scanner:run
### Help content

```shell
(node:1761) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(node:1762) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Scan a codebase with all the rules in the registry, or use parameters to filter the rules based on rulename, category, or ruleset.

Expand Down Expand Up @@ -148,7 +148,7 @@ GLOBAL FLAGS
COMMANDS
scanner run dfa Scan codebase with all DFA rules by default.

(node:1773) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(node:1774) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
› Warning: Plugin @salesforce/sfdx-scanner (4.3.2) differs from the version
› specified by sf (4.3.0)
Expand Down Expand Up @@ -380,7 +380,7 @@ ARG SALESFORCE_CLI_VERSION=2.48.6
# renovate: datasource=npm depName=@salesforce/plugin-packaging
ARG SALESFORCE_PLUGIN_PACKAGING_VERSION=2.7.0
# renovate: datasource=npm depName=sfdx-hardis
ARG SFDX_HARDIS_VERSION=4.41.0
ARG SFDX_HARDIS_VERSION=4.42.0
ENV JAVA_HOME=/usr/lib/jvm/java-21-openjdk
ENV PATH="$JAVA_HOME/bin:${PATH}"
RUN sf plugins install @salesforce/plugin-packaging@${SALESFORCE_PLUGIN_PACKAGING_VERSION} \
Expand Down
6 changes: 3 additions & 3 deletions docs/descriptors/salesforce_sfdx_scanner_aura.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ sf scanner:run
### Help content

```shell
(node:1953) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(node:1956) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Scan a codebase with all the rules in the registry, or use parameters to filter the rules based on rulename, category, or ruleset.

Expand Down Expand Up @@ -144,7 +144,7 @@ GLOBAL FLAGS
COMMANDS
scanner run dfa Scan codebase with all DFA rules by default.

(node:1965) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(node:1968) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
› Warning: Plugin @salesforce/sfdx-scanner (4.3.2) differs from the version
› specified by sf (4.3.0)
Expand Down Expand Up @@ -376,7 +376,7 @@ ARG SALESFORCE_CLI_VERSION=2.48.6
# renovate: datasource=npm depName=@salesforce/plugin-packaging
ARG SALESFORCE_PLUGIN_PACKAGING_VERSION=2.7.0
# renovate: datasource=npm depName=sfdx-hardis
ARG SFDX_HARDIS_VERSION=4.41.0
ARG SFDX_HARDIS_VERSION=4.42.0
ENV JAVA_HOME=/usr/lib/jvm/java-21-openjdk
ENV PATH="$JAVA_HOME/bin:${PATH}"
RUN sf plugins install @salesforce/plugin-packaging@${SALESFORCE_PLUGIN_PACKAGING_VERSION} \
Expand Down
6 changes: 3 additions & 3 deletions docs/descriptors/salesforce_sfdx_scanner_lwc.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ sf scanner:run
### Help content

```shell
(node:2146) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(node:2150) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Scan a codebase with all the rules in the registry, or use parameters to filter the rules based on rulename, category, or ruleset.

Expand Down Expand Up @@ -144,7 +144,7 @@ GLOBAL FLAGS
COMMANDS
scanner run dfa Scan codebase with all DFA rules by default.

(node:2158) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(node:2162) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
› Warning: Plugin @salesforce/sfdx-scanner (4.3.2) differs from the version
› specified by sf (4.3.0)
Expand Down Expand Up @@ -376,7 +376,7 @@ ARG SALESFORCE_CLI_VERSION=2.48.6
# renovate: datasource=npm depName=@salesforce/plugin-packaging
ARG SALESFORCE_PLUGIN_PACKAGING_VERSION=2.7.0
# renovate: datasource=npm depName=sfdx-hardis
ARG SFDX_HARDIS_VERSION=4.41.0
ARG SFDX_HARDIS_VERSION=4.42.0
ENV JAVA_HOME=/usr/lib/jvm/java-21-openjdk
ENV PATH="$JAVA_HOME/bin:${PATH}"
RUN sf plugins install @salesforce/plugin-packaging@${SALESFORCE_PLUGIN_PACKAGING_VERSION} \
Expand Down
Loading

0 comments on commit 9d76a95

Please sign in to comment.