From 943cf81a9cf7469c936e6c7d8aa35485392294bd Mon Sep 17 00:00:00 2001 From: nvuillam Date: Sat, 9 Dec 2023 15:18:40 +0000 Subject: [PATCH 1/2] [MegaLinter] Apply linters fixes --- CHANGELOG.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1837b8032ac..4144ac44efd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,21 +9,21 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-linter.yml file, or with `oxsecurity/megalinter:beta` docker image - Core - - Update base java apk package to openjdk 17 by @nvuillam in https://github.com/oxsecurity/megalinter/pull/3160 - - Update dotnet linters to .NET 7 by @bdovaz in https://github.com/oxsecurity/megalinter/pull/2402 + - Update base java apk package to openjdk 17 by @nvuillam in + - Update dotnet linters to .NET 7 by @bdovaz in - Media - [Try using MegaLinter (article in japanese)](https://future-architect.github.io/articles/20231129a/?s=03) by [Takashi Minayaga](https://future-architect.github.io/authors/%E5%AE%AE%E6%B0%B8%E5%B4%87%E5%8F%B2) - New linters - Add [clang-format](https://releases.llvm.org/16.0.0/tools/clang/docs/ClangFormat.html) c & cpp formatting linter including "apply fix" support - - Add [Roslynator](https://github.com/dotnet/roslynator) C# linter by @bdovaz in https://github.com/oxsecurity/megalinter/pull/3155 + - Add [Roslynator](https://github.com/dotnet/roslynator) C# linter by @bdovaz in - Fixes - Call jscpd with `--gitignore` to ignore copy-pastes in files matching `.gitignore` - cpplint: Dynamically add the list of extensions from list of files in --extensions parameter - - Fix mkdocs generation + CI control job by @nvuillam in https://github.com/oxsecurity/megalinter/pull/3135 - - Add semgrep ruleset to validation schema by @wesley-dean-flexion in https://github.com/oxsecurity/megalinter/pull/3164 + - Fix mkdocs generation + CI control job by @nvuillam in + - Add semgrep ruleset to validation schema by @wesley-dean-flexion in - Downgrade stylelint to avoid crash with not v16 compliant dependencies - CI From 25abd0902c0c3d37a07d6da12d385762b65e402a Mon Sep 17 00:00:00 2001 From: nvuillam Date: Sat, 9 Dec 2023 16:29:28 +0100 Subject: [PATCH 2/2] Downgrade stylelint-config-standard --- Dockerfile | 2 +- flavors/c_cpp/Dockerfile | 2 +- flavors/cupcake/Dockerfile | 2 +- flavors/documentation/Dockerfile | 2 +- flavors/dotnet/Dockerfile | 2 +- flavors/dotnetweb/Dockerfile | 2 +- flavors/go/Dockerfile | 2 +- flavors/java/Dockerfile | 2 +- flavors/javascript/Dockerfile | 2 +- flavors/php/Dockerfile | 2 +- flavors/python/Dockerfile | 2 +- flavors/ruby/Dockerfile | 2 +- flavors/rust/Dockerfile | 2 +- flavors/salesforce/Dockerfile | 2 +- flavors/swift/Dockerfile | 2 +- flavors/terraform/Dockerfile | 2 +- linters/css_stylelint/Dockerfile | 2 +- megalinter/descriptors/css.megalinter-descriptor.yml | 2 +- 18 files changed, 18 insertions(+), 18 deletions(-) diff --git a/Dockerfile b/Dockerfile index aa4d67dc69a..d1ae1681f02 100644 --- a/Dockerfile +++ b/Dockerfile @@ -210,7 +210,7 @@ RUN npm --no-cache install --ignore-scripts --omit=dev \ @coffeelint/cli \ jscpd \ stylelint@15.11.0 \ - stylelint-config-standard \ + stylelint-config-standard@34.0.0 \ stylelint-config-sass-guidelines \ stylelint-scss \ gherkin-lint \ diff --git a/flavors/c_cpp/Dockerfile b/flavors/c_cpp/Dockerfile index 4fb0453b036..5394b7c48e5 100644 --- a/flavors/c_cpp/Dockerfile +++ b/flavors/c_cpp/Dockerfile @@ -146,7 +146,7 @@ WORKDIR /node-deps RUN npm --no-cache install --ignore-scripts --omit=dev \ jscpd \ stylelint@15.11.0 \ - stylelint-config-standard \ + stylelint-config-standard@34.0.0 \ stylelint-config-sass-guidelines \ stylelint-scss \ graphql \ diff --git a/flavors/cupcake/Dockerfile b/flavors/cupcake/Dockerfile index 6047a621c0e..1964b0e1a6a 100644 --- a/flavors/cupcake/Dockerfile +++ b/flavors/cupcake/Dockerfile @@ -180,7 +180,7 @@ RUN npm --no-cache install --ignore-scripts --omit=dev \ typescript \ jscpd \ stylelint@15.11.0 \ - stylelint-config-standard \ + stylelint-config-standard@34.0.0 \ stylelint-config-sass-guidelines \ stylelint-scss \ graphql \ diff --git a/flavors/documentation/Dockerfile b/flavors/documentation/Dockerfile index a8076bacc4c..8b789b89136 100644 --- a/flavors/documentation/Dockerfile +++ b/flavors/documentation/Dockerfile @@ -144,7 +144,7 @@ WORKDIR /node-deps RUN npm --no-cache install --ignore-scripts --omit=dev \ jscpd \ stylelint@15.11.0 \ - stylelint-config-standard \ + stylelint-config-standard@34.0.0 \ stylelint-config-sass-guidelines \ stylelint-scss \ graphql \ diff --git a/flavors/dotnet/Dockerfile b/flavors/dotnet/Dockerfile index 87a9c8ab270..283d9fa6d79 100644 --- a/flavors/dotnet/Dockerfile +++ b/flavors/dotnet/Dockerfile @@ -153,7 +153,7 @@ WORKDIR /node-deps RUN npm --no-cache install --ignore-scripts --omit=dev \ jscpd \ stylelint@15.11.0 \ - stylelint-config-standard \ + stylelint-config-standard@34.0.0 \ stylelint-config-sass-guidelines \ stylelint-scss \ gherkin-lint \ diff --git a/flavors/dotnetweb/Dockerfile b/flavors/dotnetweb/Dockerfile index f98a3efccba..4c59f583eb2 100644 --- a/flavors/dotnetweb/Dockerfile +++ b/flavors/dotnetweb/Dockerfile @@ -155,7 +155,7 @@ RUN npm --no-cache install --ignore-scripts --omit=dev \ @coffeelint/cli \ jscpd \ stylelint@15.11.0 \ - stylelint-config-standard \ + stylelint-config-standard@34.0.0 \ stylelint-config-sass-guidelines \ stylelint-scss \ gherkin-lint \ diff --git a/flavors/go/Dockerfile b/flavors/go/Dockerfile index 347de33079b..57f60847903 100644 --- a/flavors/go/Dockerfile +++ b/flavors/go/Dockerfile @@ -151,7 +151,7 @@ WORKDIR /node-deps RUN npm --no-cache install --ignore-scripts --omit=dev \ jscpd \ stylelint@15.11.0 \ - stylelint-config-standard \ + stylelint-config-standard@34.0.0 \ stylelint-config-sass-guidelines \ stylelint-scss \ graphql \ diff --git a/flavors/java/Dockerfile b/flavors/java/Dockerfile index 90adaaad2c9..237e1c890a6 100644 --- a/flavors/java/Dockerfile +++ b/flavors/java/Dockerfile @@ -144,7 +144,7 @@ WORKDIR /node-deps RUN npm --no-cache install --ignore-scripts --omit=dev \ jscpd \ stylelint@15.11.0 \ - stylelint-config-standard \ + stylelint-config-standard@34.0.0 \ stylelint-config-sass-guidelines \ stylelint-scss \ graphql \ diff --git a/flavors/javascript/Dockerfile b/flavors/javascript/Dockerfile index 282376813e5..586b07872dd 100644 --- a/flavors/javascript/Dockerfile +++ b/flavors/javascript/Dockerfile @@ -145,7 +145,7 @@ RUN npm --no-cache install --ignore-scripts --omit=dev \ @coffeelint/cli \ jscpd \ stylelint@15.11.0 \ - stylelint-config-standard \ + stylelint-config-standard@34.0.0 \ stylelint-config-sass-guidelines \ stylelint-scss \ graphql \ diff --git a/flavors/php/Dockerfile b/flavors/php/Dockerfile index e21d0130f55..027900865f7 100644 --- a/flavors/php/Dockerfile +++ b/flavors/php/Dockerfile @@ -155,7 +155,7 @@ WORKDIR /node-deps RUN npm --no-cache install --ignore-scripts --omit=dev \ jscpd \ stylelint@15.11.0 \ - stylelint-config-standard \ + stylelint-config-standard@34.0.0 \ stylelint-config-sass-guidelines \ stylelint-scss \ graphql \ diff --git a/flavors/python/Dockerfile b/flavors/python/Dockerfile index 1b90189e0b8..844a3f77cfc 100644 --- a/flavors/python/Dockerfile +++ b/flavors/python/Dockerfile @@ -155,7 +155,7 @@ WORKDIR /node-deps RUN npm --no-cache install --ignore-scripts --omit=dev \ jscpd \ stylelint@15.11.0 \ - stylelint-config-standard \ + stylelint-config-standard@34.0.0 \ stylelint-config-sass-guidelines \ stylelint-scss \ graphql \ diff --git a/flavors/ruby/Dockerfile b/flavors/ruby/Dockerfile index 9156c25607d..86f35a6e8aa 100644 --- a/flavors/ruby/Dockerfile +++ b/flavors/ruby/Dockerfile @@ -143,7 +143,7 @@ WORKDIR /node-deps RUN npm --no-cache install --ignore-scripts --omit=dev \ jscpd \ stylelint@15.11.0 \ - stylelint-config-standard \ + stylelint-config-standard@34.0.0 \ stylelint-config-sass-guidelines \ stylelint-scss \ graphql \ diff --git a/flavors/rust/Dockerfile b/flavors/rust/Dockerfile index 7803929da0e..f3831db70ac 100644 --- a/flavors/rust/Dockerfile +++ b/flavors/rust/Dockerfile @@ -143,7 +143,7 @@ WORKDIR /node-deps RUN npm --no-cache install --ignore-scripts --omit=dev \ jscpd \ stylelint@15.11.0 \ - stylelint-config-standard \ + stylelint-config-standard@34.0.0 \ stylelint-config-sass-guidelines \ stylelint-scss \ graphql \ diff --git a/flavors/salesforce/Dockerfile b/flavors/salesforce/Dockerfile index 6ef84552a2e..4cd41856586 100644 --- a/flavors/salesforce/Dockerfile +++ b/flavors/salesforce/Dockerfile @@ -144,7 +144,7 @@ RUN npm --no-cache install --ignore-scripts --omit=dev \ @salesforce/cli \ jscpd \ stylelint@15.11.0 \ - stylelint-config-standard \ + stylelint-config-standard@34.0.0 \ stylelint-config-sass-guidelines \ stylelint-scss \ graphql \ diff --git a/flavors/swift/Dockerfile b/flavors/swift/Dockerfile index c1d02dbcf11..8e84de3fdd6 100644 --- a/flavors/swift/Dockerfile +++ b/flavors/swift/Dockerfile @@ -145,7 +145,7 @@ WORKDIR /node-deps RUN npm --no-cache install --ignore-scripts --omit=dev \ jscpd \ stylelint@15.11.0 \ - stylelint-config-standard \ + stylelint-config-standard@34.0.0 \ stylelint-config-sass-guidelines \ stylelint-scss \ graphql \ diff --git a/flavors/terraform/Dockerfile b/flavors/terraform/Dockerfile index 7c8a0209614..9093b414de0 100644 --- a/flavors/terraform/Dockerfile +++ b/flavors/terraform/Dockerfile @@ -149,7 +149,7 @@ WORKDIR /node-deps RUN npm --no-cache install --ignore-scripts --omit=dev \ jscpd \ stylelint@15.11.0 \ - stylelint-config-standard \ + stylelint-config-standard@34.0.0 \ stylelint-config-sass-guidelines \ stylelint-scss \ graphql \ diff --git a/linters/css_stylelint/Dockerfile b/linters/css_stylelint/Dockerfile index 9b0dac30696..a97cee09766 100644 --- a/linters/css_stylelint/Dockerfile +++ b/linters/css_stylelint/Dockerfile @@ -97,7 +97,7 @@ ENV NODE_OPTIONS="--max-old-space-size=8192" \ WORKDIR /node-deps RUN npm --no-cache install --ignore-scripts --omit=dev \ stylelint@15.11.0 \ - stylelint-config-standard \ + stylelint-config-standard@34.0.0 \ stylelint-config-sass-guidelines \ stylelint-scss && \ echo "Cleaning npm cacheā€¦" \ diff --git a/megalinter/descriptors/css.megalinter-descriptor.yml b/megalinter/descriptors/css.megalinter-descriptor.yml index 036f819f19d..4e0231e5669 100644 --- a/megalinter/descriptors/css.megalinter-descriptor.yml +++ b/megalinter/descriptors/css.megalinter-descriptor.yml @@ -31,7 +31,7 @@ linters: install: npm: - stylelint@15.11.0 - - stylelint-config-standard + - stylelint-config-standard@34.0.0 - stylelint-config-sass-guidelines - stylelint-scss ide: