Skip to content

Commit eb99ae7

Browse files
committed
doc: fix missing linter in README.md files
1 parent 29222e1 commit eb99ae7

File tree

2 files changed

+17
-6
lines changed

2 files changed

+17
-6
lines changed

02-basic/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,6 @@ Source: https://github.com/ccoVeille/golangci-lint-config-examples/tree/main/02-
2222
### errcheck
2323
Errcheck is a program for checking for unchecked errors in Go code.
2424

25-
### gosimple
26-
Linter for Go source code that specializes in simplifying code.
27-
2825
### govet
2926
Vet examines Go source code and reports suspicious constructs.
3027

@@ -34,6 +31,9 @@ Source: https://github.com/ccoVeille/golangci-lint-config-examples/tree/main/02-
3431
### staticcheck
3532
It's a set of rules from staticcheck. See https://staticcheck.io/
3633

34+
### unused
35+
Checks Go code for unused constants, variables, functions, and types.
36+
3737
### revive
3838
Fast, configurable, extensible, flexible, and beautiful linter for Go.
3939
Drop-in replacement of golint.

03-safe/README.md

+14-3
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ It's [02-basic](../02-basic) plus :
1111
- [misspell](#misspell)
1212
- [fatcontext](#fatcontext)
1313
- [loggercheck](#loggercheck)
14+
- [exptostd](#exptostd)
15+
- [usetesting](#usetesting)
1416

1517
## License
1618

@@ -30,9 +32,6 @@ Source: [@ccoVeille](https://github.com/ccoVeille/golangci-lint-config-examples)
3032
### errcheck
3133
Errcheck is a program for checking for unchecked errors in Go code.
3234

33-
### gosimple
34-
Linter for Go source code that specializes in simplifying code.
35-
3635
### govet
3736
Vet examines Go source code and reports suspicious constructs.
3837

@@ -42,6 +41,9 @@ Source: [@ccoVeille](https://github.com/ccoVeille/golangci-lint-config-examples)
4241
### staticcheck
4342
It's a set of rules from staticcheck. See https://staticcheck.io/
4443

44+
### unused
45+
Checks Go code for unused constants, variables, functions, and types.
46+
4547
### thelper
4648
make sure to use `t.Helper()` when needed
4749

@@ -63,6 +65,12 @@ Detects errors invalid key values count
6365
### fatcontext
6466
Detects nested contexts in loops or function literals
6567

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+
6674
### revive
6775
Fast, configurable, extensible, flexible, and beautiful linter for Go.
6876
Drop-in replacement of golint.
@@ -94,6 +102,9 @@ for better readability, error messages should not be capitalized or end with pun
94102
#### errorf
95103
report when replacing `errors.New(fmt.Sprintf())` with `fmt.Errorf()` is possible
96104

105+
#### exported
106+
check naming and commenting conventions on exported symbols.
107+
97108
#### increment-decrement
98109
incrementing an integer variable by 1 is recommended to be done using the `++` operator
99110

0 commit comments

Comments
 (0)