diff --git a/.codespellrc b/.codespellrc new file mode 100644 index 000000000..c91fa1a38 --- /dev/null +++ b/.codespellrc @@ -0,0 +1,8 @@ +[codespell] +# Ref: https://github.com/codespell-project/codespell#using-a-config-file +skip = .git*,*.css,.codespellrc,LICENSE +check-hidden = true +# Case sensitive etc. Python regex +ignore-regex = \b(CLOS|oh noes|xmlns:\S+)\b|github\.com/dsnet/compress/flate|Use "\S+".* not "\S+" +# Unfortunate/suboptimal choices of variables/words +ignore-words-list = anumber,afile,statics diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml new file mode 100644 index 000000000..c46c8e6e2 --- /dev/null +++ b/.github/workflows/codespell.yml @@ -0,0 +1,25 @@ +# Codespell configuration is within .codespellrc +--- +name: Codespell + +on: + push: + branches: [gh-pages] + pull_request: + branches: [gh-pages] + +permissions: + contents: read + +jobs: + codespell: + name: Check for spelling errors + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Annotate locations with typos + uses: codespell-project/codespell-problem-matcher@v1 + - name: Codespell + uses: codespell-project/actions-codespell@v2 diff --git a/cppguide.html b/cppguide.html index 7c6db3cbc..36f3ba50d 100644 --- a/cppguide.html +++ b/cppguide.html @@ -1583,7 +1583,7 @@

Inheritance

inheritance".

-

Implementation inheritance reduces code size by re-using +

Implementation inheritance reduces code size by reusing the base class code as it specializes an existing type. Because inheritance is a compile-time declaration, you and the compiler can understand the operation and detect diff --git a/htmlcssguide.html b/htmlcssguide.html index f23825df2..b42fe4de4 100644 --- a/htmlcssguide.html +++ b/htmlcssguide.html @@ -173,7 +173,7 @@

Document Type

different doctype may be rendered in “limited-quirks mode”. These modes don’t follow the widely-understood, widely-documented behavior for various core HTML and CSS constructs, and are likely to cause subtle failures and -incompatibilities especially when re-using code that expects no-quirks mode.

+incompatibilities especially when reusing code that expects no-quirks mode.

HTML Validity

diff --git a/jsoncstyleguide.xml b/jsoncstyleguide.xml index 010c585bb..4fb11ef4f 100644 --- a/jsoncstyleguide.xml +++ b/jsoncstyleguide.xml @@ -201,7 +201,7 @@ Avoid naming conflicts by choosing a new property name or versioning the API. "data": { "recipeName": "pizza", "ingredients": "Some new property", - "recipeIngredients": ["tomatos", "cheese", "sausage"] + "recipeIngredients": ["tomatoes", "cheese", "sausage"] } } diff --git a/lispguide.xml b/lispguide.xml index d4f384138..c29c88b83 100644 --- a/lispguide.xml +++ b/lispguide.xml @@ -2054,7 +2054,7 @@ Robert Brown but sometimes, fixups are necessary to resolve forward references, and intercession is allowed then. MOP intercession is a great tool for interactive development, - and you may enjoy it while developping and debugging; + and you may enjoy it while developing and debugging; but you should not use it in normal applications.

diff --git a/pylintrc b/pylintrc index 70c1cc161..60bc863f9 100644 --- a/pylintrc +++ b/pylintrc @@ -59,7 +59,7 @@ confidence= # can either give multiple identifiers separated by comma (,) or put this # option multiple times (only on the command line, not in the configuration # file where it should appear only once).You can also use "--disable=all" to -# disable everything first and then reenable specific checks. For example, if +# disable everything first and then re-enable specific checks. For example, if # you want to run only the similarities checker, you can use "--disable=all # --enable=similarities". If you want to run only the classes checker, but have # no Warning level messages displayed, use"--disable=all --enable=classes