Browse Source

Merge pull request #11632 from mjtrangoni/fix-codespell-circleci

codespell: exclude by words instead of files
Carl Bergquist 7 years ago
parent
commit
6ba830c73b
1 changed files with 5 additions and 1 deletions
  1. 5 1
      .circleci/config.yml

+ 5 - 1
.circleci/config.yml

@@ -9,9 +9,13 @@ jobs:
       - run:
           name: install codespell
           command: 'sudo pip install codespell'
+      - run:
+          # Important: all words have to be in lowercase, and separated by "\n".
+          name: exclude known exceptions
+          command: 'echo -e "unknwon" > words_to_ignore.txt'
       - run:
           name: check documentation spelling errors
-          command: 'codespell -x docs/sources/project/building_from_source.md docs/'
+          command: 'codespell -I ./words_to_ignore.txt docs/'
 
   test-frontend:
     docker: