Automatically detect unused header files

This commit is contained in:
def 2022-07-30 13:50:24 +02:00
parent b33cbdde0a
commit 1e47c280b2

View file

@ -50,3 +50,6 @@ jobs:
run: | run: |
pylint --version pylint --version
find . -type f -name "*.py" -not -path './ddnet-libs/*' -not -path './googletest-src/*' -print0 | xargs -0 pylint find . -type f -name "*.py" -not -path './ddnet-libs/*' -not -path './googletest-src/*' -print0 | xargs -0 pylint
- name: Unused headers
run: |
find src -name '*.h' | while read i; do grep -r -q $(basename $i) || (echo "Header file $i is unused" && exit 1); done