-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Fix typos across file types & add automation #15385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 9 commits
5d34d2b
817f4e7
de71dbb
e897dbb
3e25af6
9798c74
0dfaa5a
d7ef859
27812fa
c72e050
742a090
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,4 @@ | ||
| name: Lint, and Test | ||
| name: CI | ||
|
|
||
| on: | ||
| push: | ||
|
|
@@ -62,6 +62,14 @@ jobs: | |
| with: | ||
| github-token: ${{ steps.token.outputs.token }} | ||
|
|
||
| job_typos: | ||
| name: Check Typos | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/[email protected] | ||
| - name: Check spelling with typos | ||
| uses: crate-ci/typos@master | ||
|
|
||
| job_test: | ||
| name: Test | ||
| runs-on: ubuntu-latest | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,11 +22,15 @@ repos: | |
| - id: debug-statements | ||
| - id: flake8 | ||
| - id: fix-encoding-pragma | ||
| args: ["--remove"] | ||
| args: ['--remove'] | ||
| - repo: https://github.com/getsentry/pre-commit-hooks | ||
| rev: f3237d2d65af81d435c49dee3593dc8f03d23c2d | ||
| hooks: | ||
| - id: prettier | ||
| entry: node_modules/.bin/prettier | ||
| - id: eslint | ||
| entry: node_modules/.bin/eslint | ||
| - repo: https://github.com/crate-ci/typos | ||
| rev: v1.26.8 | ||
|
||
| hooks: | ||
| - id: typos | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| [default] | ||
| # Regex patterns to ignore | ||
| extend-ignore-re = [ | ||
| "\\bUE\\b", # Unreal Engine abbreviation | ||
| "\\bUE_LOG\\b", # Unreal Engine logging macro | ||
| "\\bue4\\b", # Unreal Engine 4 | ||
| "\\bue5\\b", # Unreal Engine 5 | ||
| "\\bue\\d+\\b", # Any UE version (ue5, ue6, etc.) | ||
| ] | ||
|
|
||
| [files] | ||
| # Files and patterns to exclude from spell checking | ||
| extend-exclude = [ | ||
| # Design and binary files | ||
| "*.excalidraw", # Diagram files contain random IDs | ||
| "*.png", | ||
| "*.jpg", | ||
| "*.jpeg", | ||
| "*.gif", | ||
| "*.svg", | ||
| "*.webp", | ||
|
|
||
| # Data and configuration files | ||
| "*.json", # JSON files have many false positives | ||
| "*.lock", # Package lock files | ||
| "yarn.lock", # Yarn lock file | ||
| "package-lock.json", # NPM lock file | ||
|
|
||
| # Documentation assets | ||
| "public/_platforms/*.json", # Platform metadata | ||
| "public/pdfs/*.pdf", # PDFs can't be edited programmatically | ||
|
|
||
| # Build artifacts and dependencies | ||
| ".next/**", # Next.js build output | ||
| "node_modules/**", # Dependencies | ||
| "dist/**", # Distribution builds | ||
| "build/**", # Build output | ||
| ] | ||
|
|
||
| [default.extend-words] | ||
| # Technical terms and product names that are spelled correctly | ||
| # .NET ecosystem | ||
| Paket = "Paket" # .NET package manager (legitimate tool) | ||
| paket = "paket" # .NET package manager CLI command | ||
|
|
||
| # Platform-specific terms | ||
| ITMS = "ITMS" # Apple error code prefix (legitimate) | ||
| SEH = "SEH" # Structured Exception Handling (Windows API) | ||
| EDE = "EDE" # Cipher name component (3DES_EDE_CBC_SHA) | ||
| UE = "UE" # Unreal Engine abbreviation | ||
| UE4 = "UE4" # Unreal Engine 4 | ||
| UE5 = "UE5" # Unreal Engine 5 | ||
|
|
||
| # Cloud/Infrastructure | ||
| nodejs_als = "nodejs_als" # Cloudflare compatibility flag (correct spelling) | ||
| als = "als" # Part of nodejs_als flag | ||
|
|
||
| # Common abbreviations in tech docs | ||
| DSN = "DSN" # Data Source Name (Sentry) | ||
| DSNs = "DSNs" # Plural | ||
| SDK = "SDK" # Software Development Kit | ||
| SDKs = "SDKs" # Plural | ||
| API = "API" # Application Programming Interface | ||
| APIs = "APIs" # Plural | ||
| MCP = "MCP" # Model Context Protocol | ||
| NPM = "NPM" # Node Package Manager | ||
|
|
||
| # Code identifiers that are intentionally "misspelled" or match external systems | ||
| # Note: These should ONLY include cases where the spelling is intentional | ||
| # (e.g., matching an external API/constant name we don't control) | ||
| childs = "childs" # Intentional variable name in mdx-deflist.ts | ||
| aso = "aso" # Intentional variable name in utils.ts (short for "a sidebar order") | ||
| MIGRATED_GETTING_STARTD_DOCS = "MIGRATED_GETTING_STARTD_DOCS" # Matches actual constant in Sentry backend (external) | ||
| STARTD = "STARTD" # Part of MIGRATED_GETTING_STARTD_DOCS - needed because typos parses words in markdown text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be able to be updated to v5, unless set for a specific reason.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah nice, good catch.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed in c72e050