generated from hashicorp/terraform-provider-scaffolding-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
45 lines (42 loc) · 1.36 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
39
40
41
42
43
44
45
# Visit https://golangci-lint.run/ for usage documentation
# and information on other useful linters
run:
timeout: 10m
issues-exit-code: 1
tests: true
issues:
max-per-linter: 0
max-same-issues: 0
linters:
disable-all: true
enable:
- cyclop # Checks if the cyclic complexity of a function is acceptable
- dogsled # Checks assignments with too many blank identifiers (e.g. x, , , _, := f())
- durationcheck
- dupl # Detects code duplication
- errcheck
- copyloopvar # Ensures loop variables are not reassigned on each iteration
- forcetypeassert
- funlen # Detects long functions
- gocritic # Provides diagnostics that check for bugs, performance and style issues
- godot
- gofmt # Checks whether code was gofmt-ed
- gosec # Inspects source code for security problems
- gosimple
- govet
- ineffassign
- makezero
- misspell # Finds commonly misspelled English words in comments
- nestif # Reports deeply nested if statements
- nilerr # Finds the code that returns nil even if it checks that the error is not nil
- predeclared
- staticcheck
- tenv
- unconvert # Remove unnecessary type conversions
- unparam # Reports unused function parameters
- unused
- whitespace # Detects leading and trailing whitespace
linters-settings:
funlen:
lines: 100
statements: 50