Skip to content

Commit

Permalink
Update the API sink rule & exclude python packages
Browse files Browse the repository at this point in the history
  • Loading branch information
Dattaprasad Mundada authored and Dattaprasad Mundada committed Mar 24, 2023
1 parent 643ddf8 commit 0e53109
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions config/exclusions/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ exclusions:
patterns:
- "(.*/test(s)?.*)|/Test[A-Z]|Test[.]"

- id: Exclusions.Python.Packages
name: Exclude External Python Packages
patterns:
- "(venv|site-packages)/.*"

- id: Exclusions.Empty
name: Exclude file which cannot be read
patterns:
Expand Down
2 changes: 1 addition & 1 deletion config/systemConfig/python.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ systemConfig:
value: (?i)(?:url(?!(open|encode))|client|get|set|post|put|patch|delete|head|options|request|feed|trigger|init|find|send|receive|redirect|fetch|execute|response|pool|client|http|load|list|trace|remove|write|provider|host|access|info_read|select|perform).*

- key: apiIdentifier
value: (?i).*((hook|base|authorize|provider|endpoint|installation|cloud|host)(s){0,1}_url|(slack|web)_hook|(rest|api|host|cloud)_endpoint).*
value: (?i).*((hook|base|auth|prov|endp|install|cloud|host|request|service|gateway|route|resource)(.){0,12}url|(slack|web)(.){0,4}hook|(rest|api|host|cloud|request|service)(.){0,4}(endpoint|gateway|route)).*

0 comments on commit 0e53109

Please sign in to comment.