@@ -358,6 +358,10 @@ linters-settings:
358358 per_char_threshold : " 3.0"
359359 truncate : " 32"
360360
361+ gosimple :
362+ # Select the Go version to target
363+ go : " 1.13"
364+
361365 govet :
362366 # report about shadowed variables
363367 check-shadowing : true
@@ -488,6 +492,14 @@ linters-settings:
488492 - name : indent-error-flow
489493 severity : warning
490494
495+ staticcheck :
496+ # Select the Go version to target
497+ go : " 1.13"
498+
499+ stylecheck :
500+ # Select the Go version to target
501+ go : " 1.13"
502+
491503 tagliatelle :
492504 # check the struck tag name case
493505 case :
@@ -531,11 +543,8 @@ linters-settings:
531543 check-exported : false
532544
533545 unused :
534- # treat code as a program (not a library) and report unused exported identifiers; default is false.
535- # XXX: if you enable this setting, unused will report a lot of false-positives in text editors:
536- # if it's called for subdir of a project it can't find funcs usages. All text editor integrations
537- # with golangci-lint call it on a directory with the changed file.
538- check-exported : false
546+ # Select the Go version to target
547+ go : " 1.13"
539548
540549 whitespace :
541550 multi-if : false # Enforces newlines (or comments) after every multi-line if statement
@@ -556,8 +565,8 @@ linters-settings:
556565 force-short-decl-cuddling : false
557566 strict-append : true
558567
559- # The custom section can be used to define linter plugins to be loaded at runtime. See README doc
560- # for more info.
568+ # The custom section can be used to define linter plugins to be loaded at runtime.
569+ # See README doc for more info.
561570 custom :
562571 # Each custom linter should have a unique name.
563572 example :
0 commit comments