Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 10 additions & 20 deletions .cspell.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"language": "en",
"dictionaries": ["companies", "filetypes", "fullstack", "softwareTerms"],
"dictionaries": [
"companies",
"filetypes",
"fullstack",
"softwareTerms"
],
"words": [
"aquasecurity",
"artipacked",
Expand Down Expand Up @@ -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",
Expand All @@ -63,7 +51,9 @@
"languageSettings": [
{
"languageId": "markdown",
"ignoreRegExpList": ["/^\\s*```\\s*(mermaid)[\\s\\S]*?^\\s*```/gm"]
"ignoreRegExpList": [
"/^\\s*```\\s*(mermaid)[\\s\\S]*?^\\s*```/gm"
]
}
]
}
12 changes: 12 additions & 0 deletions .mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Comment on lines +21 to +28
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)'
Loading