7
7
# - errorlint # found 2 cases to be fixed.
8
8
# - exhaustive # found some cases that should be fixed.
9
9
# - exhaustruct # found some structs which missed fields in initializing.
10
- - govet
11
10
# - inamedparam # fix missing named param
12
11
# - makezero # fix the unallocated elements.
13
12
# - misspell # fix spelling
@@ -22,6 +21,10 @@ linters:
22
21
disable :
23
22
# A number of these checks run by default so they are explicitly
24
23
# disabled here.
24
+ #
25
+ # Other of these checks are disabled by default, but we want to
26
+ # comment on why we plan to keep them excluded going forward.
27
+ #
25
28
# TODO(rsned): Move the checks to enable: once the flagged
26
29
# problems are resolved for each check.
27
30
# https://github.com/golang/geo/issues/145
@@ -39,8 +42,8 @@ linters:
39
42
- dupword
40
43
# Enable once outstanding lint bugs are fixed.
41
44
- errcheck
42
- # This check is not necessary as we only use types internally we
43
- # fully control.
45
+ # This check is not necessary as we only use types internally that we
46
+ # fully control so we do not expect type assertion failures .
44
47
- forcetypeassert
45
48
# Enable once these are fixed.
46
49
# goconst found a few instances where repeated values could be const-ified.
@@ -62,23 +65,19 @@ linters:
62
65
# TODO(rsned): Enable manually once in a while to look for any
63
66
# actually fixable cases.
64
67
- mnd
65
- # triggers on most tests for failing to call paralleltest.
68
+ # Triggers on most tests for failing to call paralleltest.
69
+ # We don't have a need to use this so keep it disabled.
66
70
- paralleltest
67
71
# Enable once outstanding lint bugs are fixed.
68
72
- staticcheck
69
73
# This triggers on every _test file saying they should be separate
70
- # parallel packages e.g. s2->s2_test package.
74
+ # parallel packages e.g. s2->s2_test package. We do not plan to ever
75
+ # reshuffle the tests into a separate package.
71
76
- testpackage
72
77
# This triggers on many parts written in advance of the code that
73
78
# actually calls them. It may occasionally find some real unused
74
79
# code so running it by hand once in while could be useful.
75
80
- unused
76
- exclusions :
77
- presets :
78
- - comments
79
- - common-false-positives
80
- - legacy
81
- - std-error-handling
82
81
formatters :
83
82
enable :
84
83
- gofmt
0 commit comments