-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy path.golangci.yml
More file actions
31 lines (29 loc) · 806 Bytes
/
.golangci.yml
File metadata and controls
31 lines (29 loc) · 806 Bytes
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
run:
build-tags:
- integration
linters:
enable:
- goconst
- gocritic
- gofmt
- goimports
- importas
- misspell
- prealloc
- unconvert
- unused
linters-settings:
errcheck:
# report about not checking of errors in type assertions: `a := b.(MyStruct)`;
# default is false: such cases aren't reported by default.
check-type-assertions: true
gci:
sections:
- standard # Captures all standard packages if they do not match another section.
- default # Contains all imports that could not be matched to another section type.
- newLine # Prints an empty line
- prefix(github.com/socialpoint) # Groups all imports with the specified Prefix.
gofmt:
simplify: true
goimports:
local-prefixes: github.com/socialpoint