Skip to content

Commit 0b3ba65

Browse files
committed
docs: add all govet passes
1 parent 10e5959 commit 0b3ba65

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

.golangci.next.reference.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,45 +1485,87 @@ linters-settings:
14851485
# Run `GL_DEBUG=govet golangci-lint run --enable=govet` to see default, all available analyzers, and enabled analyzers.
14861486
# Default: []
14871487
enable:
1488+
# Check for missing values after append.
14881489
- appends
1490+
# Report mismatches between assembly files and Go declarations.
14891491
- asmdecl
1492+
# Check for useless assignments.
14901493
- assign
1494+
# Check for common mistakes using the sync/atomic package.
14911495
- atomic
1496+
# Check for non-64-bits-aligned arguments to sync/atomic functions.
14921497
- atomicalign
1498+
# Check for common mistakes involving boolean operators.
14931499
- bools
1500+
# Check //go:build and // +build directives.
14941501
- buildtag
1502+
# Detect some violations of the cgo pointer passing rules.
14951503
- cgocall
1504+
# Check for unkeyed composite literals.
14961505
- composites
1506+
# Check for locks erroneously passed by value.
14971507
- copylocks
1508+
# Check for calls of reflect.DeepEqual on error values.
14981509
- deepequalerrors
1510+
# Report common mistakes in defer statements.
14991511
- defers
1512+
# Check Go toolchain directives such as //go:debug.
15001513
- directive
1514+
# Report passing non-pointer or non-error values to errors.As.
15011515
- errorsas
1516+
# Find structs that would use less memory if their fields were sorted.
15021517
- fieldalignment
1518+
# Find calls to a particular function.
15031519
- findcall
1520+
# Report assembly that clobbers the frame pointer before saving it.
15041521
- framepointer
1522+
# Check for mistakes using HTTP responses.
15051523
- httpresponse
1524+
# Detect impossible interface-to-interface type assertions.
15061525
- ifaceassert
1526+
# Check references to loop variables from within nested functions.
15071527
- loopclosure
1528+
# Check cancel func returned by context.WithCancel is called.
15081529
- lostcancel
1530+
# Check for useless comparisons between functions and nil.
15091531
- nilfunc
1532+
# Check for redundant or impossible nil comparisons.
15101533
- nilness
1534+
# Check consistency of Printf format strings and arguments.
15111535
- printf
1536+
# Check for comparing reflect.Value values with == or reflect.DeepEqual.
15121537
- reflectvaluecompare
1538+
# Check for possible unintended shadowing of variables.
15131539
- shadow
1540+
# Check for shifts that equal or exceed the width of the integer.
15141541
- shift
1542+
# Check for unbuffered channel of os.Signal.
15151543
- sigchanyzer
1544+
# Check for invalid structured logging calls.
15161545
- slog
1546+
# Check the argument type of sort.Slice.
15171547
- sortslice
1548+
# Check signature of methods of well-known interfaces.
15181549
- stdmethods
1550+
# Check for string(int) conversions.
15191551
- stringintconv
1552+
# Check that struct field tags conform to reflect.StructTag.Get.
15201553
- structtag
1554+
# Report calls to (*testing.T).Fatal from goroutines started by a test.
15211555
- testinggoroutine
1556+
# Check for common mistaken usages of tests and examples.
15221557
- tests
1558+
# Check for calls of (time.Time).Format or time.Parse with 2006-02-01.
1559+
- timeformat
1560+
# Report passing non-pointer or non-interface values to unmarshal.
15231561
- unmarshal
1562+
# Check for unreachable code.
15241563
- unreachable
1564+
# Check for invalid conversions of uintptr to unsafe.Pointer.
15251565
- unsafeptr
1566+
# Check for unused results of calls to some functions.
15261567
- unusedresult
1568+
# Checks for unused writes.
15271569
- unusedwrite
15281570

15291571
# Enable all analyzers.
@@ -1572,6 +1614,7 @@ linters-settings:
15721614
- structtag
15731615
- testinggoroutine
15741616
- tests
1617+
- timeformat
15751618
- unmarshal
15761619
- unreachable
15771620
- unsafeptr

jsonschema/golangci.next.jsonschema.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@
202202
"structtag",
203203
"testinggoroutine",
204204
"tests",
205+
"timeformat",
205206
"unmarshal",
206207
"unreachable",
207208
"unsafeptr",

0 commit comments

Comments
 (0)