Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
webconsole
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pqc-free5gc
webconsole
Commits
539dfe2a
Unverified
Commit
539dfe2a
authored
10 months ago
by
CTFang@WireLab
Browse files
Options
Downloads
Patches
Plain Diff
fix: remove unused setting in golangci.yml
parent
92b7e4be
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.golangci.yml
+26
-38
26 additions, 38 deletions
.golangci.yml
with
26 additions
and
38 deletions
.golangci.yml
+
26
−
38
View file @
539dfe2a
...
...
@@ -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
:
i
gnore
-
dupl
severity
:
i
nfo
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment