@@ -1485,45 +1485,87 @@ linters-settings:
1485
1485
# Run `GL_DEBUG=govet golangci-lint run --enable=govet` to see default, all available analyzers, and enabled analyzers.
1486
1486
# Default: []
1487
1487
enable :
1488
+ # Check for missing values after append.
1488
1489
- appends
1490
+ # Report mismatches between assembly files and Go declarations.
1489
1491
- asmdecl
1492
+ # Check for useless assignments.
1490
1493
- assign
1494
+ # Check for common mistakes using the sync/atomic package.
1491
1495
- atomic
1496
+ # Check for non-64-bits-aligned arguments to sync/atomic functions.
1492
1497
- atomicalign
1498
+ # Check for common mistakes involving boolean operators.
1493
1499
- bools
1500
+ # Check //go:build and // +build directives.
1494
1501
- buildtag
1502
+ # Detect some violations of the cgo pointer passing rules.
1495
1503
- cgocall
1504
+ # Check for unkeyed composite literals.
1496
1505
- composites
1506
+ # Check for locks erroneously passed by value.
1497
1507
- copylocks
1508
+ # Check for calls of reflect.DeepEqual on error values.
1498
1509
- deepequalerrors
1510
+ # Report common mistakes in defer statements.
1499
1511
- defers
1512
+ # Check Go toolchain directives such as //go:debug.
1500
1513
- directive
1514
+ # Report passing non-pointer or non-error values to errors.As.
1501
1515
- errorsas
1516
+ # Find structs that would use less memory if their fields were sorted.
1502
1517
- fieldalignment
1518
+ # Find calls to a particular function.
1503
1519
- findcall
1520
+ # Report assembly that clobbers the frame pointer before saving it.
1504
1521
- framepointer
1522
+ # Check for mistakes using HTTP responses.
1505
1523
- httpresponse
1524
+ # Detect impossible interface-to-interface type assertions.
1506
1525
- ifaceassert
1526
+ # Check references to loop variables from within nested functions.
1507
1527
- loopclosure
1528
+ # Check cancel func returned by context.WithCancel is called.
1508
1529
- lostcancel
1530
+ # Check for useless comparisons between functions and nil.
1509
1531
- nilfunc
1532
+ # Check for redundant or impossible nil comparisons.
1510
1533
- nilness
1534
+ # Check consistency of Printf format strings and arguments.
1511
1535
- printf
1536
+ # Check for comparing reflect.Value values with == or reflect.DeepEqual.
1512
1537
- reflectvaluecompare
1538
+ # Check for possible unintended shadowing of variables.
1513
1539
- shadow
1540
+ # Check for shifts that equal or exceed the width of the integer.
1514
1541
- shift
1542
+ # Check for unbuffered channel of os.Signal.
1515
1543
- sigchanyzer
1544
+ # Check for invalid structured logging calls.
1516
1545
- slog
1546
+ # Check the argument type of sort.Slice.
1517
1547
- sortslice
1548
+ # Check signature of methods of well-known interfaces.
1518
1549
- stdmethods
1550
+ # Check for string(int) conversions.
1519
1551
- stringintconv
1552
+ # Check that struct field tags conform to reflect.StructTag.Get.
1520
1553
- structtag
1554
+ # Report calls to (*testing.T).Fatal from goroutines started by a test.
1521
1555
- testinggoroutine
1556
+ # Check for common mistaken usages of tests and examples.
1522
1557
- 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.
1523
1561
- unmarshal
1562
+ # Check for unreachable code.
1524
1563
- unreachable
1564
+ # Check for invalid conversions of uintptr to unsafe.Pointer.
1525
1565
- unsafeptr
1566
+ # Check for unused results of calls to some functions.
1526
1567
- unusedresult
1568
+ # Checks for unused writes.
1527
1569
- unusedwrite
1528
1570
1529
1571
# Enable all analyzers.
@@ -1572,6 +1614,7 @@ linters-settings:
1572
1614
- structtag
1573
1615
- testinggoroutine
1574
1616
- tests
1617
+ - timeformat
1575
1618
- unmarshal
1576
1619
- unreachable
1577
1620
- unsafeptr
0 commit comments