Skip to content

Commit 0177aae

Browse files
committed
chore(lint): enable mapKey rule from go-critic
Signed-off-by: Matthieu MOREL <[email protected]>
1 parent 114693d commit 0177aae

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.golangci.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ linters:
6363
- filepathJoin
6464
- hugeParam
6565
- importShadow
66-
- mapKey
6766
- paramTypeCombine
6867
- ptrToRefParam
6968
- rangeValCopy

util/git/git_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ func TestSameURL(t *testing.T) {
106106
"ssh://[email protected]/argoproj/test.git": "[email protected]:argoproj/test.git",
107107
"ssh://[email protected]/test.git": "[email protected]:test.git",
108108
"ssh://[email protected]/test": "[email protected]:test.git",
109-
" https://github.com/argoproj/test ": "https://github.com/argoproj/test.git",
109+
" https://github.com/argoproj/test ": "https://github.com/argoproj/test.git", //nolint:gocritic // This includes whitespaces for testing
110110
"\thttps://github.com/argoproj/test\n": "https://github.com/argoproj/test.git",
111111
"https://1234.visualstudio.com/myproj/_git/myrepo": "https://1234.visualstudio.com/myproj/_git/myrepo",
112112
"https://dev.azure.com/1234/myproj/_git/myrepo": "https://dev.azure.com/1234/myproj/_git/myrepo",

0 commit comments

Comments
 (0)