diff --git a/rule/add-constant.go b/rule/add-constant.go index 81f4e8f10..c5ae8787b 100644 --- a/rule/add-constant.go +++ b/rule/add-constant.go @@ -63,7 +63,7 @@ func (r *AddConstantRule) Apply(file *lint.File, arguments lint.Arguments) []lin } // Name returns the rule name. -func (r *AddConstantRule) Name() string { +func (*AddConstantRule) Name() string { return "add-constant" } diff --git a/rule/argument-limit.go b/rule/argument-limit.go index 59269b9ec..a78306843 100644 --- a/rule/argument-limit.go +++ b/rule/argument-limit.go @@ -53,7 +53,7 @@ func (r *ArgumentsLimitRule) Apply(file *lint.File, arguments lint.Arguments) [] } // Name returns the rule name. -func (r *ArgumentsLimitRule) Name() string { +func (*ArgumentsLimitRule) Name() string { return "argument-limit" } diff --git a/rule/atomic.go b/rule/atomic.go index f2d06f1cd..76a9db0bc 100644 --- a/rule/atomic.go +++ b/rule/atomic.go @@ -27,7 +27,7 @@ func (r *AtomicRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failure { } // Name returns the rule name. -func (r *AtomicRule) Name() string { +func (*AtomicRule) Name() string { return "atomic" } diff --git a/rule/banned-characters.go b/rule/banned-characters.go index 8ad47dead..62196603d 100644 --- a/rule/banned-characters.go +++ b/rule/banned-characters.go @@ -45,7 +45,7 @@ func (r *BannedCharsRule) Apply(file *lint.File, arguments lint.Arguments) []lin } // Name returns the rule name -func (r *BannedCharsRule) Name() string { +func (*BannedCharsRule) Name() string { return bannedCharsRuleName } diff --git a/rule/bare-return.go b/rule/bare-return.go index 16dcd7d1c..7d6fddd14 100644 --- a/rule/bare-return.go +++ b/rule/bare-return.go @@ -23,7 +23,7 @@ func (r *BareReturnRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failure } // Name returns the rule name. -func (r *BareReturnRule) Name() string { +func (*BareReturnRule) Name() string { return "bare-return" } diff --git a/rule/blank-imports.go b/rule/blank-imports.go index be706c369..6c84a4711 100644 --- a/rule/blank-imports.go +++ b/rule/blank-imports.go @@ -11,7 +11,7 @@ import ( type BlankImportsRule struct{} // Name returns the rule name. -func (r *BlankImportsRule) Name() string { +func (*BlankImportsRule) Name() string { return "blank-imports" } diff --git a/rule/bool-literal-in-expr.go b/rule/bool-literal-in-expr.go index 60cd420d4..2c22c27a5 100644 --- a/rule/bool-literal-in-expr.go +++ b/rule/bool-literal-in-expr.go @@ -26,7 +26,7 @@ func (r *BoolLiteralRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failur } // Name returns the rule name. -func (r *BoolLiteralRule) Name() string { +func (*BoolLiteralRule) Name() string { return "bool-literal-in-expr" } diff --git a/rule/call-to-gc.go b/rule/call-to-gc.go index e4870a12f..15f6b9009 100644 --- a/rule/call-to-gc.go +++ b/rule/call-to-gc.go @@ -27,7 +27,7 @@ func (r *CallToGCRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failure { } // Name returns the rule name. -func (r *CallToGCRule) Name() string { +func (*CallToGCRule) Name() string { return "call-to-gc" } diff --git a/rule/cognitive-complexity.go b/rule/cognitive-complexity.go index 424ec71f0..a851d8a14 100644 --- a/rule/cognitive-complexity.go +++ b/rule/cognitive-complexity.go @@ -56,7 +56,7 @@ func (r *CognitiveComplexityRule) Apply(file *lint.File, arguments lint.Argument } // Name returns the rule name. -func (r *CognitiveComplexityRule) Name() string { +func (*CognitiveComplexityRule) Name() string { return "cognitive-complexity" } diff --git a/rule/comment-spacings.go b/rule/comment-spacings.go index ffa0bb908..2b8240ca5 100644 --- a/rule/comment-spacings.go +++ b/rule/comment-spacings.go @@ -76,7 +76,7 @@ func (r *CommentSpacingsRule) Apply(file *lint.File, args lint.Arguments) []lint } // Name yields this rule name. -func (r *CommentSpacingsRule) Name() string { +func (*CommentSpacingsRule) Name() string { return "comment-spacings" } diff --git a/rule/confusing-naming.go b/rule/confusing-naming.go index 2095c0a25..02b082168 100644 --- a/rule/confusing-naming.go +++ b/rule/confusing-naming.go @@ -65,7 +65,7 @@ func (r *ConfusingNamingRule) Apply(file *lint.File, _ lint.Arguments) []lint.Fa } // Name returns the rule name. -func (r *ConfusingNamingRule) Name() string { +func (*ConfusingNamingRule) Name() string { return "confusing-naming" } diff --git a/rule/confusing-results.go b/rule/confusing-results.go index 85833084c..7430ce0ba 100644 --- a/rule/confusing-results.go +++ b/rule/confusing-results.go @@ -26,7 +26,7 @@ func (r *ConfusingResultsRule) Apply(file *lint.File, _ lint.Arguments) []lint.F } // Name returns the rule name. -func (r *ConfusingResultsRule) Name() string { +func (*ConfusingResultsRule) Name() string { return "confusing-results" } diff --git a/rule/constant-logical-expr.go b/rule/constant-logical-expr.go index 96d34e893..be2f242b6 100644 --- a/rule/constant-logical-expr.go +++ b/rule/constant-logical-expr.go @@ -25,7 +25,7 @@ func (r *ConstantLogicalExprRule) Apply(file *lint.File, _ lint.Arguments) []lin } // Name returns the rule name. -func (r *ConstantLogicalExprRule) Name() string { +func (*ConstantLogicalExprRule) Name() string { return "constant-logical-expr" } diff --git a/rule/context-as-argument.go b/rule/context-as-argument.go index 2c7b89330..e0c8cfa5e 100644 --- a/rule/context-as-argument.go +++ b/rule/context-as-argument.go @@ -39,7 +39,7 @@ func (r *ContextAsArgumentRule) Apply(file *lint.File, args lint.Arguments) []li } // Name returns the rule name. -func (r *ContextAsArgumentRule) Name() string { +func (*ContextAsArgumentRule) Name() string { return "context-as-argument" } diff --git a/rule/context-keys-type.go b/rule/context-keys-type.go index 76b9f4adb..59c59e977 100644 --- a/rule/context-keys-type.go +++ b/rule/context-keys-type.go @@ -31,7 +31,7 @@ func (c *ContextKeysType) Apply(file *lint.File, _ lint.Arguments) []lint.Failur } // Name returns the rule name. -func (c *ContextKeysType) Name() string { +func (*ContextKeysType) Name() string { return "context-keys-type" } diff --git a/rule/cyclomatic.go b/rule/cyclomatic.go index 65da5fbbf..9f6d50043 100644 --- a/rule/cyclomatic.go +++ b/rule/cyclomatic.go @@ -57,7 +57,7 @@ func (r *CyclomaticRule) Apply(file *lint.File, arguments lint.Arguments) []lint } // Name returns the rule name. -func (r *CyclomaticRule) Name() string { +func (*CyclomaticRule) Name() string { return "cyclomatic" } diff --git a/rule/datarace.go b/rule/datarace.go index 091c6f0b2..1ea768db8 100644 --- a/rule/datarace.go +++ b/rule/datarace.go @@ -24,7 +24,7 @@ func (r *DataRaceRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failure { } // Name returns the rule name. -func (r *DataRaceRule) Name() string { +func (*DataRaceRule) Name() string { return "datarace" } diff --git a/rule/deep-exit.go b/rule/deep-exit.go index cfc8fc570..a593d3a3b 100644 --- a/rule/deep-exit.go +++ b/rule/deep-exit.go @@ -36,7 +36,7 @@ func (r *DeepExitRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failure { } // Name returns the rule name. -func (r *DeepExitRule) Name() string { +func (*DeepExitRule) Name() string { return "deep-exit" } diff --git a/rule/defer.go b/rule/defer.go index 21e452c63..12cc2c35d 100644 --- a/rule/defer.go +++ b/rule/defer.go @@ -38,7 +38,7 @@ func (r *DeferRule) Apply(file *lint.File, arguments lint.Arguments) []lint.Fail } // Name returns the rule name. -func (r *DeferRule) Name() string { +func (*DeferRule) Name() string { return "defer" } diff --git a/rule/dot-imports.go b/rule/dot-imports.go index 0b60c8439..6b877677d 100644 --- a/rule/dot-imports.go +++ b/rule/dot-imports.go @@ -36,7 +36,7 @@ func (r *DotImportsRule) Apply(file *lint.File, arguments lint.Arguments) []lint } // Name returns the rule name. -func (r *DotImportsRule) Name() string { +func (*DotImportsRule) Name() string { return "dot-imports" } diff --git a/rule/duplicated-imports.go b/rule/duplicated-imports.go index 485b6a2ea..e1b8c05d3 100644 --- a/rule/duplicated-imports.go +++ b/rule/duplicated-imports.go @@ -34,6 +34,6 @@ func (r *DuplicatedImportsRule) Apply(file *lint.File, _ lint.Arguments) []lint. } // Name returns the rule name. -func (r *DuplicatedImportsRule) Name() string { +func (*DuplicatedImportsRule) Name() string { return "duplicated-imports" } diff --git a/rule/early-return.go b/rule/early-return.go index 74c8ebe8e..90a0acc55 100644 --- a/rule/early-return.go +++ b/rule/early-return.go @@ -17,7 +17,7 @@ func (e *EarlyReturnRule) Apply(file *lint.File, args lint.Arguments) []lint.Fai } // Name returns the rule name. -func (e *EarlyReturnRule) Name() string { +func (*EarlyReturnRule) Name() string { return "early-return" } diff --git a/rule/empty-block.go b/rule/empty-block.go index cedc35360..f6fc4f991 100644 --- a/rule/empty-block.go +++ b/rule/empty-block.go @@ -23,7 +23,7 @@ func (r *EmptyBlockRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failure } // Name returns the rule name. -func (r *EmptyBlockRule) Name() string { +func (*EmptyBlockRule) Name() string { return "empty-block" } diff --git a/rule/empty-lines.go b/rule/empty-lines.go index 3baa05f6f..bf4db169f 100644 --- a/rule/empty-lines.go +++ b/rule/empty-lines.go @@ -24,7 +24,7 @@ func (r *EmptyLinesRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failure } // Name returns the rule name. -func (r *EmptyLinesRule) Name() string { +func (*EmptyLinesRule) Name() string { return "empty-lines" } diff --git a/rule/enforce-map-style.go b/rule/enforce-map-style.go index 7618ed30d..36ac2374c 100644 --- a/rule/enforce-map-style.go +++ b/rule/enforce-map-style.go @@ -141,7 +141,7 @@ func (r *EnforceMapStyleRule) Apply(file *lint.File, arguments lint.Arguments) [ } // Name returns the rule name. -func (r *EnforceMapStyleRule) Name() string { +func (*EnforceMapStyleRule) Name() string { return "enforce-map-style" } diff --git a/rule/enforce-slice-style.go b/rule/enforce-slice-style.go index b3611d51a..abaf20be0 100644 --- a/rule/enforce-slice-style.go +++ b/rule/enforce-slice-style.go @@ -165,7 +165,7 @@ func (r *EnforceSliceStyleRule) Apply(file *lint.File, arguments lint.Arguments) } // Name returns the rule name. -func (r *EnforceSliceStyleRule) Name() string { +func (*EnforceSliceStyleRule) Name() string { return "enforce-slice-style" } diff --git a/rule/error-naming.go b/rule/error-naming.go index 3a1080625..b014f0d8b 100644 --- a/rule/error-naming.go +++ b/rule/error-naming.go @@ -31,7 +31,7 @@ func (r *ErrorNamingRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failur } // Name returns the rule name. -func (r *ErrorNamingRule) Name() string { +func (*ErrorNamingRule) Name() string { return "error-naming" } diff --git a/rule/error-return.go b/rule/error-return.go index 737d8c66f..2116061c7 100644 --- a/rule/error-return.go +++ b/rule/error-return.go @@ -28,7 +28,7 @@ func (r *ErrorReturnRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failur } // Name returns the rule name. -func (r *ErrorReturnRule) Name() string { +func (*ErrorReturnRule) Name() string { return "error-return" } diff --git a/rule/error-strings.go b/rule/error-strings.go index ea898fe0e..0c8539dd6 100644 --- a/rule/error-strings.go +++ b/rule/error-strings.go @@ -78,7 +78,7 @@ func (r *ErrorStringsRule) Apply(file *lint.File, arguments lint.Arguments) []li } // Name returns the rule name. -func (r *ErrorStringsRule) Name() string { +func (*ErrorStringsRule) Name() string { return "error-strings" } diff --git a/rule/errorf.go b/rule/errorf.go index 1bffbab5b..679c1755d 100644 --- a/rule/errorf.go +++ b/rule/errorf.go @@ -32,7 +32,7 @@ func (r *ErrorfRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failure { } // Name returns the rule name. -func (r *ErrorfRule) Name() string { +func (*ErrorfRule) Name() string { return "errorf" } diff --git a/rule/exported.go b/rule/exported.go index 9fa5a73a9..b8663c48c 100644 --- a/rule/exported.go +++ b/rule/exported.go @@ -66,7 +66,7 @@ func (r *ExportedRule) Apply(file *lint.File, args lint.Arguments) []lint.Failur } // Name returns the rule name. -func (r *ExportedRule) Name() string { +func (*ExportedRule) Name() string { return "exported" } diff --git a/rule/file-header.go b/rule/file-header.go index ed3a71263..a7d69ff2b 100644 --- a/rule/file-header.go +++ b/rule/file-header.go @@ -82,6 +82,6 @@ func (r *FileHeaderRule) Apply(file *lint.File, arguments lint.Arguments) []lint } // Name returns the rule name. -func (r *FileHeaderRule) Name() string { +func (*FileHeaderRule) Name() string { return "file-header" } diff --git a/rule/flag-param.go b/rule/flag-param.go index 7ada0be17..30dbe12f5 100644 --- a/rule/flag-param.go +++ b/rule/flag-param.go @@ -24,7 +24,7 @@ func (r *FlagParamRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failure } // Name returns the rule name. -func (r *FlagParamRule) Name() string { +func (*FlagParamRule) Name() string { return "flag-parameter" } diff --git a/rule/function-length.go b/rule/function-length.go index 16e1e3990..0c44886ff 100644 --- a/rule/function-length.go +++ b/rule/function-length.go @@ -49,7 +49,7 @@ func (r *FunctionLength) Apply(file *lint.File, arguments lint.Arguments) []lint } // Name returns the rule name. -func (r *FunctionLength) Name() string { +func (*FunctionLength) Name() string { return "function-length" } diff --git a/rule/function-result-limit.go b/rule/function-result-limit.go index 1c2b639f7..6a0748011 100644 --- a/rule/function-result-limit.go +++ b/rule/function-result-limit.go @@ -54,7 +54,7 @@ func (r *FunctionResultsLimitRule) Apply(file *lint.File, arguments lint.Argumen } // Name returns the rule name. -func (r *FunctionResultsLimitRule) Name() string { +func (*FunctionResultsLimitRule) Name() string { return "function-result-limit" } diff --git a/rule/get-return.go b/rule/get-return.go index 494ab6669..a6b47e0ee 100644 --- a/rule/get-return.go +++ b/rule/get-return.go @@ -25,7 +25,7 @@ func (r *GetReturnRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failure } // Name returns the rule name. -func (r *GetReturnRule) Name() string { +func (*GetReturnRule) Name() string { return "get-return" } diff --git a/rule/identical-branches.go b/rule/identical-branches.go index cad41fe43..43c0ace24 100644 --- a/rule/identical-branches.go +++ b/rule/identical-branches.go @@ -24,7 +24,7 @@ func (r *IdenticalBranchesRule) Apply(file *lint.File, _ lint.Arguments) []lint. } // Name returns the rule name. -func (r *IdenticalBranchesRule) Name() string { +func (*IdenticalBranchesRule) Name() string { return "identical-branches" } diff --git a/rule/if-return.go b/rule/if-return.go index c275d2766..91c5373cf 100644 --- a/rule/if-return.go +++ b/rule/if-return.go @@ -26,7 +26,7 @@ func (r *IfReturnRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failure { } // Name returns the rule name. -func (r *IfReturnRule) Name() string { +func (*IfReturnRule) Name() string { return "if-return" } diff --git a/rule/import-alias-naming.go b/rule/import-alias-naming.go index b79d59c3c..a6d096c8b 100644 --- a/rule/import-alias-naming.go +++ b/rule/import-alias-naming.go @@ -95,7 +95,7 @@ func (r *ImportAliasNamingRule) Apply(file *lint.File, arguments lint.Arguments) } // Name returns the rule name. -func (r *ImportAliasNamingRule) Name() string { +func (*ImportAliasNamingRule) Name() string { return "import-alias-naming" } diff --git a/rule/import-shadowing.go b/rule/import-shadowing.go index 18ae25711..ad530f61a 100644 --- a/rule/import-shadowing.go +++ b/rule/import-shadowing.go @@ -38,7 +38,7 @@ func (r *ImportShadowingRule) Apply(file *lint.File, _ lint.Arguments) []lint.Fa } // Name returns the rule name. -func (r *ImportShadowingRule) Name() string { +func (*ImportShadowingRule) Name() string { return "import-shadowing" } diff --git a/rule/imports-blacklist.go b/rule/imports-blacklist.go index ed585ebe9..bb8262cae 100644 --- a/rule/imports-blacklist.go +++ b/rule/imports-blacklist.go @@ -68,6 +68,6 @@ func (r *ImportsBlacklistRule) Apply(file *lint.File, arguments lint.Arguments) } // Name returns the rule name. -func (r *ImportsBlacklistRule) Name() string { +func (*ImportsBlacklistRule) Name() string { return "imports-blacklist" } diff --git a/rule/increment-decrement.go b/rule/increment-decrement.go index 9bd87f167..2b188ea48 100644 --- a/rule/increment-decrement.go +++ b/rule/increment-decrement.go @@ -29,7 +29,7 @@ func (r *IncrementDecrementRule) Apply(file *lint.File, _ lint.Arguments) []lint } // Name returns the rule name. -func (r *IncrementDecrementRule) Name() string { +func (*IncrementDecrementRule) Name() string { return "increment-decrement" } diff --git a/rule/indent-error-flow.go b/rule/indent-error-flow.go index d3ae57300..def7026e9 100644 --- a/rule/indent-error-flow.go +++ b/rule/indent-error-flow.go @@ -14,7 +14,7 @@ func (r *IndentErrorFlowRule) Apply(file *lint.File, args lint.Arguments) []lint } // Name returns the rule name. -func (r *IndentErrorFlowRule) Name() string { +func (*IndentErrorFlowRule) Name() string { return "indent-error-flow" } diff --git a/rule/line-length-limit.go b/rule/line-length-limit.go index 7fa5266c3..1a414f691 100644 --- a/rule/line-length-limit.go +++ b/rule/line-length-limit.go @@ -58,7 +58,7 @@ func (r *LineLengthLimitRule) Apply(file *lint.File, arguments lint.Arguments) [ } // Name returns the rule name. -func (r *LineLengthLimitRule) Name() string { +func (*LineLengthLimitRule) Name() string { return "line-length-limit" } diff --git a/rule/max-public-structs.go b/rule/max-public-structs.go index fe7c03ba6..25be3e676 100644 --- a/rule/max-public-structs.go +++ b/rule/max-public-structs.go @@ -65,7 +65,7 @@ func (r *MaxPublicStructsRule) Apply(file *lint.File, arguments lint.Arguments) } // Name returns the rule name. -func (r *MaxPublicStructsRule) Name() string { +func (*MaxPublicStructsRule) Name() string { return "max-public-structs" } diff --git a/rule/modifies-param.go b/rule/modifies-param.go index 55136e6c8..d8bf2e052 100644 --- a/rule/modifies-param.go +++ b/rule/modifies-param.go @@ -24,7 +24,7 @@ func (r *ModifiesParamRule) Apply(file *lint.File, _ lint.Arguments) []lint.Fail } // Name returns the rule name. -func (r *ModifiesParamRule) Name() string { +func (*ModifiesParamRule) Name() string { return "modifies-parameter" } diff --git a/rule/modifies-value-receiver.go b/rule/modifies-value-receiver.go index 9c87059b4..c55d863e7 100644 --- a/rule/modifies-value-receiver.go +++ b/rule/modifies-value-receiver.go @@ -26,7 +26,7 @@ func (r *ModifiesValRecRule) Apply(file *lint.File, _ lint.Arguments) []lint.Fai } // Name returns the rule name. -func (r *ModifiesValRecRule) Name() string { +func (*ModifiesValRecRule) Name() string { return "modifies-value-receiver" } diff --git a/rule/nested-structs.go b/rule/nested-structs.go index 117da81d6..191f36e70 100644 --- a/rule/nested-structs.go +++ b/rule/nested-structs.go @@ -25,7 +25,7 @@ func (r *NestedStructs) Apply(file *lint.File, _ lint.Arguments) []lint.Failure } // Name returns the rule name. -func (r *NestedStructs) Name() string { +func (*NestedStructs) Name() string { return "nested-structs" } diff --git a/rule/optimize-operands-order.go b/rule/optimize-operands-order.go index 77e8bb251..7a45df076 100644 --- a/rule/optimize-operands-order.go +++ b/rule/optimize-operands-order.go @@ -26,7 +26,7 @@ func (r *OptimizeOperandsOrderRule) Apply(file *lint.File, _ lint.Arguments) []l } // Name returns the rule name. -func (r *OptimizeOperandsOrderRule) Name() string { +func (*OptimizeOperandsOrderRule) Name() string { return "optimize-operands-order" } diff --git a/rule/package-comments.go b/rule/package-comments.go index 7c6c92c97..02f246be0 100644 --- a/rule/package-comments.go +++ b/rule/package-comments.go @@ -38,7 +38,7 @@ func (r *PackageCommentsRule) Apply(file *lint.File, _ lint.Arguments) []lint.Fa } // Name returns the rule name. -func (r *PackageCommentsRule) Name() string { +func (*PackageCommentsRule) Name() string { return "package-comments" } diff --git a/rule/range-val-address.go b/rule/range-val-address.go index 1412955df..b3e189872 100644 --- a/rule/range-val-address.go +++ b/rule/range-val-address.go @@ -30,7 +30,7 @@ func (r *RangeValAddress) Apply(file *lint.File, _ lint.Arguments) []lint.Failur } // Name returns the rule name. -func (r *RangeValAddress) Name() string { +func (*RangeValAddress) Name() string { return "range-val-address" } diff --git a/rule/range-val-in-closure.go b/rule/range-val-in-closure.go index d961271e1..0b229517e 100644 --- a/rule/range-val-in-closure.go +++ b/rule/range-val-in-closure.go @@ -26,7 +26,7 @@ func (r *RangeValInClosureRule) Apply(file *lint.File, _ lint.Arguments) []lint. } // Name returns the rule name. -func (r *RangeValInClosureRule) Name() string { +func (*RangeValInClosureRule) Name() string { return "range-val-in-closure" } diff --git a/rule/range.go b/rule/range.go index d18492c71..cb26d1afe 100644 --- a/rule/range.go +++ b/rule/range.go @@ -25,7 +25,7 @@ func (r *RangeRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failure { } // Name returns the rule name. -func (r *RangeRule) Name() string { +func (*RangeRule) Name() string { return "range" } diff --git a/rule/receiver-naming.go b/rule/receiver-naming.go index d2d78858d..5ebfed433 100644 --- a/rule/receiver-naming.go +++ b/rule/receiver-naming.go @@ -29,7 +29,7 @@ func (r *ReceiverNamingRule) Apply(file *lint.File, _ lint.Arguments) []lint.Fai } // Name returns the rule name. -func (r *ReceiverNamingRule) Name() string { +func (*ReceiverNamingRule) Name() string { return "receiver-naming" } diff --git a/rule/redefines-builtin-id.go b/rule/redefines-builtin-id.go index 1875a3c1c..7a7fd770f 100644 --- a/rule/redefines-builtin-id.go +++ b/rule/redefines-builtin-id.go @@ -76,7 +76,7 @@ func (r *RedefinesBuiltinIDRule) Apply(file *lint.File, _ lint.Arguments) []lint } // Name returns the rule name. -func (r *RedefinesBuiltinIDRule) Name() string { +func (*RedefinesBuiltinIDRule) Name() string { return "redefines-builtin-id" } diff --git a/rule/redundant-import-alias.go b/rule/redundant-import-alias.go index 2039b6100..928994a8c 100644 --- a/rule/redundant-import-alias.go +++ b/rule/redundant-import-alias.go @@ -34,7 +34,7 @@ func (r *RedundantImportAlias) Apply(file *lint.File, _ lint.Arguments) []lint.F } // Name returns the rule name. -func (r *RedundantImportAlias) Name() string { +func (*RedundantImportAlias) Name() string { return "redundant-import-alias" } diff --git a/rule/string-format.go b/rule/string-format.go index f1d90adcc..0f61aef80 100644 --- a/rule/string-format.go +++ b/rule/string-format.go @@ -31,7 +31,7 @@ func (r *StringFormatRule) Apply(file *lint.File, arguments lint.Arguments) []li } // Name returns the rule name. -func (r *StringFormatRule) Name() string { +func (*StringFormatRule) Name() string { return "string-format" } diff --git a/rule/string-of-int.go b/rule/string-of-int.go index f9fe5a450..1c2330216 100644 --- a/rule/string-of-int.go +++ b/rule/string-of-int.go @@ -28,7 +28,7 @@ func (r *StringOfIntRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failur } // Name returns the rule name. -func (r *StringOfIntRule) Name() string { +func (*StringOfIntRule) Name() string { return "string-of-int" } diff --git a/rule/struct-tag.go b/rule/struct-tag.go index 4cbc12ac3..0b69a610b 100644 --- a/rule/struct-tag.go +++ b/rule/struct-tag.go @@ -61,7 +61,7 @@ func (r *StructTagRule) Apply(file *lint.File, args lint.Arguments) []lint.Failu } // Name returns the rule name. -func (r *StructTagRule) Name() string { +func (*StructTagRule) Name() string { return "struct-tag" } diff --git a/rule/superfluous-else.go b/rule/superfluous-else.go index 499a3ca6b..93fa73f71 100644 --- a/rule/superfluous-else.go +++ b/rule/superfluous-else.go @@ -15,7 +15,7 @@ func (r *SuperfluousElseRule) Apply(file *lint.File, args lint.Arguments) []lint } // Name returns the rule name. -func (r *SuperfluousElseRule) Name() string { +func (*SuperfluousElseRule) Name() string { return "superfluous-else" } diff --git a/rule/time-equal.go b/rule/time-equal.go index 08a3da153..c5bad43d5 100644 --- a/rule/time-equal.go +++ b/rule/time-equal.go @@ -29,7 +29,7 @@ func (r *TimeEqualRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failure } // Name returns the rule name. -func (r *TimeEqualRule) Name() string { +func (*TimeEqualRule) Name() string { return "time-equal" } diff --git a/rule/time-naming.go b/rule/time-naming.go index 24a612e4d..ead25a649 100644 --- a/rule/time-naming.go +++ b/rule/time-naming.go @@ -28,7 +28,7 @@ func (r *TimeNamingRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failure } // Name returns the rule name. -func (r *TimeNamingRule) Name() string { +func (*TimeNamingRule) Name() string { return "time-naming" } diff --git a/rule/unchecked-type-assertion.go b/rule/unchecked-type-assertion.go index b86923fca..df27743cb 100644 --- a/rule/unchecked-type-assertion.go +++ b/rule/unchecked-type-assertion.go @@ -67,7 +67,7 @@ func (u *UncheckedTypeAssertionRule) Apply(file *lint.File, args lint.Arguments) } // Name returns the rule name. -func (u *UncheckedTypeAssertionRule) Name() string { +func (*UncheckedTypeAssertionRule) Name() string { return "unchecked-type-assertion" } diff --git a/rule/unconditional-recursion.go b/rule/unconditional-recursion.go index 463613045..bfb03a4d5 100644 --- a/rule/unconditional-recursion.go +++ b/rule/unconditional-recursion.go @@ -23,7 +23,7 @@ func (r *UnconditionalRecursionRule) Apply(file *lint.File, _ lint.Arguments) [] } // Name returns the rule name. -func (r *UnconditionalRecursionRule) Name() string { +func (*UnconditionalRecursionRule) Name() string { return "unconditional-recursion" } diff --git a/rule/unexported-naming.go b/rule/unexported-naming.go index 96cec3e46..618287cb2 100644 --- a/rule/unexported-naming.go +++ b/rule/unexported-naming.go @@ -25,7 +25,7 @@ func (r *UnexportedNamingRule) Apply(file *lint.File, _ lint.Arguments) []lint.F } // Name returns the rule name. -func (r *UnexportedNamingRule) Name() string { +func (*UnexportedNamingRule) Name() string { return "unexported-naming" } diff --git a/rule/unexported-return.go b/rule/unexported-return.go index 69b013207..4505d4fad 100644 --- a/rule/unexported-return.go +++ b/rule/unexported-return.go @@ -32,7 +32,7 @@ func (r *UnexportedReturnRule) Apply(file *lint.File, _ lint.Arguments) []lint.F } // Name returns the rule name. -func (r *UnexportedReturnRule) Name() string { +func (*UnexportedReturnRule) Name() string { return "unexported-return" } diff --git a/rule/unhandled-error.go b/rule/unhandled-error.go index ccb2b0e05..30508ee16 100644 --- a/rule/unhandled-error.go +++ b/rule/unhandled-error.go @@ -63,7 +63,7 @@ func (r *UnhandledErrorRule) Apply(file *lint.File, args lint.Arguments) []lint. } // Name returns the rule name. -func (r *UnhandledErrorRule) Name() string { +func (*UnhandledErrorRule) Name() string { return "unhandled-error" } diff --git a/rule/unnecessary-stmt.go b/rule/unnecessary-stmt.go index 732d8a8bb..40f0da002 100644 --- a/rule/unnecessary-stmt.go +++ b/rule/unnecessary-stmt.go @@ -23,7 +23,7 @@ func (r *UnnecessaryStmtRule) Apply(file *lint.File, _ lint.Arguments) []lint.Fa } // Name returns the rule name. -func (r *UnnecessaryStmtRule) Name() string { +func (*UnnecessaryStmtRule) Name() string { return "unnecessary-stmt" } diff --git a/rule/unreachable-code.go b/rule/unreachable-code.go index 9a96ce087..498964b08 100644 --- a/rule/unreachable-code.go +++ b/rule/unreachable-code.go @@ -42,7 +42,7 @@ func (r *UnreachableCodeRule) Apply(file *lint.File, _ lint.Arguments) []lint.Fa } // Name returns the rule name. -func (r *UnreachableCodeRule) Name() string { +func (*UnreachableCodeRule) Name() string { return "unreachable-code" } diff --git a/rule/unused-param.go b/rule/unused-param.go index 6491c4bc2..63eab3705 100644 --- a/rule/unused-param.go +++ b/rule/unused-param.go @@ -76,7 +76,7 @@ func (r *UnusedParamRule) Apply(file *lint.File, args lint.Arguments) []lint.Fai } // Name returns the rule name. -func (r *UnusedParamRule) Name() string { +func (*UnusedParamRule) Name() string { return "unused-parameter" } diff --git a/rule/unused-receiver.go b/rule/unused-receiver.go index 861a8af9c..715dba338 100644 --- a/rule/unused-receiver.go +++ b/rule/unused-receiver.go @@ -76,7 +76,7 @@ func (r *UnusedReceiverRule) Apply(file *lint.File, args lint.Arguments) []lint. } // Name returns the rule name. -func (r *UnusedReceiverRule) Name() string { +func (*UnusedReceiverRule) Name() string { return "unused-receiver" } diff --git a/rule/use-any.go b/rule/use-any.go index 5e75e2f87..64b82c4c3 100644 --- a/rule/use-any.go +++ b/rule/use-any.go @@ -25,7 +25,7 @@ func (r *UseAnyRule) Apply(file *lint.File, _ lint.Arguments) []lint.Failure { } // Name returns the rule name. -func (r *UseAnyRule) Name() string { +func (*UseAnyRule) Name() string { return "use-any" } diff --git a/rule/useless-break.go b/rule/useless-break.go index a631bd1e1..aea799c88 100644 --- a/rule/useless-break.go +++ b/rule/useless-break.go @@ -25,7 +25,7 @@ func (r *UselessBreak) Apply(file *lint.File, _ lint.Arguments) []lint.Failure { } // Name returns the rule name. -func (r *UselessBreak) Name() string { +func (*UselessBreak) Name() string { return "useless-break" } diff --git a/rule/var-declarations.go b/rule/var-declarations.go index 441132115..e40c80ff1 100644 --- a/rule/var-declarations.go +++ b/rule/var-declarations.go @@ -32,7 +32,7 @@ func (r *VarDeclarationsRule) Apply(file *lint.File, _ lint.Arguments) []lint.Fa } // Name returns the rule name. -func (r *VarDeclarationsRule) Name() string { +func (*VarDeclarationsRule) Name() string { return "var-declaration" } diff --git a/rule/var-naming.go b/rule/var-naming.go index 0647a3414..8dfba5b41 100644 --- a/rule/var-naming.go +++ b/rule/var-naming.go @@ -111,7 +111,7 @@ func (r *VarNamingRule) Apply(file *lint.File, arguments lint.Arguments) []lint. } // Name returns the rule name. -func (r *VarNamingRule) Name() string { +func (*VarNamingRule) Name() string { return "var-naming" } diff --git a/rule/waitgroup-by-value.go b/rule/waitgroup-by-value.go index 83b2f3244..78bac4113 100644 --- a/rule/waitgroup-by-value.go +++ b/rule/waitgroup-by-value.go @@ -23,7 +23,7 @@ func (r *WaitGroupByValueRule) Apply(file *lint.File, _ lint.Arguments) []lint.F } // Name returns the rule name. -func (r *WaitGroupByValueRule) Name() string { +func (*WaitGroupByValueRule) Name() string { return "waitgroup-by-value" }