Skip to content

Commit 6ecea1c

Browse files
diegsjirfag
authored andcommitted
config: gas => gosec defaults.
Updates the strings to reflect the linter rename.
1 parent 9f0dcd6 commit 6ecea1c

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -387,19 +387,19 @@ Flags:
387387
# megacheck: Developers tend to write in C-style with an explicit 'break' in a 'switch', so it's ok to ignore
388388
- ineffective break statement. Did you mean to break out of the outer loop
389389
390-
# gas: Too many false-positives on 'unsafe' usage
390+
# gosec: Too many false-positives on 'unsafe' usage
391391
- Use of unsafe calls should be audited
392392
393-
# gas: Too many false-positives for parametrized shell calls
393+
# gosec: Too many false-positives for parametrized shell calls
394394
- Subprocess launch(ed with variable|ing should be audited)
395395
396-
# gas: Duplicated errcheck checks
396+
# gosec: Duplicated errcheck checks
397397
- G104
398398
399-
# gas: Too many issues in popular repos
399+
# gosec: Too many issues in popular repos
400400
- (Expect directory permissions to be 0750 or less|Expect file permissions to be 0600 or less)
401401
402-
# gas: False positive is triggered by 'src, err := ioutil.ReadFile(filename)'
402+
# gosec: False positive is triggered by 'src, err := ioutil.ReadFile(filename)'
403403
- Potential file inclusion via variable
404404
(default true)
405405
--max-issues-per-linter int Maximum issues count per one linter. Set to 0 to disable (default 50)

pkg/config/config.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,27 +59,27 @@ var DefaultExcludePatterns = []ExcludePattern{
5959
},
6060
{
6161
Pattern: "Use of unsafe calls should be audited",
62-
Linter: "gas",
62+
Linter: "gosec",
6363
Why: "Too many false-positives on 'unsafe' usage",
6464
},
6565
{
6666
Pattern: "Subprocess launch(ed with variable|ing should be audited)",
67-
Linter: "gas",
67+
Linter: "gosec",
6868
Why: "Too many false-positives for parametrized shell calls",
6969
},
7070
{
7171
Pattern: "G104",
72-
Linter: "gas",
72+
Linter: "gosec",
7373
Why: "Duplicated errcheck checks",
7474
},
7575
{
7676
Pattern: "(Expect directory permissions to be 0750 or less|Expect file permissions to be 0600 or less)",
77-
Linter: "gas",
77+
Linter: "gosec",
7878
Why: "Too many issues in popular repos",
7979
},
8080
{
8181
Pattern: "Potential file inclusion via variable",
82-
Linter: "gas",
82+
Linter: "gosec",
8383
Why: "False positive is triggered by 'src, err := ioutil.ReadFile(filename)'",
8484
},
8585
}

0 commit comments

Comments
 (0)