-
Notifications
You must be signed in to change notification settings - Fork 24
/
.golangci.yml
45 lines (42 loc) · 1.05 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
issues:
max-issues-per-linter: 0
max-same-issues: 0
exclude-rules:
- path: '(.+)_test\.go'
linters:
- errcheck
- unparam
# disabling both of these for the SDKv2-based code as it's idomatic for the SDK
- path: honeycombio/*
text: "Error return value of `d.Set` is not checked"
- path: honeycombio/*
text: "type assertion must be checked"
linters-settings:
goimports:
local-prefixes: github.com/honeycombio/terraform-provider-honeycombio
linters:
disable-all: true
enable:
- durationcheck
- errcheck
- copyloopvar
- forcetypeassert
- goimports
- gosimple
- ineffassign
- makezero
- misspell
- nilerr
- predeclared
- staticcheck
- tenv
- testifylint
- unconvert
- unparam
- unused
- govet
run:
# Prevent false positive timeouts in CI
timeout: 5m
tests: true
allow-parallel-runners: true