File tree Expand file tree Collapse file tree 3 files changed +31
-6
lines changed Expand file tree Collapse file tree 3 files changed +31
-6
lines changed Original file line number Diff line number Diff line change 9
9
# the node "on:" present in each GitHub Actions workflow file
10
10
ignore : |
11
11
.github/
12
+
13
+ line-length :
14
+ max : 200
15
+ allow-non-breakable-words : true
16
+ allow-non-breakable-inline-mappings : false
Original file line number Diff line number Diff line change 1
1
---
2
2
linters :
3
- # These linters are enabled by default
4
- # They can be disable by moving them to the 'disable' key
3
+ # some linters are enabled by default
4
+ # https://golangci-lint.run/usage/linters/
5
+ #
6
+ # enable some extra linters
5
7
enable :
6
8
# Errcheck is a program for checking for unchecked errors in Go code.
7
9
- errcheck
10
+
8
11
# Linter for Go source code that specializes in simplifying code.
9
12
- gosimple
13
+
10
14
# Vet examines Go source code and reports suspicious constructs.
11
15
- govet
16
+
12
17
# Detects when assignments to existing variables are not used.
13
18
- ineffassign
19
+
14
20
# It's a set of rules from staticcheck. See https://staticcheck.io/
15
21
- staticcheck
16
- disable :
17
- # empty by default
18
- # but you can any linter here, even the default ones
Original file line number Diff line number Diff line change @@ -4,9 +4,26 @@ These are the currently available linter that are enabled in the current last `g
4
4
5
5
See [ .golangci.yaml] ( .golangci.yaml )
6
6
7
+ ## Enabled linters
8
+
9
+ ### errcheck
10
+ Errcheck is a program for checking for unchecked errors in Go code.
11
+
12
+ ### gosimple
13
+ Linter for Go source code that specializes in simplifying code.
14
+
15
+ ### govet
16
+ Vet examines Go source code and reports suspicious constructs.
17
+
18
+ ### ineffassign
19
+ Detects when assignments to existing variables are not used.
20
+
21
+ ### staticcheck
22
+ It's a set of rules from staticcheck. See https://staticcheck.io/
23
+
7
24
## Changelog
8
25
9
- - 2024-06-26 - golangci-lint:1.59.1
26
+ - 2024-06-28 - golangci-lint:1.59.1
10
27
11
28
initial version
12
29
You can’t perform that action at this time.
0 commit comments