Skip to content

Commit be95bfa

Browse files
alexandearchavacava
authored andcommitted
refactor: rename files to follow Go convention
1 parent c0d4d07 commit be95bfa

File tree

299 files changed

+181
-178
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

299 files changed

+181
-178
lines changed

revive.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ warningCode = 1
1919
[rule.error-strings]
2020
[rule.errorf]
2121
[rule.exported]
22+
[rule.filename-format]
23+
# Override the default pattern to forbid .go files with uppercase letters and dashes.
24+
arguments=["^[_a-z][_a-z0-9]*.go$"]
2225
[rule.increment-decrement]
2326
[rule.indent-error-flow]
2427
[rule.line-length-limit]

revivelib/core_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func TestReviveLint(t *testing.T) {
1616
revive := getMockRevive(t)
1717

1818
// ACT
19-
failures, err := revive.Lint(revivelib.Include("../testdata/if-return.go"))
19+
failures, err := revive.Lint(revivelib.Include("../testdata/if_return.go"))
2020
if err != nil {
2121
t.Fatal(err)
2222
}
@@ -40,7 +40,7 @@ func TestReviveFormat(t *testing.T) {
4040
// ARRANGE
4141
revive := getMockRevive(t)
4242

43-
failuresChan, err := revive.Lint(revivelib.Include("../testdata/if-return.go"))
43+
failuresChan, err := revive.Lint(revivelib.Include("../testdata/if_return.go"))
4444
if err != nil {
4545
t.Fatal(err)
4646
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

test/add-constant_test.go renamed to test/add_constant_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func TestAddConstant(t *testing.T) {
1616
"ignoreFuncs": "os\\.(CreateFile|WriteFile|Chmod|FindProcess),\\.Println,ignoredFunc,\\.Info",
1717
}}
1818

19-
testRule(t, "add-constant", &rule.AddConstantRule{}, &lint.RuleConfig{
19+
testRule(t, "add_constant", &rule.AddConstantRule{}, &lint.RuleConfig{
2020
Arguments: args,
2121
})
2222
}

test/argument-limit_test.go renamed to test/argument_limit_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
)
99

1010
func TestArgumentLimit(t *testing.T) {
11-
testRule(t, "argument-limit", &rule.ArgumentsLimitRule{}, &lint.RuleConfig{
11+
testRule(t, "argument_limit", &rule.ArgumentsLimitRule{}, &lint.RuleConfig{
1212
Arguments: []any{int64(3)},
1313
})
1414
}

test/banned-characters_test.go renamed to test/banned_characters_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
// One banned character is in the comment and should not be checked.
1212
// One banned character from the list is not present in the fixture file.
1313
func TestBannedCharacters(t *testing.T) {
14-
testRule(t, "banned-characters", &rule.BannedCharsRule{}, &lint.RuleConfig{
14+
testRule(t, "banned_characters", &rule.BannedCharsRule{}, &lint.RuleConfig{
1515
Arguments: []any{"Ω", "Σ", "σ", "1"},
1616
})
1717
}

test/bare-return_test.go renamed to test/bare_return_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ import (
77
)
88

99
func TestBareReturn(t *testing.T) {
10-
testRule(t, "bare-return", &rule.BareReturnRule{})
10+
testRule(t, "bare_return", &rule.BareReturnRule{})
1111
}

test/bool-literal-in-expr_test.go renamed to test/bool_literal_in_expr_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ import (
88

99
// BoolLiteral rule.
1010
func TestBoolLiteral(t *testing.T) {
11-
testRule(t, "bool-literal-in-expr", &rule.BoolLiteralRule{})
11+
testRule(t, "bool_literal_in_expr", &rule.BoolLiteralRule{})
1212
}

test/call-to-gc_test.go renamed to test/call_to_gc_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ import (
88

99
// TestCallToGC test call-to-gc rule
1010
func TestCallToGC(t *testing.T) {
11-
testRule(t, "call-to-gc", &rule.CallToGCRule{})
11+
testRule(t, "call_to_gc", &rule.CallToGCRule{})
1212
}

test/cognitive-complexity_test.go renamed to test/cognitive_complexity_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
)
99

1010
func TestCognitiveComplexity(t *testing.T) {
11-
testRule(t, "cognitive-complexity", &rule.CognitiveComplexityRule{}, &lint.RuleConfig{
11+
testRule(t, "cognitive_complexity", &rule.CognitiveComplexityRule{}, &lint.RuleConfig{
1212
Arguments: []any{int64(0)},
1313
})
1414
}

test/comment-spacings_test.go renamed to test/comment_spacings_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
)
99

1010
func TestCommentSpacings(t *testing.T) {
11-
testRule(t, "comment-spacings", &rule.CommentSpacingsRule{}, &lint.RuleConfig{
11+
testRule(t, "comment_spacings", &rule.CommentSpacingsRule{}, &lint.RuleConfig{
1212
Arguments: []any{"myOwnDirective:", "+optional"}},
1313
)
1414
}

test/comments-density_test.go renamed to test/comments_density_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ import (
88
)
99

1010
func TestCommentsDensity(t *testing.T) {
11-
testRule(t, "comments-density-1", &rule.CommentsDensityRule{}, &lint.RuleConfig{
11+
testRule(t, "comments_density_1", &rule.CommentsDensityRule{}, &lint.RuleConfig{
1212
Arguments: []any{int64(60)},
1313
})
1414

15-
testRule(t, "comments-density-2", &rule.CommentsDensityRule{}, &lint.RuleConfig{
15+
testRule(t, "comments_density_2", &rule.CommentsDensityRule{}, &lint.RuleConfig{
1616
Arguments: []any{int64(90)},
1717
})
1818

19-
testRule(t, "comments-density-3", &rule.CommentsDensityRule{}, &lint.RuleConfig{})
19+
testRule(t, "comments_density_3", &rule.CommentsDensityRule{}, &lint.RuleConfig{})
2020
}

test/confusing-naming_test.go renamed to test/confusing_naming_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ import (
88

99
// TestConfusingNaming rule.
1010
func TestConfusingNaming(t *testing.T) {
11-
testRule(t, "confusing-naming1", &rule.ConfusingNamingRule{})
11+
testRule(t, "confusing_naming1", &rule.ConfusingNamingRule{})
1212
}

test/confusing-results_test.go renamed to test/confusing_results_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ import (
77
)
88

99
func TestConfusingResults(t *testing.T) {
10-
testRule(t, "confusing-results", &rule.ConfusingResultsRule{})
10+
testRule(t, "confusing_results", &rule.ConfusingResultsRule{})
1111
}

test/constant-logical-expr_test.go renamed to test/constant_logical_expr_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ import (
88

99
// ConstantLogicalExpr rule.
1010
func TestConstantLogicalExpr(t *testing.T) {
11-
testRule(t, "constant-logical-expr", &rule.ConstantLogicalExprRule{})
11+
testRule(t, "constant_logical_expr", &rule.ConstantLogicalExprRule{})
1212
}

test/context-as-argument_test.go renamed to test/context_as_argument_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
)
99

1010
func TestContextAsArgument(t *testing.T) {
11-
testRule(t, "context-as-argument", &rule.ContextAsArgumentRule{}, &lint.RuleConfig{
11+
testRule(t, "context_as_argument", &rule.ContextAsArgumentRule{}, &lint.RuleConfig{
1212
Arguments: []any{
1313
map[string]any{
1414
"allowTypesBefore": "AllowedBeforeType,AllowedBeforeStruct,*AllowedBeforePtrStruct,*testing.T",

test/cyclomatic_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ func TestCyclomatic(t *testing.T) {
1111
testRule(t, "cyclomatic", &rule.CyclomaticRule{}, &lint.RuleConfig{
1212
Arguments: []any{int64(1)},
1313
})
14-
testRule(t, "cyclomatic-2", &rule.CyclomaticRule{}, &lint.RuleConfig{
14+
testRule(t, "cyclomatic_2", &rule.CyclomaticRule{}, &lint.RuleConfig{
1515
Arguments: []any{int64(3)},
1616
})
1717
}

test/deep-exit_test.go renamed to test/deep_exit_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ import (
77
)
88

99
func TestDeepExit(t *testing.T) {
10-
testRule(t, "deep-exit", &rule.DeepExitRule{})
11-
testRule(t, "deep-exit_test", &rule.DeepExitRule{})
10+
testRule(t, "deep_exit", &rule.DeepExitRule{})
11+
testRule(t, "deep_exit_test", &rule.DeepExitRule{})
1212
}

test/defer_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ func TestDefer(t *testing.T) {
1313
}
1414

1515
func TestDeferLoopDisabled(t *testing.T) {
16-
testRule(t, "defer-loop-disabled", &rule.DeferRule{}, &lint.RuleConfig{
16+
testRule(t, "defer_loop_disabled", &rule.DeferRule{}, &lint.RuleConfig{
1717
Arguments: []any{[]any{"return", "recover", "call-chain", "method-call"}},
1818
})
1919
}
2020

2121
func TestDeferOthersDisabled(t *testing.T) {
22-
testRule(t, "defer-only-loop-enabled", &rule.DeferRule{}, &lint.RuleConfig{
22+
testRule(t, "defer_only_loop_enabled", &rule.DeferRule{}, &lint.RuleConfig{
2323
Arguments: []any{[]any{"loop"}},
2424
})
2525
}

test/disable-annotations_test.go renamed to test/disable_annotations_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ import (
88
)
99

1010
func TestDisabledAnnotations(t *testing.T) {
11-
testRule(t, "disable-annotations", &rule.ExportedRule{}, &lint.RuleConfig{})
11+
testRule(t, "disable_annotations", &rule.ExportedRule{}, &lint.RuleConfig{})
1212
}
1313

1414
func TestModifiedAnnotations(t *testing.T) {
15-
testRule(t, "disable-annotations2", &rule.VarNamingRule{}, &lint.RuleConfig{})
15+
testRule(t, "disable_annotations2", &rule.VarNamingRule{}, &lint.RuleConfig{})
1616
}
1717

1818
func TestDisableNextLineAnnotations(t *testing.T) {
19-
testRule(t, "disable-annotations3", &rule.VarNamingRule{}, &lint.RuleConfig{})
19+
testRule(t, "disable_annotations3", &rule.VarNamingRule{}, &lint.RuleConfig{})
2020
}

test/dot_imports_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func TestDotImports(t *testing.T) {
1212
"allowedPackages": []any{"errors", "context", "github.com/BurntSushi/toml"},
1313
}}
1414

15-
testRule(t, "import-dot", &rule.DotImportsRule{}, &lint.RuleConfig{
15+
testRule(t, "import_dot", &rule.DotImportsRule{}, &lint.RuleConfig{
1616
Arguments: args,
1717
})
1818
}

test/duplicated-import_test.go renamed to test/duplicated_imports_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ import (
77
)
88

99
func TestDuplicatedImports(t *testing.T) {
10-
testRule(t, "duplicated-imports", &rule.DuplicatedImportsRule{})
10+
testRule(t, "duplicated_imports", &rule.DuplicatedImportsRule{})
1111
}

test/early-return_test.go renamed to test/early_return_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ import (
1010

1111
// TestEarlyReturn tests early-return rule.
1212
func TestEarlyReturn(t *testing.T) {
13-
testRule(t, "early-return", &rule.EarlyReturnRule{})
14-
testRule(t, "early-return-scope", &rule.EarlyReturnRule{}, &lint.RuleConfig{Arguments: []any{ifelse.PreserveScope}})
13+
testRule(t, "early_return", &rule.EarlyReturnRule{})
14+
testRule(t, "early_return_scope", &rule.EarlyReturnRule{}, &lint.RuleConfig{Arguments: []any{ifelse.PreserveScope}})
1515
}

test/empty-block_test.go renamed to test/empty_block_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ import (
88

99
// TestEmptyBlock rule.
1010
func TestEmptyBlock(t *testing.T) {
11-
testRule(t, "empty-block", &rule.EmptyBlockRule{})
11+
testRule(t, "empty_block", &rule.EmptyBlockRule{})
1212
}

test/empty-lines_test.go renamed to test/empty_lines_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ import (
88

99
// TestEmptyLines rule.
1010
func TestEmptyLines(t *testing.T) {
11-
testRule(t, "empty-lines", &rule.EmptyLinesRule{})
11+
testRule(t, "empty_lines", &rule.EmptyLinesRule{})
1212
}

test/enforce-map-style_test.go renamed to test/enforce_map_style_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,17 +8,17 @@ import (
88
)
99

1010
func TestEnforceMapStyle_any(t *testing.T) {
11-
testRule(t, "enforce-map-style-any", &rule.EnforceMapStyleRule{})
11+
testRule(t, "enforce_map_style_any", &rule.EnforceMapStyleRule{})
1212
}
1313

1414
func TestEnforceMapStyle_make(t *testing.T) {
15-
testRule(t, "enforce-map-style-make", &rule.EnforceMapStyleRule{}, &lint.RuleConfig{
15+
testRule(t, "enforce_map_style_make", &rule.EnforceMapStyleRule{}, &lint.RuleConfig{
1616
Arguments: []any{"make"},
1717
})
1818
}
1919

2020
func TestEnforceMapStyle_literal(t *testing.T) {
21-
testRule(t, "enforce-map-style-literal", &rule.EnforceMapStyleRule{}, &lint.RuleConfig{
21+
testRule(t, "enforce_map_style_literal", &rule.EnforceMapStyleRule{}, &lint.RuleConfig{
2222
Arguments: []any{"literal"},
2323
})
2424
}

test/enforce-repeated-arg-type-style_test.go renamed to test/enforce_repeated_arg_type_style_test.go

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,21 +8,21 @@ import (
88
)
99

1010
func TestEnforceRepeatedArgTypeStyleShort(t *testing.T) {
11-
testRule(t, "enforce-repeated-arg-type-style-short-args", &rule.EnforceRepeatedArgTypeStyleRule{}, &lint.RuleConfig{
11+
testRule(t, "enforce_repeated_arg_type_style_short_args", &rule.EnforceRepeatedArgTypeStyleRule{}, &lint.RuleConfig{
1212
Arguments: []any{"short"},
1313
})
14-
testRule(t, "enforce-repeated-arg-type-style-short-return", &rule.EnforceRepeatedArgTypeStyleRule{}, &lint.RuleConfig{
14+
testRule(t, "enforce_repeated_arg_type_style_short_return", &rule.EnforceRepeatedArgTypeStyleRule{}, &lint.RuleConfig{
1515
Arguments: []any{"short"},
1616
})
1717

18-
testRule(t, "enforce-repeated-arg-type-style-short-args", &rule.EnforceRepeatedArgTypeStyleRule{}, &lint.RuleConfig{
18+
testRule(t, "enforce_repeated_arg_type_style_short_args", &rule.EnforceRepeatedArgTypeStyleRule{}, &lint.RuleConfig{
1919
Arguments: []any{
2020
map[string]any{
2121
"funcArgStyle": `short`,
2222
},
2323
},
2424
})
25-
testRule(t, "enforce-repeated-arg-type-style-short-return", &rule.EnforceRepeatedArgTypeStyleRule{}, &lint.RuleConfig{
25+
testRule(t, "enforce_repeated_arg_type_style_short_return", &rule.EnforceRepeatedArgTypeStyleRule{}, &lint.RuleConfig{
2626
Arguments: []any{
2727
map[string]any{
2828
"funcRetValStyle": `short`,
@@ -32,21 +32,21 @@ func TestEnforceRepeatedArgTypeStyleShort(t *testing.T) {
3232
}
3333

3434
func TestEnforceRepeatedArgTypeStyleFull(t *testing.T) {
35-
testRule(t, "enforce-repeated-arg-type-style-full-args", &rule.EnforceRepeatedArgTypeStyleRule{}, &lint.RuleConfig{
35+
testRule(t, "enforce_repeated_arg_type_style_full_args", &rule.EnforceRepeatedArgTypeStyleRule{}, &lint.RuleConfig{
3636
Arguments: []any{"full"},
3737
})
38-
testRule(t, "enforce-repeated-arg-type-style-full-return", &rule.EnforceRepeatedArgTypeStyleRule{}, &lint.RuleConfig{
38+
testRule(t, "enforce_repeated_arg_type_style_full_return", &rule.EnforceRepeatedArgTypeStyleRule{}, &lint.RuleConfig{
3939
Arguments: []any{"full"},
4040
})
4141

42-
testRule(t, "enforce-repeated-arg-type-style-full-args", &rule.EnforceRepeatedArgTypeStyleRule{}, &lint.RuleConfig{
42+
testRule(t, "enforce_repeated_arg_type_style_full_args", &rule.EnforceRepeatedArgTypeStyleRule{}, &lint.RuleConfig{
4343
Arguments: []any{
4444
map[string]any{
4545
"funcArgStyle": `full`,
4646
},
4747
},
4848
})
49-
testRule(t, "enforce-repeated-arg-type-style-full-return", &rule.EnforceRepeatedArgTypeStyleRule{}, &lint.RuleConfig{
49+
testRule(t, "enforce_repeated_arg_type_style_full_return", &rule.EnforceRepeatedArgTypeStyleRule{}, &lint.RuleConfig{
5050
Arguments: []any{
5151
map[string]any{
5252
"funcRetValStyle": `full`,
@@ -56,22 +56,22 @@ func TestEnforceRepeatedArgTypeStyleFull(t *testing.T) {
5656
}
5757

5858
func TestEnforceRepeatedArgTypeStyleMixed(t *testing.T) {
59-
testRule(t, "enforce-repeated-arg-type-style-full-args", &rule.EnforceRepeatedArgTypeStyleRule{}, &lint.RuleConfig{
59+
testRule(t, "enforce_repeated_arg_type_style_full_args", &rule.EnforceRepeatedArgTypeStyleRule{}, &lint.RuleConfig{
6060
Arguments: []any{
6161
map[string]any{
6262
"funcArgStyle": `full`,
6363
},
6464
},
6565
})
66-
testRule(t, "enforce-repeated-arg-type-style-full-args", &rule.EnforceRepeatedArgTypeStyleRule{}, &lint.RuleConfig{
66+
testRule(t, "enforce_repeated_arg_type_style_full_args", &rule.EnforceRepeatedArgTypeStyleRule{}, &lint.RuleConfig{
6767
Arguments: []any{
6868
map[string]any{
6969
"funcArgStyle": `full`,
7070
"funcRetValStyle": `any`,
7171
},
7272
},
7373
})
74-
testRule(t, "enforce-repeated-arg-type-style-full-args", &rule.EnforceRepeatedArgTypeStyleRule{}, &lint.RuleConfig{
74+
testRule(t, "enforce_repeated_arg_type_style_full_args", &rule.EnforceRepeatedArgTypeStyleRule{}, &lint.RuleConfig{
7575
Arguments: []any{
7676
map[string]any{
7777
"funcArgStyle": `full`,
@@ -80,22 +80,22 @@ func TestEnforceRepeatedArgTypeStyleMixed(t *testing.T) {
8080
},
8181
})
8282

83-
testRule(t, "enforce-repeated-arg-type-style-full-return", &rule.EnforceRepeatedArgTypeStyleRule{}, &lint.RuleConfig{
83+
testRule(t, "enforce_repeated_arg_type_style_full_return", &rule.EnforceRepeatedArgTypeStyleRule{}, &lint.RuleConfig{
8484
Arguments: []any{
8585
map[string]any{
8686
"funcRetValStyle": `full`,
8787
},
8888
},
8989
})
90-
testRule(t, "enforce-repeated-arg-type-style-full-return", &rule.EnforceRepeatedArgTypeStyleRule{}, &lint.RuleConfig{
90+
testRule(t, "enforce_repeated_arg_type_style_full_return", &rule.EnforceRepeatedArgTypeStyleRule{}, &lint.RuleConfig{
9191
Arguments: []any{
9292
map[string]any{
9393
"funcArgStyle": `any`,
9494
"funcRetValStyle": `full`,
9595
},
9696
},
9797
})
98-
testRule(t, "enforce-repeated-arg-type-style-full-return", &rule.EnforceRepeatedArgTypeStyleRule{}, &lint.RuleConfig{
98+
testRule(t, "enforce_repeated_arg_type_style_full_return", &rule.EnforceRepeatedArgTypeStyleRule{}, &lint.RuleConfig{
9999
Arguments: []any{
100100
map[string]any{
101101
"funcArgStyle": `short`,
@@ -104,15 +104,15 @@ func TestEnforceRepeatedArgTypeStyleMixed(t *testing.T) {
104104
},
105105
})
106106

107-
testRule(t, "enforce-repeated-arg-type-style-mixed-full-short", &rule.EnforceRepeatedArgTypeStyleRule{}, &lint.RuleConfig{
107+
testRule(t, "enforce_repeated_arg_type_style_mixed_full_short", &rule.EnforceRepeatedArgTypeStyleRule{}, &lint.RuleConfig{
108108
Arguments: []any{
109109
map[string]any{
110110
"funcArgStyle": `full`,
111111
"funcRetValStyle": `short`,
112112
},
113113
},
114114
})
115-
testRule(t, "enforce-repeated-arg-type-style-mixed-short-full", &rule.EnforceRepeatedArgTypeStyleRule{}, &lint.RuleConfig{
115+
testRule(t, "enforce_repeated_arg_type_style_mixed_short_full", &rule.EnforceRepeatedArgTypeStyleRule{}, &lint.RuleConfig{
116116
Arguments: []any{
117117
map[string]any{
118118
"funcArgStyle": `short`,

0 commit comments

Comments
 (0)