Skip to content

Commit

Permalink
fix: remove subproject and fix python semgrep extraction rules (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
chyccs committed Mar 3, 2023
1 parent dc8e433 commit 9c82a10
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
.DS_Store
hwr_analyzer
13 changes: 9 additions & 4 deletions src/rules/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,16 @@ rules:
- python
pattern-either:
- pattern: |
class $CMD(...):
class $SYMBOL(...):
...
- pattern: |
def $CMD(...):
def $SYMBOL(...):
...
- pattern: $CMD = ...
message: $CMD
- pattern: |
def $DEF(..., $SYMBOL, ...):
...
- pattern: $SCOP.$SYMBOL.$AFT = ...
- pattern: $SCOP.$SYMBOL = ...
- pattern: $DICT['$SYMBOL'] = ...
message: $SYMBOL
severity: INFO
1 change: 0 additions & 1 deletion test
Submodule test deleted from 3749d3

0 comments on commit 9c82a10

Please sign in to comment.