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 @@
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 @@
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