-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
30 lines (27 loc) · 1.48 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
# Here is the full list of customizable features
# https://github.com/golangci/golangci-lint/blob/master/.golangci.reference.yml
linters:
enable:
- errcheck # Errcheck is a program for checking for unchecked errors in go programs.
- gocheckcompilerdirectives # Checks that go compiler directive comments (//go:) are valid.
- gofmt # Gofmt checks whether code was gofmt-ed.
- gosimple # Linter for Go source code that specializes in simplifying code
- govet # Vet examines Go source code and reports suspicious constructs
- ineffassign # Detects when assignments to existing variables are not used
- misspell # Finds commonly misspelled English words in comments.
- predeclared # Find code that shadows one of Go's predeclared identifiers.
- staticcheck # Set of rules from staticcheck.
- testifylint # Checks usage of github.com/stretchr/testify.
- 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
linters-settings:
testifylint:
# Enable all checkers (https://github.com/Antonboom/testifylint#checkers).
enable-all: true
# Disable checkers by name
disable:
- require-error
- suite-thelper
issues:
max-issues-per-linter: 0
max-same-issues: 0