Skip to content

Commit 4813f23

Browse files
committed
Removing more YAML FPs
1 parent 7fcce0e commit 4813f23

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

configs/patterns.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,13 @@ patterns:
7575
- ^keyPassphrase$
7676
- ^.* = (?:None|True|False),?$
7777
- ^.* = \.\.\.,?$
78-
- ^(?:this\.)?[A-Za-z_]+\,?$
78+
- ^(?:(?:this|self|obj)\.)?[A-Za-z_]+\,$
79+
- ^(?:(?:this|self|obj)\.)[A-Za-z_].*$
7980
- ^(?:[a-zA-Z_]+(?:\(\))?\.)*[a-zA-Z_]+\(\)$
8081
- ^(?:str|int|bool)( +#.*)?$
8182
- ^[ \t]+$
8283
- ^\s*(?:typing\.)?(?:[Tt]uple|[Ll]ist|[Dd]ict|Callable|Iterable|Sequence|Optional|Union)\[.*$
84+
- ^\$\{[A-Za-z0-9_-]+\}$
8385
comments:
8486
- "The hardcoded password is between 12 and 32 chars long"
8587
- "Some false positives in Code might appear"

0 commit comments

Comments
 (0)