@@ -358,6 +358,10 @@ linters-settings:
358
358
per_char_threshold : " 3.0"
359
359
truncate : " 32"
360
360
361
+ gosimple :
362
+ # Select the Go version to target
363
+ go : " 1.13"
364
+
361
365
govet :
362
366
# report about shadowed variables
363
367
check-shadowing : true
@@ -488,6 +492,14 @@ linters-settings:
488
492
- name : indent-error-flow
489
493
severity : warning
490
494
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
+
491
503
tagliatelle :
492
504
# check the struck tag name case
493
505
case :
@@ -531,11 +543,8 @@ linters-settings:
531
543
check-exported : false
532
544
533
545
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"
539
548
540
549
whitespace :
541
550
multi-if : false # Enforces newlines (or comments) after every multi-line if statement
@@ -556,8 +565,8 @@ linters-settings:
556
565
force-short-decl-cuddling : false
557
566
strict-append : true
558
567
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.
561
570
custom :
562
571
# Each custom linter should have a unique name.
563
572
example :
0 commit comments