This repository has been archived on 2023-10-05. You can view files and clone it, but cannot push or open issues or pull requests.
mattermost-plugin-gcal/.golangci.yml

59 lines
1022 B
YAML

run:
timeout: 5m
modules-download-mode: readonly
linters-settings:
goconst:
min-len: 2
min-occurrences: 2
gofmt:
simplify: true
goimports:
local-prefixes: github.com/mattermost/mattermost-plugin-mscalendar
govet:
check-shadowing: true
enable-all: true
disable:
- fieldalignment
misspell:
locale: US
linters:
disable-all: true
enable:
- bodyclose
# - errcheck
# - goconst
- gocritic
- gofmt
- goimports
# - gosec
- gosimple
- govet
- ineffassign
# - misspell
- nakedret
- revive
- staticcheck
- stylecheck
- typecheck
- unconvert
- unused
- whitespace
issues:
exclude-rules:
- path: server/manifest.go
linters:
- deadcode
- unused
- varcheck
- path: server/configuration.go
linters:
- unused
- path: _test\.go
linters:
- bodyclose
- goconst
- scopelint # https://github.com/kyoh86/scopelint/issues/4