Commit b02a36ec authored by Oscar Campos's avatar Oscar Campos Committed by Oscar Campos
Browse files

chore: add .golangci.yml configuration file

parent e02524e8
# This file contains configuration options for golangci linter
# Any options can be override creating a .golangci-.yml file
# in deeper levels of the hierarchy path
# linter settings
linter-settings:
go-vet:
# report about shadowed variables
check-shadowing: true
maligned:
# print struct with more effective memory layout or not, false by default
suggest-new: true
# enable or disable specific linters
linters:
enable:
- interfacer
- maligned
- gosec
- nakedret
- stylecheck
- goconst
- gocyclo
# List of regexps of issue texts to exclude
issues:
# Excluding configuration per path
exclude-rules:
- path: _test\.go
linters:
- gocyclo
- errcheck
- dupl
- gosec
run:
# skip the following files
skip-files:
- ".gen\\.go$"
- "_gen\\.go$"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment