From 539dfe2a5c353e81145a1efd683103c8e24b6d6a Mon Sep 17 00:00:00 2001 From: "CTFang@WireLab" <ctfang.cs12@nycu.edu.tw> Date: Thu, 16 May 2024 06:39:42 +0000 Subject: [PATCH] fix: remove unused setting in golangci.yml --- .golangci.yml | 64 +++++++++++++++++++++------------------------------ 1 file changed, 26 insertions(+), 38 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index a642306..b2bd7d2 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -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 -- GitLab