File tree 3 files changed +6
-3
lines changed
3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -555,7 +555,7 @@ Flags:
555
555
-e, --exclude strings Exclude issue by regexp
556
556
--exclude-use-default Use or not use default excludes:
557
557
# EXC0001 errcheck: Almost all programs ignore errors on these functions and in most cases it' s ok
558
- - Error return value of .(( os\.)? std(out| err)\..*| .* Close| .* Flush| os\.Remove(All)?| .* printf ?| os\.(Un)? Setenv). is not checked
558
+ - Error return value of .(( os\.)? std(out| err)\..*| .* Close| .* Flush| os\.Remove(All)?| .* print(f | ln) ?| os\.(Un)? Setenv). is not checked
559
559
560
560
# EXC0002 golint: Annoying issue about not having a comment. The rare codebase has such comments
561
561
- (comment on exported (method|function|type|const)|should have( a package)? comment|comment should be of the form)
Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ var DefaultExcludePatterns = []ExcludePattern{
40
40
{
41
41
ID : "EXC0001" ,
42
42
Pattern : "Error return value of .((os\\ .)?std(out|err)\\ ..*|.*Close" +
43
- "|.*Flush|os\\ .Remove(All)?|.*printf ?|os\\ .(Un)?Setenv). is not checked" ,
43
+ "|.*Flush|os\\ .Remove(All)?|.*print(f|ln) ?|os\\ .(Un)?Setenv). is not checked" ,
44
44
Linter : "errcheck" ,
45
45
Why : "Almost all programs ignore errors on these functions and in most cases it's ok" ,
46
46
},
Original file line number Diff line number Diff line change 1
1
linters-settings :
2
2
errcheck :
3
3
check-blank : true
4
- ignore : os:.*,io/ioutil:^ReadF.*
4
+ ignore : os:.*,io/ioutil:^ReadF.*
5
+ issues :
6
+ include :
7
+ - EXC0001
You can’t perform that action at this time.
0 commit comments