Skip to content

Commit

Permalink
ci: add dead code detection
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas1312 committed Oct 10, 2023
1 parent fe2d7db commit a248b3b
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,19 +178,7 @@ jobs:

- name: Filter dead code
run: |
cat dead_code.log | \
grep -e "src/kili" | \
grep -v \
-e "internal" \
-e "is only referenced in tests" \
-e "_ is never read" \
-e "affected_rows" \
-e "src/kili/orm" \
-e "src/kili/entrypoints" \
-e "src/kili/services" \
-e "src/kili/types.py" \
-e "src/kili/core/graphql/ws_graphql_client" \
> dead_code_filtered.log
cat dead_code.log | grep -e "src/kili" | grep -v -e "internal" -e "is only referenced in tests" -e "_ is never read" -e "affected_rows" -e "src/kili/orm" -e "src/kili/entrypoints" -e "src/kili/services" -e "src/kili/types.py" -e "src/kili/core/graphql/ws_graphql_client" > dead_code_filtered.log
- name: Crash if dead code found
run: |
Expand Down

0 comments on commit a248b3b

Please sign in to comment.