-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.golangci.yml
16 lines (16 loc) · 1.05 KB
/
.golangci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
linters:
disable-all: true
enable:
- errcheck # Errcheck is a program for checking for unchecked errors in Go code.
- ineffassign # Detects when assignments to existing variables are not used.
- govet # Vet examines Go source code and reports suspicious constructs.
- staticcheck # It's a set of rules from staticcheck.dev
- unused # Checks Go code for unused constants, variables, functions and types.
- asasalint # Check for pass []any as any in variadic func(...any).
- asciicheck # Checks that all code identifiers does not have non-ASCII symbols in the name.
- bidichk # Checks for dangerous unicode character sequences.
- decorder # heck declaration order and count of types, constants, variables and functions.
- errname # Checks that sentinel errors are prefixed with the Err and error types are suffixed with the Error.
- gofmt # Gofmt checks whether code was gofmt-ed. By default this tool runs with -s option to check for code simplification.
- gosec # Inspects source code for security problems.
disable: