File tree 1 file changed +28
-2
lines changed
1 file changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -1503,19 +1503,45 @@ linters-settings:
1503
1503
skip-regexp : (export|internal)_test\.go
1504
1504
1505
1505
thelper :
1506
- # The following configurations enable all checks.
1507
- # All checks are enabled by default.
1508
1506
test :
1507
+ # Check *testing.T is first param (or after context.Context) of helper function.
1508
+ # Default: true
1509
1509
first : false
1510
+ # Check *testing.T param has name t.
1511
+ # Default: true
1510
1512
name : false
1513
+ # Check t.Helper() begins helper function.
1514
+ # Default: true
1511
1515
begin : false
1512
1516
benchmark :
1517
+ # Check *testing.B is first param (or after context.Context) of helper function.
1518
+ # Default: true
1513
1519
first : false
1520
+ # Check *testing.B param has name b.
1521
+ # Default: true
1514
1522
name : false
1523
+ # Check b.Helper() begins helper function.
1524
+ # Default: true
1515
1525
begin : false
1516
1526
tb :
1527
+ # Check *testing.TB is first param (or after context.Context) of helper function.
1528
+ # Default: true
1517
1529
first : false
1530
+ # Check *testing.TB param has name tb.
1531
+ # Default: true
1518
1532
name : false
1533
+ # Check tb.Helper() begins helper function.
1534
+ # Default: true
1535
+ begin : false
1536
+ fuzz :
1537
+ # Check *testing.F is first param (or after context.Context) of helper function.
1538
+ # Default: true
1539
+ first : false
1540
+ # Check *testing.F param has name f.
1541
+ # Default: true
1542
+ name : false
1543
+ # Check f.Helper() begins helper function.
1544
+ # Default: true
1519
1545
begin : false
1520
1546
1521
1547
unparam :
You can’t perform that action at this time.
0 commit comments