Skip to content

Commit a9d1f42

Browse files
author
Sakshis
committed
modification in system-setproperty-hardcoded-secret-java
1 parent 2c7b952 commit a9d1f42

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

rules/java/security/system-setproperty-hardcoded-secret-java.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ utils:
1616
match_string_literal:
1717
kind: string_literal
1818
nthChild: 2
19+
not:
20+
regex: ^""$
1921
inside:
2022
stopBy: end
2123
kind: argument_list
@@ -24,12 +26,12 @@ utils:
2426
kind: method_invocation
2527
all:
2628
- has:
27-
stopBy: end
28-
kind: identifier
29+
stopBy: end
30+
kind: identifier
2931
- has:
30-
stopBy: end
31-
kind: identifier
32-
regex: '^setProperty$'
32+
stopBy: end
33+
kind: identifier
34+
regex: "^setProperty$"
3335
inside:
3436
kind: expression_statement
3537
rule:

0 commit comments

Comments
 (0)