ci: integrate typos spell checker into CI workflow#7158
ci: integrate typos spell checker into CI workflow#7158Mzack9999 merged 3 commits intoprojectdiscovery:devfrom
Conversation
Add the crate-ci/typos GitHub Action to automatically catch spelling errors in future PRs. This includes: - New `.github/workflows/typos.yaml` workflow that runs on pushes to dev, pull requests, and manual dispatch - `_typos.toml` configuration to suppress false positives from non-English READMEs, test fixtures, certificate data, CLI flag short names, and intentional identifiers - Fix genuine typos found by the tool: - `PostReuestsHandlerRequest` -> `PostRequestsHandlerRequest` - `fiter` -> `filter` - `thant` -> `that` - `seperate` -> `separate` - `ExludedDastTmplStats` -> `ExcludedDastTmplStats` - `splitted` -> `split` (local variables) - `formated` -> `formatted` (local variables) - Rename `worflow_loader.go` -> `workflow_loader.go` Fixes projectdiscovery#6532
|
🔧 Hit a snag — please try again. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
✅ Files skipped from review due to trivial changes (1)
WalkthroughAdds a Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@pkg/templates/parser_stats.go`:
- Line 11: You renamed the public constant ExludedDastTmplStats to
ExcludedDastTmplStats which is a breaking change for external consumers; restore
backward compatibility by reintroducing the old exported identifier
ExludedDastTmplStats as a deprecated alias to the new ExcludedDastTmplStats (add
a comment like "Deprecated: use ExcludedDastTmplStats") so external code still
compiles while keeping the corrected constant available and documented for
release notes.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: a6eba4fc-a78d-4e19-b48e-1e9663d311f6
⛔ Files ignored due to path filters (1)
.github/workflows/typos.yamlis excluded by!**/*.yaml
📒 Files selected for processing (12)
_typos.tomlcmd/tmc/main.gointernal/runner/runner.gointernal/server/server.golib/config.golib/tests/sdk_test.gopkg/catalog/loader/loader.gopkg/fuzz/component/path.gopkg/model/workflow_loader.gopkg/templates/parser_stats.gopkg/templates/stats.gopkg/tmplexec/flow/flow_executor_test.go
Retain the old exported identifier as a deprecated alias pointing to the corrected ExcludedDastTmplStats so external consumers are not broken by the rename. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Fixed — added backward-compatible deprecated alias for |
Proposed Changes
Integrates the typos spell-checking tool into the CI pipeline to automatically catch typos in future PRs, as requested in #6532.
What's included
New CI workflow (
.github/workflows/typos.yaml)dev, all pull requests, and manual dispatchcrate-ci/typos@v1.28.4(pinned to immutable tag for supply chain security)Configuration (
_typos.toml)MisMatched,NoopWriter,AllowdTypesfrom goflags)-ot,-ue,-ine, etc.)Typo fixes — Fixed all genuine typos caught by the tool:
PostReuestsHandlerRequest→PostRequestsHandlerRequest(comment in server.go)fiter→filter(comment in config.go)thant→that(comment in flow_executor_test.go)seperate→separate(sdk_test.go, 3 occurrences)ExludedDastTmplStats→ExcludedDastTmplStats(4 files)splitted→split(local variables in path.go)formated→formatted(local variables in tmc/main.go)worflow_loader.go→workflow_loader.go(misspelled filename)Proof
Before —
typosfinds 185 issues:After — Clean run with zero findings:
Build verification — All code compiles successfully:
Checklist
devbranchgo build ./...passes with no errorsReferences
/claim #6532
Summary by CodeRabbit
New Features
Bug Fixes
Documentation