Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .codacy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
---
exclude_paths:
- "tests/**"

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SUGGESTION: Rationale references a file that does not exist in this repo, and the exclusion is broader than needed

The PR description justifies this by tests/js/screen.test.js calling new Function(...), but the only tracked file under tests/ is tests/test_routes.py; there is no tests/js/ directory and no screen.test.js anywhere in the tree. Either the motivating finding came from a different branch/repo state, or the trigger no longer exists.

Also note that a top-level exclude_paths removes the whole tests/ tree from every Codacy engine (linters included), which is wider than the single eval/Function() failure described. Narrowing to the specific engine/rule, or keeping the top-level entry with a comment explaining why all of tests/ is excluded, would keep test coverage for unrelated rules.

Not blocking - the config itself is valid and matches Codacy's schema.


Reply with @kilocode-bot fix it to have Kilo Code address this issue.

engines:
bandit:
exclude_paths:
Expand Down
Loading