diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml new file mode 100644 index 0000000..2420929 --- /dev/null +++ b/.github/workflows/spellcheck.yml @@ -0,0 +1,16 @@ +name: Spell Check + +on: + pull_request: + branches: [main] + +jobs: + spellcheck: + name: Spell Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - uses: streetsidesoftware/cspell-action@9cd41bb518a24fefdafd9880cbab8f0ceba04d28 + with: + config: cspell.json diff --git a/Makefile b/Makefile index 3eecadb..2b3ce86 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ PLUGIN_NAME := opentrace MARKETPLACE := opentrace-marketplace SCOPE := user -.PHONY: install uninstall reinstall validate list marketplace-add marketplace-remove marketplace-reinstall dev +.PHONY: install uninstall reinstall validate list marketplace-add marketplace-remove marketplace-reinstall dev spellcheck ## Install the plugin from the marketplace install: @@ -33,3 +33,7 @@ dev: uninstall marketplace-reinstall install ## List installed plugins list: claude plugin list + +## Run spell check +spellcheck: + npx cspell --config cspell.json "**/*.{md,txt,sh,json}" diff --git a/cspell.json b/cspell.json new file mode 100644 index 0000000..c798049 --- /dev/null +++ b/cspell.json @@ -0,0 +1,39 @@ +{ + "version": "0.2", + "language": "en", + "ignorePaths": [ + ".claude/", + ".git/", + ".idea/", + "node_modules/", + "*.log" + ], + "words": [ + "opentrace", + "codebase", + "submodule", + "submodules", + "guardrail", + "guardrails", + "hookSpecificOutput", + "hookEventName", + "additionalContext", + "systemMessage", + "maxDepth", + "edgeTypes", + "nodeTypes", + "edgeFilter", + "nodeFilter", + "mcpServers", + "pipefail", + "CURDIR", + "jq", + "gitignored", + "uninstall", + "reinstall", + "tooluse", + "PreToolUse", + "PostToolUse", + "SessionStart" + ] +} \ No newline at end of file