icinga2-matrix-notification/.golangci.yml
Jan Dittberner 902d4cb310 Release 0.1.0
- add packaging via goreleaser
- finaliza changelog for 0.1.0
- add debian changelog and copyright
- add configuration for golangci-lint
2024-09-26 16:02:43 +02:00

68 lines
1.5 KiB
YAML

---
run:
go: "1.23"
output:
sort-results: true
linters-settings:
goheader:
values:
const:
AUTHOR: Jan Dittberner
template: |-
Copyright {{ AUTHOR }}
SPDX-License-Identifier: GPL-3.0-or-later
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
goimports:
local-prefixes: git.dittberner.info/git/icinga2-matrix-notification
misspell:
locale: "US"
ignore-words:
- Icinga2
linters:
disable-all: false
enable:
- bodyclose
- containedctx
- contextcheck
- cyclop
- decorder
- errorlint
- exportloopref
- forbidigo
- forcetypeassert
- gocognit
- goconst
- gocritic
- gofmt
- goheader
- goimports
- mnd
- gosec
- lll
- makezero
- misspell
- nakedret
- nestif
- nlreturn
- nolintlint
- predeclared
- revive
- rowserrcheck
- sqlclosecheck
- wrapcheck
- wsl