Skip to content
Snippets Groups Projects
Unverified Commit 539dfe2a authored by CTFang@WireLab's avatar CTFang@WireLab
Browse files

fix: remove unused setting in golangci.yml

parent 92b7e4be
No related branches found
No related tags found
No related merge requests found
......@@ -146,18 +146,6 @@ linters-settings:
# simplify code: gofmt with `-s` option, true by default
simplify: true
# TODO
# golint:
# # minimal confidence for issues, default is 0.8
# min-confidence: 0.8
# TODO
# gomnd:
# settings:
# mnd:
# # the list of enabled checks, see https://github.com/tommy-muehle/go-mnd/#checks for description.
# checks: argument,case,condition,operation,return,assign
govet:
enable-all: false
# enable or disable analyzers by name
......@@ -198,11 +186,6 @@ linters-settings:
line-length: 120
# tab width in spaces. Default to 1.
tab-width: 1
# Deprecate
# maligned:
# # print struct with more effective memory layout or not, false by default
# suggest-new: true
nakedret:
# make an issue if func has more lines of code than this setting and it has naked returns; default is 30
......@@ -289,14 +272,7 @@ linters:
- dogsled
- bodyclose
- asciicheck
# - structcheck # Deprecate
# - varcheck # Deprecate
# - deadcode # Deprecate
# - gomnd
# - maligned
# - stylecheck
# - unparam
- dupl
# Enable only fast linters from enabled linters set (first run won't be fast)
# Default: false
......@@ -338,25 +314,37 @@ issues:
new-from-rev: ""
# Show only new issues created in git patch with set file path.
#new-from-patch: path/to/patch/file
severity:
# Default value is empty string.
# Set the default severity for issues. If severity rules are defined and the issues
# do not match or no severity is provided to the rule this will be the default
# severity applied. Severities should match the supported severity names of the
# selected out format.
# Set the default severity for issues.
#
# If severity rules are defined and the issues do not match or no severity is provided to the rule
# this will be the default severity applied.
# Severities should match the supported severity names of the selected out format.
# - Code climate: https://docs.codeclimate.com/docs/issues#issue-severity
# - Checkstyle: https://checkstyle.sourceforge.io/property_types.html#severity
# - Github: https://help.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-error-message
# - Checkstyle: https://checkstyle.sourceforge.io/property_types.html#SeverityLevel
# - GitHub: https://help.github.com/en/actions/reference/workflow-commands-for-github-actions#setting-an-error-message
# - TeamCity: https://www.jetbrains.com/help/teamcity/service-messages.html#Inspection+Instance
#
# `@linter` can be used as severity value to keep the severity from linters (e.g. revive, gosec, ...)
#
# Default: ""
default-severity: error
# The default value is false.
# If set to true severity-rules regular expressions become case sensitive.
case-sensitive: false
# Default value is empty list.
# When a list of severity rules are provided, severity information will be added to lint
# issues. Severity rules have the same filtering capability as exclude rules except you
# are allowed to specify one matcher per severity rule.
# When a list of severity rules are provided, severity information will be added to lint issues.
# Severity rules have the same filtering capability as exclude rules
# except you are allowed to specify one matcher per severity rule.
#
# `@linter` can be used as severity value to keep the severity from linters (e.g. revive, gosec, ...)
#
# Only affects out formats that support setting severity information.
#
# Default: []
rules:
- linters:
- gomnd
severity: ignore
- dupl
severity: info
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment