Merge pull request #867 from iawia002/fix-lint

Update .golangci.yml file to include comments check rule
This commit is contained in:
karmada-bot 2021-10-27 09:31:36 +08:00 committed by GitHub
commit 76ee54f2a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -56,4 +56,8 @@ linters-settings:
issues: issues:
# The list of ids of default excludes to include or disable. By default it's empty. # The list of ids of default excludes to include or disable. By default it's empty.
include: include:
- EXC0002 # disable excluding of issues about comments from golint # disable excluding of issues about comments from revive
# see https://golangci-lint.run/usage/configuration/#command-line-options for more info
- EXC0012
- EXC0013
- EXC0014

View File

@ -25,8 +25,9 @@ import (
) )
const ( const (
// FullyAppliedSuccessReason defines the name for the FullyAppliedSuccess condition.
FullyAppliedSuccessReason = "FullyAppliedSuccess" FullyAppliedSuccessReason = "FullyAppliedSuccess"
// FullyAppliedSuccessMessage defines the message for the FullyAppliedSuccess condition.
FullyAppliedSuccessMessage = "All works have been successfully applied" FullyAppliedSuccessMessage = "All works have been successfully applied"
) )