diff --git a/.cspell.json b/.cspell.json index 4de95cc..0c4c40d 100644 --- a/.cspell.json +++ b/.cspell.json @@ -1,6 +1,11 @@ { "language": "en", - "dictionaries": ["companies", "filetypes", "fullstack", "softwareTerms"], + "dictionaries": [ + "companies", + "filetypes", + "fullstack", + "softwareTerms" + ], "words": [ "aquasecurity", "artipacked", @@ -34,24 +39,7 @@ "urfave", "zizmor" ], - "flagWords": [ - "abort", - "abortion", - "blackhat", - "black-hat", - "whitehat", - "white-hat", - "cripple", - "crippled", - "master", - "slave", - "tribe", - "sanity-check", - "whitelist", - "white-list", - "blacklist", - "black-list" - ], + "flagWords": [], "ignorePaths": [ ".cspell.json", "CODEOWNERS", @@ -63,7 +51,9 @@ "languageSettings": [ { "languageId": "markdown", - "ignoreRegExpList": ["/^\\s*```\\s*(mermaid)[\\s\\S]*?^\\s*```/gm"] + "ignoreRegExpList": [ + "/^\\s*```\\s*(mermaid)[\\s\\S]*?^\\s*```/gm" + ] } ] } diff --git a/.mega-linter.yml b/.mega-linter.yml index b93d824..0a7591c 100644 --- a/.mega-linter.yml +++ b/.mega-linter.yml @@ -18,6 +18,18 @@ DISABLE_ERRORS_LINTERS: - SPELL_CSPELL YAML_YAMLLINT_CONFIG_FILE: .yamllint SPELL_CSPELL_ANALYZE_FILE_NAMES: false +SPELL_CSPELL_PRE_COMMANDS: + - command: >- + cp .cspell.json /tmp/cspell.json.orig && + curl -sSf + https://raw.githubusercontent.com/linuxfoundation/lfx-public-workflows/main/cspell/flagwords.snippet.json + -o /tmp/flagwords.snippet.json && + sed -i -e '/"flagWords": \[\]/{r /tmp/flagwords.snippet.json' -e 'd}' .cspell.json + cwd: "workspace" + continue_if_failed: false +SPELL_CSPELL_POST_COMMANDS: + - command: cp /tmp/cspell.json.orig .cspell.json + cwd: "workspace" # Ignore YAML files with templating macros; these typically fail linting and/or # schema checking. FILTER_REGEX_EXCLUDE: '(templates/.*\.yml|templates/.*\.yaml)'