From fc188015e3eccc58bad61c789c9fb8a9e0bdb7ec Mon Sep 17 00:00:00 2001 From: Nicolas Vuillamy Date: Tue, 15 Oct 2024 10:40:09 +0200 Subject: [PATCH] Change default .mega-linter.yml config to skip shellcheck error (#836) --- .github/linters/.cspell.json | 1 + CHANGELOG.md | 2 ++ config/sfdx-hardis.mega-linter-config.yml | 3 ++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/linters/.cspell.json b/.github/linters/.cspell.json index 084f73772..c113e7240 100644 --- a/.github/linters/.cspell.json +++ b/.github/linters/.cspell.json @@ -147,6 +147,7 @@ "Rypple", "SAST", "SEMGREP", + "SHELLCHECK", "SOMENAMESPACE", "SOURCEBRANCHNAME", "STYLELINT", diff --git a/CHANGELOG.md b/CHANGELOG.md index a715bae78..144f0fd0c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ Note: Can be used with `sfdx plugins:install sfdx-hardis@beta` and docker image `hardisgroupcom/sfdx-hardis@beta` +- Change default `.mega-linter.yml` config + ## [5.2.2] 2024-10-14 - Fix doubling -d option in hardis:scratch:create diff --git a/config/sfdx-hardis.mega-linter-config.yml b/config/sfdx-hardis.mega-linter-config.yml index 0fa4ed86c..bf5475aca 100644 --- a/config/sfdx-hardis.mega-linter-config.yml +++ b/config/sfdx-hardis.mega-linter-config.yml @@ -6,7 +6,7 @@ # - https://raw.githubusercontent.com/hardisgroupcom/sfdx-hardis/main/config/sfdx-hardis.mega-linter-config.yml APPLY_FIXES: all # all, none, or list of linter keys -DEFAULT_BRANCH: master # Usually master or main +DEFAULT_BRANCH: main # Usually master or main DISABLE: - HTML - SPELL # Uncomment to enable checks of spelling mistakes # - SPELL # Uncomment to disable checks of spelling mistakes @@ -19,3 +19,4 @@ PRE_COMMANDS: SALESFORCE_SFDX_SCANNER_APEX_ARGUMENTS: - --pmdconfig - ./config/pmd-ruleset.xml +BASH_SHELLCHECK_FILTER_REGEX_EXCLUDE: (pre-commit)