Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
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
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
/.husky export-ignore
/.lintstagedrc.json export-ignore
/.stylelintrc export-ignore
/.typos.toml export-ignore
/.wp-env.json export-ignore
/CHANGELOG.md export-ignore
/CODE_OF_CONDUCT.md export-ignore
Expand Down
17 changes: 17 additions & 0 deletions .github/workflows/typos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Typos

on:
pull_request:
branches:
- develop

jobs:
typos:
name: Spell check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Run typos
uses: crate-ci/typos@master

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
35 changes: 35 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
[files]
extend-exclude = [
".git/",
"node_modules/",
"vendor/",
"dist/",
"build/",
"tests/",
]
ignore-hidden = false

[default]
extend-ignore-re = [
"@[A-Za-z0-9_-]+",
]

[default.extend-words]
# Casing conventions for proper nouns
"Wordpress" = "WordPress"
"wordPress" = "WordPress"
"ElasticSearch" = "Elasticsearch"
"Github" = "GitHub"

# Typos previously found in this codebase
"utilitary" = "utility"
"heirarchal" = "hierarchical"
"mimcs" = "mimics"
"santitize" = "sanitize"
"warnngs" = "warnings"
"versino" = "version"
"degister" = "deregister"
"quries" = "queries"

[default.extend-identifiers]
"Automattic" = "Automattic"
Loading