File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -811,6 +811,9 @@ linters:
811811 # Detects multiple imports of the same package under different aliases.
812812 # https://go-critic.com/overview.html#dupimport
813813 - dupImport
814+ # Detects duplicated option function arguments in variadic function calls.
815+ # https://go-critic.com/overview.html#dupoption
816+ - dupOption
814817 # Detects suspicious duplicated sub-expressions.
815818 # https://go-critic.com/overview.html#dupsubexpr
816819 - dupSubExpr
@@ -1045,6 +1048,9 @@ linters:
10451048 # Detects Yoda style expressions and suggests to replace them.
10461049 # https://go-critic.com/overview.html#yodastyleexpr
10471050 - yodaStyleExpr
1051+ # Detects bytes.Repeat with 0 value.
1052+ # https://go-critic.com/overview.html#zerobyterepeat
1053+ - zeroByteRepeat
10481054
10491055 # Enable all checks.
10501056 # Default: false
Original file line number Diff line number Diff line change 3232 " dupBranchBody" ,
3333 " dupCase" ,
3434 " dupImport" ,
35+ " dupOption" ,
3536 " dupSubExpr" ,
3637 " dynamicFmtString" ,
3738 " elseif" ,
5354 " importShadow" ,
5455 " indexAlloc" ,
5556 " initClause" ,
56- " ioutilDeprecated" ,
5757 " mapKey" ,
5858 " methodExprCall" ,
5959 " nestingReduce" ,
110110 " weakCond" ,
111111 " whyNoLint" ,
112112 " wrapperFunc" ,
113- " yodaStyleExpr"
113+ " yodaStyleExpr" ,
114+ " zeroByteRepeat"
114115 ]
115116 },
116117 "gocritic-tags" : {
You can’t perform that action at this time.
0 commit comments