You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .golangci.yml
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ run:
5
5
skip-dirs: []
6
6
skip-dirs-use-default: true
7
7
skip-files: []
8
-
allow-parallel-runners: false
8
+
allow-parallel-runners: true
9
9
10
10
output:
11
11
format: colored-line-number
@@ -17,10 +17,10 @@ output:
17
17
linters-settings:
18
18
dupl:
19
19
threshold: 100
20
-
errcheck:
21
-
check-type-assertions: true
22
-
check-blank: true
23
-
exclude: .errcheckignore
20
+
#errcheck:
21
+
# check-type-assertions: true
22
+
# check-blank: true
23
+
# exclude: .errcheckignore
24
24
funlen:
25
25
lines: 100
26
26
statements: 60
@@ -54,7 +54,7 @@ linters-settings:
54
54
gofmt:
55
55
simplify: true
56
56
goimports:
57
-
local-prefixes: go.lsp.dev/jsonrpc2,go.lsp.dev
57
+
local-prefixes: go.lsp.dev/jsonrpc2
58
58
golint:
59
59
min-confidence: 0.3
60
60
govet:
@@ -96,6 +96,8 @@ linters-settings:
96
96
linters:
97
97
fast: false
98
98
disabled:
99
+
- deadcode # Finds unused code
100
+
- errcheck # Errcheck is a program for checking for unchecked errors in go programs
99
101
- exhaustivestruct # Checks if all struct's fields are initialized
100
102
- forbidigo # Forbids identifiers
101
103
- gci # Gci control golang package import order and make it always deterministic
@@ -105,23 +107,23 @@ linters:
105
107
- goerr113 # Golang linter to check the errors handling expressions
106
108
- gofumpt # Gofumpt checks whether code was gofumpt-ed
107
109
- goheader # Checks is file header matches to pattern
110
+
- golint # Golint differs from gofmt. Gofmt reformats Go source code, whereas golint prints out style mistakes
108
111
- gomnd # An analyzer to detect magic numbers
109
112
- gomodguard # Allow and block list linter for direct Go module dependencies
110
113
- gosec # Inspects source code for security problems
111
114
- nlreturn # nlreturn checks for a new line before return and branch statements to increase code clarity
112
115
- paralleltest # paralleltest detects missing usage of t.Parallel() method in your Go test
113
116
- scopelint # Scopelint checks for unpinned variables in go programs
114
117
- sqlclosecheck # Checks that sql.Rows and sql.Stmt are closed
118
+
- unparam # Reports unused function parameters
115
119
- wrapcheck # Checks that errors returned from external packages are wrapped TODO(zchee): enable
116
120
- wsl # Whitespace Linter
117
121
enable:
118
122
- asciicheck # Simple linter to check that your code does not contain non-ASCII identifiers
119
123
- bodyclose # checks whether HTTP response body is closed successfully
120
-
- deadcode # Finds unused code
121
124
- depguard # Go linter that checks if package imports are in a list of acceptable packages
122
125
- dogsled # Checks assignments with too many blank identifiers
123
126
- dupl # Tool for code clone detection
124
-
- errcheck # Errcheck is a program for checking for unchecked errors in go programs
125
127
- errorlint # source code linter for Go software that can be used to find code that will cause problemswith the error wrapping scheme introduced in Go 1.13
126
128
- exhaustive # check exhaustiveness of enum switch statements
127
129
- exportloopref # checks for pointers to enclosing loop variables
@@ -133,7 +135,6 @@ linters:
133
135
- godot # Check if comments end in a period
134
136
- gofmt # Gofmt checks whether code was gofmt-ed. By default this tool runs with -s option to check for code simplification
135
137
- goimports # Goimports does everything that gofmt does. Additionally it checks unused imports
136
-
- golint # Golint differs from gofmt. Gofmt reformats Go source code, whereas golint prints out style mistakes
137
138
- goprintffuncname # Checks that printf-like functions are named with `f` at the end
138
139
- gosimple # Linter for Go source code that specializes in simplifying a code
139
140
- govet # Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string
@@ -157,7 +158,6 @@ linters:
157
158
- tparallel # tparallel detects inappropriate usage of t.Parallel() method in your Go test codes
158
159
- typecheck # Like the front-end of a Go compiler, parses and type-checks Go code
159
160
- unconvert # Remove unnecessary type conversions
160
-
- unparam # Reports unused function parameters
161
161
- unused # Checks Go code for unused constants, variables, functions and types
162
162
- varcheck # Finds unused global variables and constants
163
163
- whitespace # Tool for detection of leading and trailing whitespace
0 commit comments