diff --git a/.gitignore b/.gitignore index e43b0f9..43d3056 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .DS_Store +hwr_analyzer diff --git a/src/rules/python.yml b/src/rules/python.yml index 429916b..f692c59 100644 --- a/src/rules/python.yml +++ b/src/rules/python.yml @@ -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 diff --git a/test b/test deleted file mode 160000 index 3749d34..0000000 --- a/test +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 3749d3452edbea7c27c63016c954c1792407ae2b