2021-01-09 14:49:19 +00:00
|
|
|
---
|
|
|
|
run:
|
2022-09-26 09:58:36 +00:00
|
|
|
go: "1.17"
|
2021-01-09 14:49:19 +00:00
|
|
|
skip-files:
|
|
|
|
- boardvoting/assets.go
|
2022-03-21 12:37:44 +00:00
|
|
|
|
2021-01-09 14:49:19 +00:00
|
|
|
output:
|
|
|
|
sort-results: true
|
|
|
|
|
2022-03-21 12:37:44 +00:00
|
|
|
linters-settings:
|
2021-01-09 14:49:19 +00:00
|
|
|
goheader:
|
|
|
|
values:
|
|
|
|
const:
|
|
|
|
ORGANIZATION: CAcert Inc.
|
2022-03-21 12:37:44 +00:00
|
|
|
template: |-
|
2021-01-09 14:49:19 +00:00
|
|
|
Copyright {{ YEAR-RANGE }} {{ ORGANIZATION }}
|
|
|
|
SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
2022-03-21 12:37:44 +00:00
|
|
|
gomnd:
|
|
|
|
ignore-functions:
|
|
|
|
- 'strconv.*'
|
2022-05-15 18:10:49 +00:00
|
|
|
ignored-numbers:
|
|
|
|
- '-1,0,1,2,8'
|
2021-01-09 14:49:19 +00:00
|
|
|
goimports:
|
|
|
|
local-prefixes: git.cacert.org/cacert-boardvoting
|
|
|
|
misspell:
|
2022-09-26 09:58:36 +00:00
|
|
|
locale: "US"
|
2021-01-09 14:49:19 +00:00
|
|
|
ignore-words:
|
|
|
|
- CAcert
|
|
|
|
|
|
|
|
linters:
|
|
|
|
disable-all: false
|
|
|
|
enable:
|
|
|
|
- bodyclose
|
2022-03-21 11:14:25 +00:00
|
|
|
- containedctx
|
|
|
|
- contextcheck
|
|
|
|
- cyclop
|
|
|
|
- decorder
|
2021-01-09 14:49:19 +00:00
|
|
|
- errorlint
|
2022-03-21 11:14:25 +00:00
|
|
|
- exportloopref
|
|
|
|
- forbidigo
|
|
|
|
- forcetypeassert
|
2021-01-09 14:49:19 +00:00
|
|
|
- gocognit
|
|
|
|
- goconst
|
|
|
|
- gocritic
|
|
|
|
- gofmt
|
|
|
|
- goheader
|
|
|
|
- goimports
|
|
|
|
- gomnd
|
|
|
|
- gosec
|
|
|
|
- lll
|
|
|
|
- makezero
|
|
|
|
- misspell
|
|
|
|
- nakedret
|
|
|
|
- nestif
|
|
|
|
- nlreturn
|
|
|
|
- nolintlint
|
|
|
|
- predeclared
|
2022-03-21 11:14:25 +00:00
|
|
|
- revive
|
2021-01-09 14:49:19 +00:00
|
|
|
- rowserrcheck
|
|
|
|
- sqlclosecheck
|
|
|
|
- wrapcheck
|
|
|
|
- wsl
|