Skip to content

Commit

Permalink
[automation] Auto-update linters version, help and documentation (#3410)
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 Mar 9, 2024
1 parent df36617 commit dafb4df
Show file tree
Hide file tree
Showing 19 changed files with 135 additions and 126 deletions.
100 changes: 51 additions & 49 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 @@ -38,7 +38,7 @@
"graphql-schema-linter": "3.0.1",
"grype": "0.74.7",
"hadolint": "2.12.0",
"helm": "3.13.2",
"helm": "3.14.2",
"htmlhint": "1.1.4",
"isort": "5.13.2",
"jscpd": "3.5.10",
Expand All @@ -65,11 +65,11 @@
"phplint": "9.1.2",
"phpstan": "1.10.60",
"pmd": "6.55.0",
"powershell": "7.4.0",
"powershell_formatter": "7.4.0",
"powershell": "7.4.1",
"powershell_formatter": "7.4.1",
"prettier": "3.2.5",
"proselint": "0.13.0",
"protolint": "0.47.6",
"protolint": "0.48.0",
"psalm": "Psalm.5.22.2@",
"puppet-lint": "4.2.4",
"pylint": "3.1.0",
Expand All @@ -82,7 +82,7 @@
"rstcheck": "6.2.0",
"rstfmt": "0.0.14",
"rubocop": "1.62.0",
"ruff": "0.3.1",
"ruff": "0.3.2",
"scalafix": "0.12.0",
"scss-lint": "0.60.0",
"secretlint": "8.1.2",
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l
- [snakemake](https://snakemake.readthedocs.io/en/stable/) from 8.5.3 to **8.5.5** on 2024-03-08
- [cspell](https://github.com/streetsidesoftware/cspell/tree/master/packages/cspell) from 8.5.0 to **8.6.0** on 2024-03-08
- [vale](https://vale.sh/) from 3.2.1 to **3.2.2** on 2024-03-08
- [helm](https://helm.sh/docs/helm/helm_lint/) from 3.13.2 to **3.14.2** on 2024-03-09
- [powershell_formatter](https://github.com/PowerShell/PSScriptAnalyzer) from 7.4.0 to **7.4.1** on 2024-03-09
- [powershell](https://github.com/PowerShell/PSScriptAnalyzer) from 7.4.0 to **7.4.1** on 2024-03-09
- [protolint](https://github.com/yoheimuta/protolint) from 0.47.6 to **0.48.0** on 2024-03-09
- [ruff](https://github.com/astral-sh/ruff) from 0.3.1 to **0.3.2** on 2024-03-09
<!-- linter-versions-end -->

## [v7.9.0] - 2024-02-11
Expand Down
10 changes: 5 additions & 5 deletions docs/all_linters.md

Large diffs are not rendered by default.

54 changes: 28 additions & 26 deletions docs/descriptors/kubernetes_helm.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ description: How to use helm (configure, ignore files, ignore errors, help & ver

## helm documentation

- Version in MegaLinter: **3.13.2**
- Version in MegaLinter: **3.14.2**
- Visit [Official Web Site](https://helm.sh/docs/helm/helm_lint/){target=_blank}

[![helm - GitHub](https://gh-card.dev/repos/helm/helm.svg?fullname=)](https://github.com/helm/helm){target=_blank}
Expand Down Expand Up @@ -108,31 +108,32 @@ Common actions for Helm:

Environment variables:

| Name | Description |
|------------------------------------|----------------------------------------------------------------------------------------------------|
| $HELM_CACHE_HOME | set an alternative location for storing cached files. |
| $HELM_CONFIG_HOME | set an alternative location for storing Helm configuration. |
| $HELM_DATA_HOME | set an alternative location for storing Helm data. |
| $HELM_DEBUG | indicate whether or not Helm is running in Debug mode |
| $HELM_DRIVER | set the backend storage driver. Values are: configmap, secret, memory, sql. |
| $HELM_DRIVER_SQL_CONNECTION_STRING | set the connection string the SQL storage driver should use. |
| $HELM_MAX_HISTORY | set the maximum number of helm release history. |
| $HELM_NAMESPACE | set the namespace used for the helm operations. |
| $HELM_NO_PLUGINS | disable plugins. Set HELM_NO_PLUGINS=1 to disable plugins. |
| $HELM_PLUGINS | set the path to the plugins directory |
| $HELM_REGISTRY_CONFIG | set the path to the registry config file. |
| $HELM_REPOSITORY_CACHE | set the path to the repository cache directory |
| $HELM_REPOSITORY_CONFIG | set the path to the repositories file. |
| $KUBECONFIG | set an alternative Kubernetes configuration file (default "~/.kube/config") |
| $HELM_KUBEAPISERVER | set the Kubernetes API Server Endpoint for authentication |
| $HELM_KUBECAFILE | set the Kubernetes certificate authority file. |
| $HELM_KUBEASGROUPS | set the Groups to use for impersonation using a comma-separated list. |
| $HELM_KUBEASUSER | set the Username to impersonate for the operation. |
| $HELM_KUBECONTEXT | set the name of the kubeconfig context. |
| $HELM_KUBETOKEN | set the Bearer KubeToken used for authentication. |
| $HELM_KUBEINSECURE_SKIP_TLS_VERIFY | indicate if the Kubernetes API server's certificate validation should be skipped (insecure) |
| $HELM_KUBETLS_SERVER_NAME | set the server name used to validate the Kubernetes API server certificate |
| $HELM_BURST_LIMIT | set the default burst limit in the case the server contains many CRDs (default 100, -1 to disable) |
| Name | Description |
|------------------------------------|------------------------------------------------------------------------------------------------------------|
| $HELM_CACHE_HOME | set an alternative location for storing cached files. |
| $HELM_CONFIG_HOME | set an alternative location for storing Helm configuration. |
| $HELM_DATA_HOME | set an alternative location for storing Helm data. |
| $HELM_DEBUG | indicate whether or not Helm is running in Debug mode |
| $HELM_DRIVER | set the backend storage driver. Values are: configmap, secret, memory, sql. |
| $HELM_DRIVER_SQL_CONNECTION_STRING | set the connection string the SQL storage driver should use. |
| $HELM_MAX_HISTORY | set the maximum number of helm release history. |
| $HELM_NAMESPACE | set the namespace used for the helm operations. |
| $HELM_NO_PLUGINS | disable plugins. Set HELM_NO_PLUGINS=1 to disable plugins. |
| $HELM_PLUGINS | set the path to the plugins directory |
| $HELM_REGISTRY_CONFIG | set the path to the registry config file. |
| $HELM_REPOSITORY_CACHE | set the path to the repository cache directory |
| $HELM_REPOSITORY_CONFIG | set the path to the repositories file. |
| $KUBECONFIG | set an alternative Kubernetes configuration file (default "~/.kube/config") |
| $HELM_KUBEAPISERVER | set the Kubernetes API Server Endpoint for authentication |
| $HELM_KUBECAFILE | set the Kubernetes certificate authority file. |
| $HELM_KUBEASGROUPS | set the Groups to use for impersonation using a comma-separated list. |
| $HELM_KUBEASUSER | set the Username to impersonate for the operation. |
| $HELM_KUBECONTEXT | set the name of the kubeconfig context. |
| $HELM_KUBETOKEN | set the Bearer KubeToken used for authentication. |
| $HELM_KUBEINSECURE_SKIP_TLS_VERIFY | indicate if the Kubernetes API server's certificate validation should be skipped (insecure) |
| $HELM_KUBETLS_SERVER_NAME | set the server name used to validate the Kubernetes API server certificate |
| $HELM_BURST_LIMIT | set the default burst limit in the case the server contains many CRDs (default 100, -1 to disable) |
| $HELM_QPS | set the Queries Per Second in cases where a high number of calls exceed the option for higher burst values |
Helm stores cache, configuration, and data based on the following configuration order:
Expand Down Expand Up @@ -193,6 +194,7 @@ Flags:
--kube-token string bearer token used for authentication
--kubeconfig string path to the kubeconfig file
-n, --namespace string namespace scope for this request
--qps float32 queries per second used when communicating with the Kubernetes API, not including bursting
--registry-config string path to the registry config file (default "/root/.config/helm/registry/config.json")
--repository-cache string path to the file containing cached repository indexes (default "/root/.cache/helm/repository")
--repository-config string path to the file containing repository names and URLs (default "/root/.config/helm/repositories.yaml")
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 @@ -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 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:1703) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(node:1679) [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/powershell_powershell.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: How to use powershell (configure, ignore files, ignore errors, help

## powershell documentation

- Version in MegaLinter: **7.4.0**
- Version in MegaLinter: **7.4.1**
- Visit [Official Web Site](https://github.com/PowerShell/PSScriptAnalyzer#readme){target=_blank}
- See [How to configure powershell rules](https://learn.microsoft.com/en-us/powershell/utility-modules/psscriptanalyzer/using-scriptanalyzer?view=ps-modules#explicit){target=_blank}
- See [How to disable powershell rules in files](https://learn.microsoft.com/en-us/powershell/utility-modules/psscriptanalyzer/using-scriptanalyzer?view=ps-modules#suppressing-rules){target=_blank}
Expand Down
2 changes: 1 addition & 1 deletion docs/descriptors/powershell_powershell_formatter.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: How to use powershell_formatter (configure, ignore files, ignore er

## powershell_formatter documentation

- Version in MegaLinter: **7.4.0**
- Version in MegaLinter: **7.4.1**
- Visit [Official Web Site](https://github.com/PowerShell/PSScriptAnalyzer#readme){target=_blank}
- See [How to configure powershell_formatter rules](https://learn.microsoft.com/en-us/powershell/utility-modules/psscriptanalyzer/using-scriptanalyzer?view=ps-modules#explicit){target=_blank}
- See [How to disable powershell_formatter rules in files](https://learn.microsoft.com/en-us/powershell/utility-modules/psscriptanalyzer/using-scriptanalyzer?view=ps-modules#suppressing-rules){target=_blank}
Expand Down
2 changes: 1 addition & 1 deletion docs/descriptors/protobuf_protolint.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ description: How to use protolint (configure, ignore files, ignore errors, help

## protolint documentation

- Version in MegaLinter: **0.47.6**
- Version in MegaLinter: **0.48.0**
- Visit [Official Web Site](https://github.com/yoheimuta/protolint#readme){target=_blank}
- See [How to configure protolint rules](https://github.com/yoheimuta/protolint#rules){target=_blank}
- If custom `.protolintrc.yml` config file isn't found, [.protolintrc.yml](https://github.com/oxsecurity/megalinter/tree/main/TEMPLATES/.protolintrc.yml){target=_blank} will be used
Expand Down
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.3.1**
- Version in MegaLinter: **0.3.2**
- 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_lightning_flow_scanner.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ sfdx flow:scan
### Help content

```shell
(node:1931) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(node:1905) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Try to resolve the errors in the following flows:

Expand Down
4 changes: 2 additions & 2 deletions docs/descriptors/salesforce_sfdx_scanner_apex.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ sfdx scanner:run
### Help content

```shell
(node:1960) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(node:1933) [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 a selection of rules

Expand Down Expand Up @@ -138,7 +138,7 @@ FLAGS
COMMANDS
scanner run dfa scan codebase with all DFA rules
(node:1983) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(node:1952) [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: 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 Down
4 changes: 2 additions & 2 deletions docs/descriptors/salesforce_sfdx_scanner_aura.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ sfdx scanner:run
### Help content

```shell
(node:2190) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(node:2165) [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 a selection of rules

Expand Down Expand Up @@ -134,7 +134,7 @@ FLAGS
COMMANDS
scanner run dfa scan codebase with all DFA rules
(node:2211) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(node:2187) [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: 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 Down
4 changes: 2 additions & 2 deletions docs/descriptors/salesforce_sfdx_scanner_lwc.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ sfdx scanner:run
### Help content

```shell
(node:2420) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(node:2402) [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 a selection of rules

Expand Down Expand Up @@ -134,7 +134,7 @@ FLAGS
COMMANDS
scanner run dfa scan codebase with all DFA rules
(node:2438) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(node:2427) [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: 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 Down
Loading

0 comments on commit dafb4df

Please sign in to comment.