forked from checkmarble/marble-backend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
35 lines (33 loc) · 1013 Bytes
/
.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
linters:
enable:
- errorlint
- loggercheck
- durationcheck
- sloglint
- unconvert
- tagliatelle
issues:
exclude-rules:
- path: repository/ingested_data_indexes_repository.go
text: "should be called, not discarded, to avoid a context leak"
linters-settings:
tagliatelle:
# Check the struct tag name case.
case:
# Use the struct field name to check the name of the struct tag.
# Default: false
use-field-name: true
# `camel` is used for `json` and `yaml`, and `header` is used for `header` (can be overridden)
# Default: {}
rules:
# Any struct tag type can be used.
# Support string case: `camel`, `pascal`, `kebab`, `snake`, `upperSnake`, `goCamel`, `goPascal`, `goKebab`, `goSnake`, `upper`, `lower`, `header`
json: snake
yaml: camel
xml: camel
toml: camel
bson: camel
avro: snake
mapstructure: kebab
env: upperSnake
envconfig: upperSnake