Skip to content

Commit 0f45e9d

Browse files
committed
Remove govet from enabled. Drop exclusions. Clarify some comments.
1 parent 6df2625 commit 0f45e9d

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

.golangci.yml

+10-11
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ linters:
77
# - errorlint # found 2 cases to be fixed.
88
# - exhaustive # found some cases that should be fixed.
99
# - exhaustruct # found some structs which missed fields in initializing.
10-
- govet
1110
# - inamedparam # fix missing named param
1211
# - makezero # fix the unallocated elements.
1312
# - misspell # fix spelling
@@ -22,6 +21,10 @@ linters:
2221
disable:
2322
# A number of these checks run by default so they are explicitly
2423
# 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+
#
2528
# TODO(rsned): Move the checks to enable: once the flagged
2629
# problems are resolved for each check.
2730
# https://github.com/golang/geo/issues/145
@@ -39,8 +42,8 @@ linters:
3942
- dupword
4043
# Enable once outstanding lint bugs are fixed.
4144
- 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.
4447
- forcetypeassert
4548
# Enable once these are fixed.
4649
# goconst found a few instances where repeated values could be const-ified.
@@ -62,23 +65,19 @@ linters:
6265
# TODO(rsned): Enable manually once in a while to look for any
6366
# actually fixable cases.
6467
- 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.
6670
- paralleltest
6771
# Enable once outstanding lint bugs are fixed.
6872
- staticcheck
6973
# 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.
7176
- testpackage
7277
# This triggers on many parts written in advance of the code that
7378
# actually calls them. It may occasionally find some real unused
7479
# code so running it by hand once in while could be useful.
7580
- unused
76-
exclusions:
77-
presets:
78-
- comments
79-
- common-false-positives
80-
- legacy
81-
- std-error-handling
8281
formatters:
8382
enable:
8483
- gofmt

0 commit comments

Comments
 (0)