From 10f17e1eec1f3a9cde222b8975c3d1a9cf8caa06 Mon Sep 17 00:00:00 2001 From: iawia002 Date: Tue, 26 Oct 2021 11:01:43 +0800 Subject: [PATCH] Update .golangci.yml file to include comments check rule Signed-off-by: iawia002 --- .golangci.yml | 6 +++++- pkg/controllers/binding/common.go | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 16eba6de1..71b7aa86f 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -56,4 +56,8 @@ linters-settings: issues: # The list of ids of default excludes to include or disable. By default it's empty. 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 diff --git a/pkg/controllers/binding/common.go b/pkg/controllers/binding/common.go index e9866ddda..3bf92c191 100644 --- a/pkg/controllers/binding/common.go +++ b/pkg/controllers/binding/common.go @@ -25,8 +25,9 @@ import ( ) const ( + // FullyAppliedSuccessReason defines the name for the FullyAppliedSuccess condition. FullyAppliedSuccessReason = "FullyAppliedSuccess" - + // FullyAppliedSuccessMessage defines the message for the FullyAppliedSuccess condition. FullyAppliedSuccessMessage = "All works have been successfully applied" )