Skip to content

Commit 0b82f0b

Browse files
authored
Merge pull request #5 from andyzhangx/golint-check
test: Enable golint check in travis
2 parents 48e551f + f725257 commit 0b82f0b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

hack/verify-all.sh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ readonly PKG_ROOT="$(git rev-parse --show-toplevel)"
2020

2121
${PKG_ROOT}/hack/verify-gofmt.sh
2222
${PKG_ROOT}/hack/verify-govet.sh
23-
# disable due to travis issue
24-
#${PKG_ROOT}/hack/verify-golint.sh
23+
${PKG_ROOT}/hack/verify-golint.sh
2524
${PKG_ROOT}/hack/verify-yamllint.sh
2625
${PKG_ROOT}/hack/verify-boilerplate.sh
2726
${PKG_ROOT}/hack/verify-spelling.sh

pkg/smb/nodeserver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func (d *Driver) NodeUnpublishVolume(ctx context.Context, req *csi.NodeUnpublish
119119
// NodeStageVolume mount the volume to a staging path
120120
func (d *Driver) NodeStageVolume(ctx context.Context, req *csi.NodeStageVolumeRequest) (*csi.NodeStageVolumeResponse, error) {
121121
// regex to mask username and password in log messages
122-
var reqSecretsRegex, _ = regexp.Compile("map\\[password:.*? ")
122+
var reqSecretsRegex, _ = regexp.Compile(`map\[password:.*? `)
123123
s := fmt.Sprintf("NodeStageVolume called with request %v", *req)
124124
klog.V(5).Info(reqSecretsRegex.ReplaceAllString(s, "map[password:**** "))
125125

0 commit comments

Comments
 (0)