Skip to content

Commit

Permalink
test: remove useless comments
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandear committed Dec 5, 2024
1 parent a31d590 commit b6ba5a7
Show file tree
Hide file tree
Showing 21 changed files with 0 additions and 21 deletions.
1 change: 0 additions & 1 deletion test/atomic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"github.com/mgechev/revive/rule"
)

// Atomic rule.
func TestAtomic(t *testing.T) {
testRule(t, "atomic", &rule.AtomicRule{})
}
1 change: 0 additions & 1 deletion test/bool_literal_in_expr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"github.com/mgechev/revive/rule"
)

// BoolLiteral rule.
func TestBoolLiteral(t *testing.T) {
testRule(t, "bool_literal_in_expr", &rule.BoolLiteralRule{})
}
1 change: 0 additions & 1 deletion test/call_to_gc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"github.com/mgechev/revive/rule"
)

// TestCallToGC test call-to-gc rule
func TestCallToGC(t *testing.T) {
testRule(t, "call_to_gc", &rule.CallToGCRule{})
}
1 change: 0 additions & 1 deletion test/confusing_naming_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"github.com/mgechev/revive/rule"
)

// TestConfusingNaming rule.
func TestConfusingNaming(t *testing.T) {
testRule(t, "confusing_naming1", &rule.ConfusingNamingRule{})
}
1 change: 0 additions & 1 deletion test/constant_logical_expr_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"github.com/mgechev/revive/rule"
)

// ConstantLogicalExpr rule.
func TestConstantLogicalExpr(t *testing.T) {
testRule(t, "constant_logical_expr", &rule.ConstantLogicalExprRule{})
}
1 change: 0 additions & 1 deletion test/defer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"github.com/mgechev/revive/rule"
)

// Defer rule.
func TestDefer(t *testing.T) {
testRule(t, "defer", &rule.DeferRule{})
}
Expand Down
1 change: 0 additions & 1 deletion test/early_return_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"github.com/mgechev/revive/rule"
)

// TestEarlyReturn tests early-return rule.
func TestEarlyReturn(t *testing.T) {
testRule(t, "early_return", &rule.EarlyReturnRule{})
testRule(t, "early_return_scope", &rule.EarlyReturnRule{}, &lint.RuleConfig{Arguments: []any{ifelse.PreserveScope}})
Expand Down
1 change: 0 additions & 1 deletion test/empty_block_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"github.com/mgechev/revive/rule"
)

// TestEmptyBlock rule.
func TestEmptyBlock(t *testing.T) {
testRule(t, "empty_block", &rule.EmptyBlockRule{})
}
1 change: 0 additions & 1 deletion test/empty_lines_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"github.com/mgechev/revive/rule"
)

// TestEmptyLines rule.
func TestEmptyLines(t *testing.T) {
testRule(t, "empty_lines", &rule.EmptyLinesRule{})
}
1 change: 0 additions & 1 deletion test/identical_branches_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"github.com/mgechev/revive/rule"
)

// IdenticalBranches rule.
func TestIdenticalBranches(t *testing.T) {
testRule(t, "identical_branches", &rule.IdenticalBranchesRule{})
}
1 change: 0 additions & 1 deletion test/if_return_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"github.com/mgechev/revive/rule"
)

// TestIfReturn rule.
func TestIfReturn(t *testing.T) {
testRule(t, "if_return", &rule.IfReturnRule{})
}
1 change: 0 additions & 1 deletion test/modifies_param_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"github.com/mgechev/revive/rule"
)

// TestModifiesParam rule.
func TestModifiesParam(t *testing.T) {
testRule(t, "modifies_param", &rule.ModifiesParamRule{})
}
1 change: 0 additions & 1 deletion test/redefines_builtin_id_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"github.com/mgechev/revive/rule"
)

// Tests RedefinesBuiltinID rule.
func TestRedefinesBuiltinID(t *testing.T) {
testRule(t, "redefines_builtin_id", &rule.RedefinesBuiltinIDRule{})
}
Expand Down
1 change: 0 additions & 1 deletion test/redundant_import_alias_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import (
"testing"
)

// TestRedundantImportAlias rule.
func TestRedundantImportAlias(t *testing.T) {
testRule(t, "redundant_import_alias", &rule.RedundantImportAlias{})
}
1 change: 0 additions & 1 deletion test/string_of_int_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"github.com/mgechev/revive/rule"
)

// String-of-int rule.
func TestStringOfInt(t *testing.T) {
testRule(t, "string_of_int", &rule.StringOfIntRule{})
}
1 change: 0 additions & 1 deletion test/struct_tag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import (
"github.com/mgechev/revive/rule"
)

// TestStructTag tests struct-tag rule
func TestStructTag(t *testing.T) {
testRule(t, "struct_tag", &rule.StructTagRule{})
}
Expand Down
1 change: 0 additions & 1 deletion test/superfluous_else_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import (
"github.com/mgechev/revive/rule"
)

// TestSuperfluousElse rule.
func TestSuperfluousElse(t *testing.T) {
testRule(t, "superfluous_else", &rule.SuperfluousElseRule{})
testRule(t, "superfluous_else_scope", &rule.SuperfluousElseRule{}, &lint.RuleConfig{Arguments: []any{ifelse.PreserveScope}})
Expand Down
1 change: 0 additions & 1 deletion test/time_equal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"github.com/mgechev/revive/rule"
)

// TestTimeEqual rule.
func TestTimeEqual(t *testing.T) {
testRule(t, "time_equal", &rule.TimeEqualRule{})
}
1 change: 0 additions & 1 deletion test/time_naming_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"github.com/mgechev/revive/rule"
)

// TestTimeNamingRule rule.
func TestTimeNaming(t *testing.T) {
testRule(t, "time_naming", &rule.TimeNamingRule{})
}
1 change: 0 additions & 1 deletion test/unnecessary_stmt_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"github.com/mgechev/revive/rule"
)

// TestUnnecessaryStmt rule.
func TestUnnecessaryStmt(t *testing.T) {
testRule(t, "unnecessary_stmt", &rule.UnnecessaryStmtRule{})
}
1 change: 0 additions & 1 deletion test/useless_break_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import (
"github.com/mgechev/revive/rule"
)

// UselessBreak rule.
func TestUselessBreak(t *testing.T) {
testRule(t, "useless_break", &rule.UselessBreak{})
}

0 comments on commit b6ba5a7

Please sign in to comment.