Skip to content

Commit

Permalink
[automation] Auto-update linters version, help and documentation (#3949)
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 Aug 30, 2024
1 parent a3e32e2 commit 798ea3b
Show file tree
Hide file tree
Showing 15 changed files with 96 additions and 73 deletions.
41 changes: 25 additions & 16 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 @@ -9,7 +9,7 @@
"cfn-lint": "1.11.1",
"checkmake": "0.2.0",
"checkov": "3.2.239",
"checkstyle": "10.18.0",
"checkstyle": "10.18.1",
"chktex": "1.7.8",
"clang-format": "17.0.6",
"clippy": "0.1.80",
Expand Down Expand Up @@ -67,7 +67,7 @@
"phpcs": "3.10.2",
"phplint": "9.4.1",
"phpstan": "1.12.0",
"pmd": "7.4.0",
"pmd": "7.5.0",
"powershell": "7.4.2",
"powershell_formatter": "7.4.2",
"prettier": "3.3.3",
Expand All @@ -91,9 +91,9 @@
"secretlint": "8.2.4",
"semgrep": "3.12",
"sfdx-scanner": "2.8.0",
"sfdx-scanner-apex": "4.4.0",
"sfdx-scanner-aura": "4.4.0",
"sfdx-scanner-lwc": "4.4.0",
"sfdx-scanner-apex": "4.5.0",
"sfdx-scanner-aura": "4.5.0",
"sfdx-scanner-lwc": "4.5.0",
"shellcheck": "0.10.0",
"shfmt": "3.8.0",
"snakefmt": "0.10.2",
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,11 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l
- [ruff](https://github.com/astral-sh/ruff) from 0.6.2 to **0.6.3** on 2024-08-29
- [checkov](https://www.checkov.io/) from 3.2.238 to **3.2.239** on 2024-08-29
- [snakemake](https://snakemake.readthedocs.io/en/stable/) from 8.18.2 to **8.19.0** on 2024-08-29
- [checkstyle](https://checkstyle.org/) from 10.18.0 to **10.18.1** on 2024-08-30
- [pmd](https://pmd.github.io/) from 7.4.0 to **7.5.0** on 2024-08-30
- [sfdx-scanner-apex](https://forcedotcom.github.io/sfdx-scanner/) from 4.4.0 to **4.5.0** on 2024-08-30
- [sfdx-scanner-aura](https://forcedotcom.github.io/sfdx-scanner/) from 4.4.0 to **4.5.0** on 2024-08-30
- [sfdx-scanner-lwc](https://forcedotcom.github.io/sfdx-scanner/) from 4.4.0 to **4.5.0** on 2024-08-30
<!-- linter-versions-end -->

## [v8.0.0] - 2024-08-19
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/java_checkstyle.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ description: How to use checkstyle (configure, ignore files, ignore errors, help

## checkstyle documentation

- Version in MegaLinter: **10.18.0**
- Version in MegaLinter: **10.18.1**
- Visit [Official Web Site](https://checkstyle.org/){target=_blank}
- See [How to configure checkstyle rules](https://checkstyle.org/config.html){target=_blank}
- If custom `sun_checks.xml` config file isn't found, [sun_checks.xml](https://github.com/oxsecurity/megalinter/tree/main/TEMPLATES/sun_checks.xml){target=_blank} will be used
Expand Down
4 changes: 2 additions & 2 deletions docs/descriptors/java_pmd.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: How to use pmd (configure, ignore files, ignore errors, help & vers

## pmd documentation

- Version in MegaLinter: **7.4.0**
- Version in MegaLinter: **7.5.0**
- Visit [Official Web Site](https://pmd.github.io/){target=_blank}
- See [How to configure pmd rules](https://docs.pmd-code.org/pmd-doc-6.55.0/pmd_userdocs_configuring_rules.html){target=_blank}
- If custom `java-pmd-ruleset.xml` config file isn't found, [java-pmd-ruleset.xml](https://github.com/oxsecurity/megalinter/tree/main/TEMPLATES/java-pmd-ruleset.xml){target=_blank} will be used
Expand Down Expand Up @@ -108,7 +108,7 @@ ENV JAVA_HOME=/usr/lib/jvm/java-21-openjdk
ENV PATH="$JAVA_HOME/bin:${PATH}"
# Linter install
# renovate: datasource=github-tags depName=pmd/pmd extractVersion=^pmd_releases/(?<version>.*)$
ARG PMD_VERSION=7.4.0
ARG PMD_VERSION=7.5.0

RUN wget --quiet https://github.com/pmd/pmd/releases/download/pmd_releases%2F${PMD_VERSION}/pmd-dist-${PMD_VERSION}-bin.zip && \
unzip pmd-dist-${PMD_VERSION}-bin.zip || echo "Error unzipping" && \
Expand Down
2 changes: 1 addition & 1 deletion docs/descriptors/kubernetes_kubescape.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ Available Commands:
completion Generate autocompletion script
config Handle cached configurations
delete Delete configurations in Kubescape SaaS version
download Download control,framework,artifacts,attack-tracks,controls-inputs,exceptions
download Download framework,artifacts,attack-tracks,controls-inputs,exceptions,control
fix Fix misconfiguration in files
help Help about any command
list List frameworks/controls will list the supported frameworks and controls
Expand Down
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:1517) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(node:1520) [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
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_lightning_flow_scanner.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ sf flow:scan
### Help content

```shell
(node:1738) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(node:1741) [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
11 changes: 7 additions & 4 deletions docs/descriptors/salesforce_sfdx_scanner_apex.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ See more details in [Help](#help-content)

## sfdx-scanner-apex documentation

- Version in MegaLinter: **4.4.0**
- Version in MegaLinter: **4.5.0**
- Visit [Official Web Site](https://forcedotcom.github.io/sfdx-scanner/){target=_blank}
- See [How to configure sfdx-scanner-apex rules](https://docs.pmd-code.org/latest/pmd_userdocs_making_rulesets.html){target=_blank}
- If custom `apex-pmd-ruleset.xml` config file isn't found, [apex-pmd-ruleset.xml](https://github.com/oxsecurity/megalinter/tree/main/TEMPLATES/apex-pmd-ruleset.xml){target=_blank} will be used
Expand Down Expand Up @@ -94,7 +94,7 @@ sf scanner:run
### Help content

```shell
(node:1750) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(node:1753) [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 @@ -149,8 +149,10 @@ GLOBAL FLAGS
COMMANDS
scanner run dfa Scan codebase with all DFA rules by default.

(node:1762) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(node:1765) [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.5.0) differs from the version
› specified by sf (4.4.0)
Warning: We're continually improving Salesforce Code Analyzer. Tell us what you think! Give feedback at https://research.net/r/SalesforceCA
name languages categories rulesets [dep] engine is dfa is pilot
────────────────────────────────────────────────────── ─────────── ───────────────────── ────────────── ───────────────── ────── ────────
Expand All @@ -167,6 +169,7 @@ Warning: We're continually improving Salesforce Code Analyzer. Tell us what you
DebugsShouldUseLoggingLevel apex Best Practices quickstart pmd N N
UnusedLocalVariable apex Best Practices pmd N N
AvoidDebugStatements apex Performance pmd N N
AvoidNonRestrictiveQueries apex Performance pmd N N
EagerlyLoadedDescribeSObjectResult apex Performance pmd N N
OperationWithHighCostInLoop apex Performance quickstart pmd N N
OperationWithLimitsInLoop apex Performance quickstart pmd N N
Expand Down Expand Up @@ -389,7 +392,7 @@ RUN sf plugins install @salesforce/plugin-packaging@${SALESFORCE_PLUGIN_PACKAGIN
ENV SF_AUTOUPDATE_DISABLE=true
# Linter install
# renovate: datasource=npm depName=@salesforce/sfdx-scanner
ARG SALESFORCE_SFDX_SCANNER_VERSION=4.4.0
ARG SALESFORCE_SFDX_SCANNER_VERSION=4.5.0
RUN sf plugins install @salesforce/sfdx-scanner@${SALESFORCE_SFDX_SCANNER_VERSION} \
&& npm cache clean --force || true \
&& rm -rf /root/.npm/_cacache
Expand Down
11 changes: 7 additions & 4 deletions docs/descriptors/salesforce_sfdx_scanner_aura.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ See more details in [Help](#help-content)

## sfdx-scanner-aura documentation

- Version in MegaLinter: **4.4.0**
- Version in MegaLinter: **4.5.0**
- Visit [Official Web Site](https://forcedotcom.github.io/sfdx-scanner/){target=_blank}
- See [How to configure sfdx-scanner-aura rules](https://eslint.org/docs/user-guide/configuring){target=_blank}
- See [How to disable sfdx-scanner-aura rules in files](https://eslint.org/docs/user-guide/configuring/rules#disabling-rules){target=_blank}
Expand Down Expand Up @@ -90,7 +90,7 @@ sf scanner:run
### Help content

```shell
(node:1940) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(node:1946) [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 @@ -145,8 +145,10 @@ GLOBAL FLAGS
COMMANDS
scanner run dfa Scan codebase with all DFA rules by default.

(node:1952) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(node:1958) [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.5.0) differs from the version
› specified by sf (4.4.0)
Warning: We're continually improving Salesforce Code Analyzer. Tell us what you think! Give feedback at https://research.net/r/SalesforceCA
name languages categories rulesets [dep] engine is dfa is pilot
────────────────────────────────────────────────────── ─────────── ───────────────────── ────────────── ───────────────── ────── ────────
Expand All @@ -163,6 +165,7 @@ Warning: We're continually improving Salesforce Code Analyzer. Tell us what you
DebugsShouldUseLoggingLevel apex Best Practices quickstart pmd N N
UnusedLocalVariable apex Best Practices pmd N N
AvoidDebugStatements apex Performance pmd N N
AvoidNonRestrictiveQueries apex Performance pmd N N
EagerlyLoadedDescribeSObjectResult apex Performance pmd N N
OperationWithHighCostInLoop apex Performance quickstart pmd N N
OperationWithLimitsInLoop apex Performance quickstart pmd N N
Expand Down Expand Up @@ -385,7 +388,7 @@ RUN sf plugins install @salesforce/plugin-packaging@${SALESFORCE_PLUGIN_PACKAGIN
ENV SF_AUTOUPDATE_DISABLE=true
# Linter install
# renovate: datasource=npm depName=@salesforce/sfdx-scanner
ARG SALESFORCE_SFDX_SCANNER_VERSION=4.4.0
ARG SALESFORCE_SFDX_SCANNER_VERSION=4.5.0
RUN sf plugins install @salesforce/sfdx-scanner@${SALESFORCE_SFDX_SCANNER_VERSION} \
&& npm cache clean --force || true \
&& rm -rf /root/.npm/_cacache
Expand Down
11 changes: 7 additions & 4 deletions docs/descriptors/salesforce_sfdx_scanner_lwc.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ See more details in [Help](#help-content)

## sfdx-scanner-lwc documentation

- Version in MegaLinter: **4.4.0**
- Version in MegaLinter: **4.5.0**
- Visit [Official Web Site](https://forcedotcom.github.io/sfdx-scanner/){target=_blank}
- See [How to configure sfdx-scanner-lwc rules](https://eslint.org/docs/user-guide/configuring){target=_blank}
- See [How to disable sfdx-scanner-lwc rules in files](https://eslint.org/docs/user-guide/configuring/rules#disabling-rules){target=_blank}
Expand Down Expand Up @@ -90,7 +90,7 @@ sf scanner:run
### Help content

```shell
(node:2131) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(node:2137) [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 @@ -145,8 +145,10 @@ GLOBAL FLAGS
COMMANDS
scanner run dfa Scan codebase with all DFA rules by default.

(node:2143) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(node:2149) [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.5.0) differs from the version
› specified by sf (4.4.0)
Warning: We're continually improving Salesforce Code Analyzer. Tell us what you think! Give feedback at https://research.net/r/SalesforceCA
name languages categories rulesets [dep] engine is dfa is pilot
────────────────────────────────────────────────────── ─────────── ───────────────────── ────────────── ───────────────── ────── ────────
Expand All @@ -163,6 +165,7 @@ Warning: We're continually improving Salesforce Code Analyzer. Tell us what you
DebugsShouldUseLoggingLevel apex Best Practices quickstart pmd N N
UnusedLocalVariable apex Best Practices pmd N N
AvoidDebugStatements apex Performance pmd N N
AvoidNonRestrictiveQueries apex Performance pmd N N
EagerlyLoadedDescribeSObjectResult apex Performance pmd N N
OperationWithHighCostInLoop apex Performance quickstart pmd N N
OperationWithLimitsInLoop apex Performance quickstart pmd N N
Expand Down Expand Up @@ -385,7 +388,7 @@ RUN sf plugins install @salesforce/plugin-packaging@${SALESFORCE_PLUGIN_PACKAGIN
ENV SF_AUTOUPDATE_DISABLE=true
# Linter install
# renovate: datasource=npm depName=@salesforce/sfdx-scanner
ARG SALESFORCE_SFDX_SCANNER_VERSION=4.4.0
ARG SALESFORCE_SFDX_SCANNER_VERSION=4.5.0
RUN sf plugins install @salesforce/sfdx-scanner@${SALESFORCE_SFDX_SCANNER_VERSION} \
&& npm cache clean --force || true \
&& rm -rf /root/.npm/_cacache
Expand Down
10 changes: 5 additions & 5 deletions docs/descriptors/snakemake_snakemake.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ usage: snakemake [-h] [--dry-run] [--profile PROFILE]
[--d3dag] [--summary] [--detailed-summary] [--archive FILE]
[--cleanup-metadata FILE [FILE ...]] [--cleanup-shadow]
[--skip-script-cleanup] [--unlock]
[--list-changes {params,code,input}] [--list-input-changes]
[--list-changes {input,params,code}] [--list-input-changes]
[--list-params-changes] [--list-untracked]
[--delete-all-output | --delete-temp-output]
[--keep-incomplete] [--drop-metadata] [--version]
Expand Down Expand Up @@ -176,7 +176,7 @@ usage: snakemake [-h] [--dry-run] [--profile PROFILE]
[--scheduler-solver-path SCHEDULER_SOLVER_PATH]
[--deploy-sources QUERY CHECKSUM]
[--target-jobs TARGET_JOBS [TARGET_JOBS ...]]
[--mode {default,subprocess,remote}]
[--mode {remote,default,subprocess}]
[--report-html-path VALUE]
[--report-html-stylesheet-path VALUE]
[targets ...]
Expand Down Expand Up @@ -636,7 +636,7 @@ UTILITIES:
(default: False)
--unlock Remove a lock on the working directory. (default:
False)
--list-changes {params,code,input}, --lc {params,code,input}
--list-changes {input,params,code}, --lc {input,params,code}
List all output files for which the given items (code,
input, params) have changed since creation.
--list-input-changes, --li
Expand Down Expand Up @@ -818,9 +818,9 @@ BEHAVIOR:
storage provider. (default:
frozenset({<SharedFSUsage.SOURCES: 3>,
<SharedFSUsage.PERSISTENCE: 0>,
<SharedFSUsage.SOFTWARE_DEPLOYMENT: 2>,
<SharedFSUsage.INPUT_OUTPUT: 1>,
<SharedFSUsage.STORAGE_LOCAL_COPIES: 4>,
<SharedFSUsage.SOFTWARE_DEPLOYMENT: 2>,
<SharedFSUsage.SOURCE_CACHE: 5>}))
--scheduler-greediness SCHEDULER_GREEDINESS, --greediness SCHEDULER_GREEDINESS
Set the greediness of scheduling. This value between 0
Expand Down Expand Up @@ -991,7 +991,7 @@ INTERNAL:
--target-jobs TARGET_JOBS [TARGET_JOBS ...]
Internal use only: Target particular jobs by
RULE:WILDCARD1=VALUE,WILDCARD2=VALUE,...
--mode {default,subprocess,remote}
--mode {remote,default,subprocess}
Internal use only: Set execution mode of Snakemake.
(default: default)

Expand Down
Loading

0 comments on commit 798ea3b

Please sign in to comment.