代码拉取完成,页面将自动刷新
run:
timeout: 5m
# https://golangci-lint.run/usage/linters
linters:
enable:
- whitespace
- gosec
- misspell
# - gomnd
# - revive
- gofmt
# - gofumpt
- goimports
- gci
- unconvert
- gosimple
- ineffassign
- asciicheck
- bodyclose
- bidichk
- prealloc
- predeclared
- unconvert
disable:
- unused
linters-settings:
govet:
disable:
- printf
gosec:
# To specify a set of rules to explicitly exclude.
# Available rules: https://github.com/securego/gosec#available-rules
# Default: []
excludes:
- G115
revive:
rules:
- name: exported
arguments:
- disableStutteringCheck
gci:
# Section configuration to compare against.
# Section names are case-insensitive and may contain parameters in ().
# Default: ["standard", "default"]
sections:
- standard # Captures all standard packages if they do not match another section.
- default # Contains all imports that could not be matched to another section type.
- prefix(periphery) # Groups all imports with the specified Prefix.
gofmt:
# simplify code: gofmt with `-s` option, true by default
simplify: true
goimports:
# put imports beginning with prefix after 3rd-party packages;
# it's a comma-separated list of prefixes
local-prefixes: periphery
predeclared:
# Comma-separated list of predeclared identifiers to not report on.
# Default: ""
ignore: "max,min,error"
# Include method names and field names (i.e., qualified names) in checks.
# Default: false
# q: false
issues:
include:
- EXC0012 # EXC0012 revive: Annoying issue about not having a comment. The rare codebase has such comments
- EXC0014 # EXC0014 revive: Annoying issue about not having a comment. The rare codebase has such comments
exclude-dirs:
- test
- ci
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。