Skip to content

Commit 51ab7a2

Browse files
authored
Update entry_points.py to omit test/, mock/, scripts/
1 parent f6413e6 commit 51ab7a2

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

slither/printers/summary/entry_points.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ def output(self, _filename) -> Output:
3333
and not c.is_abstract
3434
and "lib/" not in c.source_mapping.filename.absolute
3535
and "node_modules/" not in c.source_mapping.filename.absolute
36-
and not any(
37-
mock in c.source_mapping.filename.absolute.lower() for mock in ["mock", "mocks"]
38-
)
36+
and "test/" not in c.source_mapping.filename.absolute
37+
and "tests/" not in c.source_mapping.filename.absolute
38+
and "mock/" not in c.source_mapping.filename.absolute
39+
and "mocks/" not in c.source_mapping.filename.absolute
40+
and "scripts/" not in c.source_mapping.filename.absolute
3941
),
4042
key=lambda x: x.name,
4143
):

0 commit comments

Comments
 (0)