Kai Xia
434b03ed67
remove wrapper methods
...
Signed-off-by: Kai Xia <kaix+github@fastmail.com >
2026-03-01 18:24:11 +11:00
Kai Xia
32c864c309
enable dupl check
...
Signed-off-by: Kai Xia <kaix+github@fastmail.com >
2026-03-01 18:17:32 +11:00
Kai Xia
9be1cd6277
a moved case of nakedret
...
Signed-off-by: Kai Xia <kaix+github@fastmail.com >
2026-02-25 21:32:57 +11:00
Kai Xia
b190e6e910
enable whitespace
...
Whitespace is a linter that checks for unnecessary newlines at the start and end of functions, if, for, etc.
Signed-off-by: Kai Xia <kaix+github@fastmail.com >
2026-02-25 21:31:07 +11:00
Kai Xia
d8b164b3d4
enable wastedassign
...
Finds wasted assignment statements.
Signed-off-by: Kai Xia <kaix+github@fastmail.com >
2026-02-25 21:31:07 +11:00
Kai Xia
6830790692
enable predeclared
...
Find code that shadows one of Go's predeclared identifiers.
Signed-off-by: Kai Xia <kaix+github@fastmail.com >
2026-02-25 21:31:07 +11:00
Kai Xia
4e6589d51f
enable prealloc
...
Find slice declarations that could potentially be pre-allocated.
Signed-off-by: Kai Xia <kaix+github@fastmail.com >
2026-02-25 21:31:07 +11:00
Kai Xia
09cf8efde6
enable nakedret
...
Checks that functions with naked returns are not longer than a maximum size (can be zero).
Signed-off-by: Kai Xia <kaix+github@fastmail.com >
2026-02-25 21:31:07 +11:00
Kai Xia
c5e8e19f54
enable misspell
...
Finds commonly misspelled English words.
Signed-off-by: Kai Xia <kaix+github@fastmail.com >
2026-02-25 21:14:19 +11:00
Kai Xia
1fab1967d2
enable goprintffuncname
...
Checks that printf-like functions are named with `f` at the end.
Signed-off-by: Kai Xia <kaix+github@fastmail.com >
2026-02-25 21:14:19 +11:00
Kai Xia
06daa30e75
enable dogsled
...
Checks assignments with too many blank identifiers (e.g. x, _, _, _, := f()).
Signed-off-by: Kai Xia <kaix+github@fastmail.com >
2026-02-25 21:14:19 +11:00
Kai Xia
95f22bc07b
enable bodyclose
...
Checks whether HTTP response body is closed successfully.
Signed-off-by: Kai Xia <kaix+github@fastmail.com >
2026-02-25 21:14:19 +11:00
Kai Xia
78e5bdad29
minor improvements in Makefile
...
Signed-off-by: Kai Xia <kaix+github@fastmail.com >
2026-02-24 22:04:23 +11:00
Kai Xia
6fb61539d7
translate Chinese comments
...
Signed-off-by: Kai Xia <kaix+github@fastmail.com >
2026-02-24 10:27:49 +11:00
Kai Xia
4a73415e05
golangci-lint run --fix on master
...
Signed-off-by: Kai Xia <kaix+github@fastmail.com >
2026-02-23 08:09:26 +11:00