spell-check: expand regex to split up [c|C]amelCase and Snake_Case.
parent
69de0bc493
commit
eb3f436e26
|
@ -1,4 +1,5 @@
|
|||
[codespell]
|
||||
skip = .git,.gitlab-ci-local,*.eps,*.pdf,*.css_t,AUTHORS
|
||||
skip = .git,.gitlab-ci-local,*.eps,*.pdf,*.css_t,AUTHORS,*build*,*.mob
|
||||
ignore-words = ./utils/codespell-ignored-words
|
||||
exclude-file = ./utils/codespell-ignored-lines
|
||||
regex = (?<![a-z])[a-z']+|[A-Z][a-z']*|[a-z]+'[a-z]*|[a-z]+(?=[_-])|[a-z]+(?=[A-Z])|\d+
|
||||
|
|
|
@ -109,5 +109,14 @@ spell-check:
|
|||
before_script:
|
||||
- pip install codespell
|
||||
script:
|
||||
- codespell ./
|
||||
# Get commit messages
|
||||
- if (git remote | grep -qw upstream) ; then
|
||||
git remote set-url upstream https://gitlab.com/nsnam/ns-3-dev.git ;
|
||||
else
|
||||
git remote add upstream https://gitlab.com/nsnam/ns-3-dev.git ;
|
||||
fi
|
||||
- git fetch upstream master
|
||||
- git log --pretty=%B HEAD...upstream/master ^upstream/master > git_messages.txt
|
||||
# Check source code and commit messages
|
||||
- codespell -f -C0 ./
|
||||
timeout: 1h
|
||||
|
|
Loading…
Reference in New Issue