File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -387,19 +387,19 @@ Flags:
387
387
# megacheck: Developers tend to write in C-style with an explicit 'break' in a 'switch', so it's ok to ignore
388
388
- ineffective break statement. Did you mean to break out of the outer loop
389
389
390
- # gas : Too many false-positives on 'unsafe' usage
390
+ # gosec : Too many false-positives on 'unsafe' usage
391
391
- Use of unsafe calls should be audited
392
392
393
- # gas : Too many false-positives for parametrized shell calls
393
+ # gosec : Too many false-positives for parametrized shell calls
394
394
- Subprocess launch(ed with variable|ing should be audited)
395
395
396
- # gas : Duplicated errcheck checks
396
+ # gosec : Duplicated errcheck checks
397
397
- G104
398
398
399
- # gas : Too many issues in popular repos
399
+ # gosec : Too many issues in popular repos
400
400
- (Expect directory permissions to be 0750 or less|Expect file permissions to be 0600 or less)
401
401
402
- # gas : False positive is triggered by 'src, err := ioutil.ReadFile(filename)'
402
+ # gosec : False positive is triggered by 'src, err := ioutil.ReadFile(filename)'
403
403
- Potential file inclusion via variable
404
404
(default true)
405
405
--max-issues-per-linter int Maximum issues count per one linter. Set to 0 to disable (default 50)
Original file line number Diff line number Diff line change @@ -59,27 +59,27 @@ var DefaultExcludePatterns = []ExcludePattern{
59
59
},
60
60
{
61
61
Pattern : "Use of unsafe calls should be audited" ,
62
- Linter : "gas " ,
62
+ Linter : "gosec " ,
63
63
Why : "Too many false-positives on 'unsafe' usage" ,
64
64
},
65
65
{
66
66
Pattern : "Subprocess launch(ed with variable|ing should be audited)" ,
67
- Linter : "gas " ,
67
+ Linter : "gosec " ,
68
68
Why : "Too many false-positives for parametrized shell calls" ,
69
69
},
70
70
{
71
71
Pattern : "G104" ,
72
- Linter : "gas " ,
72
+ Linter : "gosec " ,
73
73
Why : "Duplicated errcheck checks" ,
74
74
},
75
75
{
76
76
Pattern : "(Expect directory permissions to be 0750 or less|Expect file permissions to be 0600 or less)" ,
77
- Linter : "gas " ,
77
+ Linter : "gosec " ,
78
78
Why : "Too many issues in popular repos" ,
79
79
},
80
80
{
81
81
Pattern : "Potential file inclusion via variable" ,
82
- Linter : "gas " ,
82
+ Linter : "gosec " ,
83
83
Why : "False positive is triggered by 'src, err := ioutil.ReadFile(filename)'" ,
84
84
},
85
85
}
You can’t perform that action at this time.
0 commit comments