Skip to content

Commit

Permalink
revert for name function
Browse files Browse the repository at this point in the history
  • Loading branch information
mfederowicz committed Dec 24, 2023
1 parent d1ceb23 commit baae12d
Show file tree
Hide file tree
Showing 76 changed files with 76 additions and 76 deletions.
2 changes: 1 addition & 1 deletion rule/add-constant.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/argument-limit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/atomic.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/banned-characters.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
2 changes: 1 addition & 1 deletion rule/bare-return.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/blank-imports.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/bool-literal-in-expr.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/call-to-gc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/cognitive-complexity.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/comment-spacings.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/confusing-naming.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/confusing-results.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/constant-logical-expr.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/context-as-argument.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/context-keys-type.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/cyclomatic.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/datarace.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/deep-exit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/defer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/dot-imports.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/duplicated-imports.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
2 changes: 1 addition & 1 deletion rule/early-return.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/empty-block.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/empty-lines.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/enforce-map-style.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/enforce-slice-style.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/error-naming.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/error-return.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/error-strings.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/errorf.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/exported.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/file-header.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
2 changes: 1 addition & 1 deletion rule/flag-param.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/function-length.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/function-result-limit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/get-return.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/identical-branches.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/if-return.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/import-alias-naming.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/import-shadowing.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/imports-blacklist.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
2 changes: 1 addition & 1 deletion rule/increment-decrement.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/indent-error-flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
2 changes: 1 addition & 1 deletion rule/line-length-limit.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}

Expand Down
Loading

0 comments on commit baae12d

Please sign in to comment.