60 lines
1.1 KiB
TOML
60 lines
1.1 KiB
TOML
# SPDX-FileCopyrightText: 2023 Hoang Nguyen <folliekazetani@protonmail.com>
|
|
#
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
[linters]
|
|
disable-all = true
|
|
enable = [
|
|
"bodyclose",
|
|
"dogsled",
|
|
"dupl",
|
|
"errcheck",
|
|
"exhaustive",
|
|
"exportloopref",
|
|
"funlen",
|
|
"goconst",
|
|
"gofumpt",
|
|
"goimports",
|
|
"gomnd",
|
|
"goprintffuncname",
|
|
"gosec",
|
|
"gosimple",
|
|
"govet",
|
|
"ineffassign",
|
|
"lll",
|
|
"misspell",
|
|
"nakedret",
|
|
"noctx",
|
|
"nolintlint",
|
|
"revive",
|
|
"staticcheck",
|
|
"stylecheck",
|
|
"typecheck",
|
|
"unconvert",
|
|
"unparam",
|
|
"unused",
|
|
"whitespace",
|
|
]
|
|
|
|
[linters-settings]
|
|
[linters-settings.errcheck]
|
|
check-type-assertions = true
|
|
[linters-settings.funlen]
|
|
lines = 100
|
|
statements = 50
|
|
[linters-settings.gofumpt]
|
|
extra-rules = true
|
|
[linters-settings.goimports]
|
|
local-prefixes = "gitlab.com/FollieHiyuki/cuelumi"
|
|
[linters-settings.govet]
|
|
check-shadowing = true
|
|
[linters-settings.misspell]
|
|
locale = "US"
|
|
[linters-settings.nolintlint]
|
|
require-explanation = true
|
|
|
|
[output]
|
|
sort-results = true
|
|
|
|
[run]
|
|
timeout = "15m"
|