File tree 2 files changed +49
-8
lines changed
rules/javascript/security
2 files changed +49
-8
lines changed Original file line number Diff line number Diff line change @@ -43,15 +43,33 @@ utils:
43
43
kind : string_fragment
44
44
- any :
45
45
- follows :
46
- stopBy : end
47
- kind : lexical_declaration
48
- has :
49
- stopBy : end
50
- kind : variable_declarator
51
- has :
52
46
stopBy : end
53
- kind : identifier
54
- pattern : $E
47
+ kind : lexical_declaration
48
+ has :
49
+ stopBy : end
50
+ kind : variable_declarator
51
+ all :
52
+ - has :
53
+ stopBy : neighbor
54
+ kind : identifier
55
+ - has :
56
+ stopBy : neighbor
57
+ kind : call_expression
58
+ all :
59
+ - has :
60
+ stopBy : neighbor
61
+ kind : identifier
62
+ regex : ' ^require$'
63
+ - has :
64
+ stopBy : neighbor
65
+ kind : arguments
66
+ has :
67
+ stopBy : neighbor
68
+ kind : string
69
+ has :
70
+ stopBy : neighbor
71
+ kind : string_fragment
72
+ regex : ' ^sequelize$'
55
73
- follows :
56
74
stopBy : end
57
75
kind : import_statement
72
90
stopBy : end
73
91
kind : identifier
74
92
pattern : $E
93
+
75
94
76
95
MATCH_BLANK_PASSWORD_WITH_INSTANCE :
77
96
kind : identifier
@@ -174,3 +193,5 @@ rule:
174
193
matches : MATCH_BLANK_PASSWORD
175
194
- kind : identifier
176
195
matches : MATCH_BLANK_PASSWORD_WITH_INSTANCE
196
+
197
+
Original file line number Diff line number Diff line change @@ -234,6 +234,26 @@ snapshots:
234
234
style : secondary
235
235
start : 6
236
236
end : 15
237
+ - source : require
238
+ style : secondary
239
+ start : 18
240
+ end : 25
241
+ - source : sequelize
242
+ style : secondary
243
+ start : 27
244
+ end : 36
245
+ - source : ' '' sequelize'' '
246
+ style : secondary
247
+ start : 26
248
+ end : 37
249
+ - source : ('sequelize')
250
+ style : secondary
251
+ start : 25
252
+ end : 38
253
+ - source : require('sequelize')
254
+ style : secondary
255
+ start : 18
256
+ end : 38
237
257
- source : Sequelize = require('sequelize')
238
258
style : secondary
239
259
start : 6
You can’t perform that action at this time.
0 commit comments