@@ -546,34 +546,34 @@ Flags:
546
546
--fast Run only fast linters from enabled linters set (first run won' t be fast)
547
547
-e, --exclude strings Exclude issue by regexp
548
548
--exclude-use-default Use or not use default excludes:
549
- # errcheck: Almost all programs ignore errors on these functions and in most cases it' s ok
549
+ # EXC0001 errcheck: Almost all programs ignore errors on these functions and in most cases it' s ok
550
550
- Error return value of .(( os\.)? std(out| err)\..*| .* Close| .* Flush| os\.Remove(All)?| .* printf?| os\.(Un)? Setenv). is not checked
551
551
552
- # golint: Annoying issue about not having a comment. The rare codebase has such comments
552
+ # EXC 0002 golint: Annoying issue about not having a comment. The rare codebase has such comments
553
553
- (comment on exported (method|function|type|const)|should have( a package)? comment|comment should be of the form)
554
554
555
- # golint: False positive when tests are defined in package 'test'
555
+ # EXC 0003 golint: False positive when tests are defined in package 'test'
556
556
- func name will be used as test\.Test.* by other packages, and that stutters; consider calling this
557
557
558
- # govet: Common false positives
558
+ # EXC 0004 govet: Common false positives
559
559
- (possible misuse of unsafe.Pointer|should have signature)
560
560
561
- # staticcheck: Developers tend to write in C-style with an explicit 'break' in a 'switch', so it's ok to ignore
561
+ # EXC 0005 staticcheck: Developers tend to write in C-style with an explicit 'break' in a 'switch', so it's ok to ignore
562
562
- ineffective break statement. Did you mean to break out of the outer loop
563
563
564
- # gosec: Too many false-positives on 'unsafe' usage
564
+ # EXC 0006 gosec: Too many false-positives on 'unsafe' usage
565
565
- Use of unsafe calls should be audited
566
566
567
- # gosec: Too many false-positives for parametrized shell calls
567
+ # EXC 0007 gosec: Too many false-positives for parametrized shell calls
568
568
- Subprocess launch(ed with variable|ing should be audited)
569
569
570
- # gosec: Duplicated errcheck checks
570
+ # EXC 0008 gosec: Duplicated errcheck checks
571
571
- G104
572
572
573
- # gosec: Too many issues in popular repos
573
+ # EXC 0009 gosec: Too many issues in popular repos
574
574
- (Expect directory permissions to be 0750 or less|Expect file permissions to be 0600 or less)
575
575
576
- # gosec: False positive is triggered by 'src, err := ioutil.ReadFile(filename)'
576
+ # EXC 0010 gosec: False positive is triggered by 'src, err := ioutil.ReadFile(filename)'
577
577
- Potential file inclusion via variable
578
578
(default true)
579
579
--exclude-case-sensitive If set to true exclude and exclude rules regular expressions are case sensitive
0 commit comments