-
Notifications
You must be signed in to change notification settings - Fork 32
/
.golangci.yml
38 lines (35 loc) · 1.45 KB
/
.golangci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
run:
tests: false
skip-files:
- "example_.+_test.go$"
# golangci.com configuration
# https://github.com/golangci/golangci/wiki/Configuration
linters-settings:
govet:
check-shadowing: true
maligned:
suggest-new: true
misspell:
locale: US
linters:
enable-all: false
enable:
- errcheck # Errcheck is a program for checking for unchecked errors in go programs. These unchecked errors can be critical bugs in some cases
- goerr113 # checks that errors are wrapped according to go 1.13 error wrapping tools
- gofumpt # checks that gofumpt was run on all source code
- goimports # checks that goimports was run on all source code
- gosimple # Linter for Go source code that specializes in simplifying a code
- govet # Vet examines Go source code and reports suspicious constructs, such as Printf calls whose arguments do not align with the format string
- ineffassign # Detects when assignments to existing variables are not used
- misspell # spell checker
- rowserrcheck # checks whether Err of rows is checked successfully
- staticcheck # Staticcheck is a go vet on steroids, applying a ton of static analysis checks
- typecheck # Like the front-end of a Go compiler, parses and type-checks Go code
- unused # Checks Go code for unused constants, variables, functions and types
issues:
exclude-use-default: false
exclude-rules:
- text: "weak cryptographic primitive"
linters:
- gosec