@@ -11,6 +11,8 @@ It's [02-basic](../02-basic) plus :
11
11
- [ misspell] ( #misspell )
12
12
- [ fatcontext] ( #fatcontext )
13
13
- [ loggercheck] ( #loggercheck )
14
+ - [ exptostd] ( #exptostd )
15
+ - [ usetesting] ( #usetesting )
14
16
15
17
## License
16
18
@@ -30,9 +32,6 @@ Source: [@ccoVeille](https://github.com/ccoVeille/golangci-lint-config-examples)
30
32
### errcheck
31
33
Errcheck is a program for checking for unchecked errors in Go code.
32
34
33
- ### gosimple
34
- Linter for Go source code that specializes in simplifying code.
35
-
36
35
### govet
37
36
Vet examines Go source code and reports suspicious constructs.
38
37
@@ -42,6 +41,9 @@ Source: [@ccoVeille](https://github.com/ccoVeille/golangci-lint-config-examples)
42
41
### staticcheck
43
42
It's a set of rules from staticcheck. See https://staticcheck.io/
44
43
44
+ ### unused
45
+ Checks Go code for unused constants, variables, functions, and types.
46
+
45
47
### thelper
46
48
make sure to use ` t.Helper() ` when needed
47
49
@@ -63,6 +65,12 @@ Detects errors invalid key values count
63
65
### fatcontext
64
66
Detects nested contexts in loops or function literals
65
67
68
+ ### exptostd
69
+ detect when a package or method could be replaced by one from the standard library
70
+
71
+ ### usetesting
72
+ Reports uses of functions with replacement inside the testing package.
73
+
66
74
### revive
67
75
Fast, configurable, extensible, flexible, and beautiful linter for Go.
68
76
Drop-in replacement of golint.
@@ -94,6 +102,9 @@ for better readability, error messages should not be capitalized or end with pun
94
102
#### errorf
95
103
report when replacing ` errors.New(fmt.Sprintf()) ` with ` fmt.Errorf() ` is possible
96
104
105
+ #### exported
106
+ check naming and commenting conventions on exported symbols.
107
+
97
108
#### increment-decrement
98
109
incrementing an integer variable by 1 is recommended to be done using the ` ++ ` operator
99
110
0 commit comments