@@ -32,10 +32,6 @@ let tests = {
32
32
fs.chmodSync("/tmp/fs", 0o770); // Compliant -rwxrwx---
33
33
fs.chmodSync("/tmp/fs", 0o70); // Compliant ----rwx---
34
34
fs.chmodSync("/tmp/fs", 0o0); // Compliant ----------
35
- fs.chmodSync("/tmp/fs", 00770); // Compliant -rwxrwx---
36
- fs.chmodSync("/tmp/fs", 0770); // Compliant -rwxrwx---
37
- fs.chmodSync("/tmp/fs", 070); // Compliant ----rwx---
38
- fs.chmodSync("/tmp/fs", 00); // Compliant ----------
39
35
40
36
fs.chmodSync("/tmp/fs", "0770"); // Compliant -rwxrwx---
41
37
fs.chmodSync("/tmp/fs", "770"); // Compliant -rwxrwx---
@@ -74,9 +70,6 @@ let tests = {
74
70
process.umask(0o007); // Compliant
75
71
process.umask(0o07); // Compliant
76
72
process.umask(0o7); // Compliant
77
- process.umask(0007); // Compliant
78
- process.umask(007); // Compliant
79
- process.umask(07); // Compliant
80
73
81
74
// String
82
75
process.umask("0777"); // Compliant
@@ -183,13 +176,8 @@ let tests = {
183
176
fs.chmodSync("/tmp/fs", 0o007); // Sensitive -------rwx
184
177
fs.chmodSync("/tmp/fs", 0o07); // Sensitive -------rwx
185
178
fs.chmodSync("/tmp/fs", 0o7); // Sensitive -------rwx
186
- fs.chmodSync("/tmp/fs", 00777); // Sensitive -------rwx
187
- fs.chmodSync("/tmp/fs", 00007); // Sensitive -------rwx
188
- fs.chmodSync("/tmp/fs", 0007); // Sensitive -------rwx
189
- fs.chmodSync("/tmp/fs", 007); // Sensitive -------rwx
190
- fs.chmodSync("/tmp/fs", 07); // Sensitive -------rwx
191
179
` ,
192
- errors : 11 ,
180
+ errors : 6 ,
193
181
} ,
194
182
{
195
183
code : `
@@ -271,10 +259,6 @@ let tests = {
271
259
process.umask(0o022); // Sensitive
272
260
process.umask(0o22); // Sensitive
273
261
process.umask(0o2); // Sensitive
274
- process.umask(0000); // Sensitive
275
- process.umask(0022); // Sensitive
276
- process.umask(022); // Sensitive
277
- process.umask(02); // Sensitive
278
262
279
263
// String
280
264
process.umask("0000"); // Sensitive
@@ -288,7 +272,7 @@ let tests = {
288
272
process.umask(0); // Sensitive 0o000
289
273
process.umask(18); // Sensitive 0o022
290
274
` ,
291
- errors : 16 ,
275
+ errors : 12 ,
292
276
} ,
293
277
{
294
278
code : `
0 commit comments