mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #13469 from LDong-Arm/spellignore
Support ignore list for spell checkspull/13460/head
commit
7829238c61
13
.travis.yml
13
.travis.yml
|
@ -125,7 +125,7 @@ matrix:
|
|||
- >-
|
||||
git diff --name-only --diff-filter=d FETCH_HEAD..HEAD \
|
||||
| ( grep '.*\.\(c\|cpp\|h\|hpp\)$' || true ) \
|
||||
| ( grep -v -f .astyleignore || true ) \
|
||||
| ( grep -v -f .codecheckignore || true ) \
|
||||
| while read file; do astyle -n --options=.astylerc "${file}"; done
|
||||
- git diff --exit-code --diff-filter=d --color
|
||||
|
||||
|
@ -135,11 +135,12 @@ matrix:
|
|||
install:
|
||||
- source_pkg aspell
|
||||
script:
|
||||
- ./tools/test/travis-ci/doxy-spellchecker/spell.sh drivers
|
||||
- ./tools/test/travis-ci/doxy-spellchecker/spell.sh platform
|
||||
- ./tools/test/travis-ci/doxy-spellchecker/spell.sh events
|
||||
- ./tools/test/travis-ci/doxy-spellchecker/spell.sh rtos
|
||||
- ./tools/test/travis-ci/doxy-spellchecker/spell.sh connectivity/netsocket
|
||||
# TODO: run checks on all directories once all mispellings are fixed
|
||||
- ./tools/test/travis-ci/doxy-spellchecker/spell.sh drivers .codecheckignore
|
||||
- ./tools/test/travis-ci/doxy-spellchecker/spell.sh platform .codecheckignore
|
||||
- ./tools/test/travis-ci/doxy-spellchecker/spell.sh events .codecheckignore
|
||||
- ./tools/test/travis-ci/doxy-spellchecker/spell.sh rtos .codecheckignore
|
||||
- ./tools/test/travis-ci/doxy-spellchecker/spell.sh connectivity/netsocket .codecheckignore
|
||||
|
||||
- <<: *docs-vm
|
||||
name: "doxygen"
|
||||
|
|
|
@ -114,7 +114,9 @@ while read file; do
|
|||
echo "_________________________________"
|
||||
fi
|
||||
|
||||
done < <(find "${1}" -type d -iname "*target*" -prune -o -name '*.h' -print)
|
||||
# ${1}: directory to check
|
||||
# ${2}: file containing a list of paths (regex) to exclude
|
||||
done < <(find "${1}" -type d -iname "*target*" -prune -o -name '*.h' -print | grep -v -f "${2}")
|
||||
|
||||
echo "----------------------------------------------------------------------------------"
|
||||
echo "Total Errors Found: ${ERRORS}"
|
||||
|
|
Loading…
Reference in New Issue