Skip to content

Commit 480fd48

Browse files
committed
format
1 parent 932eda4 commit 480fd48

File tree

13 files changed

+389
-251
lines changed

13 files changed

+389
-251
lines changed

.golangci.yml

+28-35
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,18 @@
11
linters-settings:
2-
goerr113:
3-
# ignore all test files
4-
check-test-files: false
52
funlen:
63
lines: 70
7-
revive:
8-
naming:
9-
ignore:
10-
- "^[A-Z][a-z].*$"
4+
# revive:
5+
# enable-all-rules: true
6+
# rules:
7+
# - name: line-length-limit
8+
# severity: warning
9+
# disabled: false
10+
# exclude: [ "" ]
11+
# arguments: [ 100 ]
1112
gocyclo:
12-
skip-dirs-use-default: true
1313
min-complexity: 20
1414
gocognit:
1515
min-complexity: 45
16-
govet:
17-
min-confidence: 0.8
18-
exclude-use-default: true
19-
include:
20-
- "**/*.go"
21-
max-issues-per-linter: 0
22-
max-same-issues: 0
23-
deadline: 120s
24-
go:
25-
# specify the Go version to use for linting
26-
# for example, "1.16" or "1.17"
27-
# if this value is not specified, the latest version of Go is used
28-
# if the specified version is not available, the latest version of Go will be used
29-
version: "1.20"
30-
31-
gosimple:
32-
# gosimple reports simplification opportunities in Go code
33-
# it helps to identify code that can be made simpler and easier to understand
34-
# this linter is particularly useful for identifying redundant code
35-
# and can help to reduce the size and complexity of your codebase
36-
# for more information, see https://github.com/dominikh/go-simple
3716
issues:
3817
exclude-rules:
3918
# Exclude some linters from running on tests files.
@@ -43,8 +22,13 @@ issues:
4322
- errcheck
4423
- funlen
4524
- goerr113
25+
- gocognit
4626
- dupl
4727
- gosec
28+
- lll
29+
exclude-dirs:
30+
- examples
31+
- mocks
4832
linters:
4933
# enable all available linters
5034
enable-all: true
@@ -68,10 +52,19 @@ linters:
6852
- varnamelen
6953
- depguard
7054
- forbidigo
55+
- exportloopref
7156

72-
73-
# specify the output format for linter results
74-
# you can choose from various formats, including plain text, JSON, and HTML
75-
# here, we are using the default plain text format
76-
output-format: colored-line-number
77-
57+
output:
58+
formats:
59+
- format: colored-line-number
60+
path: stdout
61+
sort-results: true
62+
sort-order:
63+
- linter
64+
- severity
65+
- file # filepath, line, and column.
66+
show-stats: true
67+
run:
68+
go: '1.23'
69+
concurrency: 5
70+
timeout: 5m

0 commit comments

Comments
 (0)