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
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -105,6 +105,7 @@ linters:
105
105
- goerr113 # Golang linter to check the errors handling expressions
106
106
- gofumpt # Gofumpt checks whether code was gofumpt-ed
107
107
- goheader # Checks is file header matches to pattern
108
+
- golint # Golint differs from gofmt. Gofmt reformats Go source code, whereas golint prints out style mistakes
108
109
- gomnd # An analyzer to detect magic numbers
109
110
- gomodguard # Allow and block list linter for direct Go module dependencies
110
111
- gosec # Inspects source code for security problems
@@ -114,14 +115,16 @@ linters:
114
115
- sqlclosecheck # Checks that sql.Rows and sql.Stmt are closed
115
116
- wrapcheck # Checks that errors returned from external packages are wrapped TODO(zchee): enable
116
117
- wsl # Whitespace Linter
118
+
# TODO(zchee): enable
119
+
- deadcode # Finds unused code
120
+
- errcheck # Errcheck is a program for checking for unchecked errors in go programs
121
+
- unparam # Reports unused function parameters
117
122
enable:
118
123
- asciicheck # Simple linter to check that your code does not contain non-ASCII identifiers
119
124
- bodyclose # checks whether HTTP response body is closed successfully
120
-
- deadcode # Finds unused code
121
125
- depguard # Go linter that checks if package imports are in a list of acceptable packages
122
126
- dogsled # Checks assignments with too many blank identifiers
123
127
- dupl # Tool for code clone detection
124
-
- errcheck # Errcheck is a program for checking for unchecked errors in go programs
125
128
- 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
129
- exhaustive # check exhaustiveness of enum switch statements
127
130
- exportloopref # checks for pointers to enclosing loop variables
@@ -133,7 +136,6 @@ linters:
133
136
- godot # Check if comments end in a period
134
137
- gofmt # Gofmt checks whether code was gofmt-ed. By default this tool runs with -s option to check for code simplification
135
138
- 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
139
- goprintffuncname # Checks that printf-like functions are named with `f` at the end
138
140
- gosimple # Linter for Go source code that specializes in simplifying a code
139
141
- 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 +159,6 @@ linters:
157
159
- tparallel # tparallel detects inappropriate usage of t.Parallel() method in your Go test codes
158
160
- typecheck # Like the front-end of a Go compiler, parses and type-checks Go code
159
161
- unconvert # Remove unnecessary type conversions
160
-
- unparam # Reports unused function parameters
161
162
- unused # Checks Go code for unused constants, variables, functions and types
162
163
- varcheck # Finds unused global variables and constants
163
164
- whitespace # Tool for detection of leading and trailing whitespace
0 commit comments