Skip to content

Commit ebd658e

Browse files
Ajit Pratap SinghAjit Pratap Singh
authored andcommitted
fix: sync allRules() with all 10 builtin rules (L001-L010)
1 parent 994caa1 commit ebd658e

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

cmd/gosqlx/internal/actioncmd/action.go

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -297,10 +297,16 @@ func defaultLinter() *linter.Linter {
297297
// allRules returns a map of rule ID → Rule for all available lint rules.
298298
func allRules() map[string]linter.Rule {
299299
all := []linter.Rule{
300-
whitespace.NewTrailingWhitespaceRule(),
301-
whitespace.NewMixedIndentationRule(),
302-
keywords.NewKeywordCaseRule(keywords.CaseUpper),
303-
style.NewColumnAlignmentRule(),
300+
whitespace.NewTrailingWhitespaceRule(), // L001
301+
whitespace.NewMixedIndentationRule(), // L002
302+
whitespace.NewConsecutiveBlankLinesRule(2), // L003
303+
whitespace.NewIndentationDepthRule(10, 4), // L004
304+
whitespace.NewLongLinesRule(120), // L005
305+
style.NewColumnAlignmentRule(), // L006
306+
keywords.NewKeywordCaseRule(keywords.CaseUpper), // L007
307+
style.NewCommaPlacementRule(style.CommaTrailing), // L008
308+
style.NewAliasingConsistencyRule(true), // L009
309+
whitespace.NewRedundantWhitespaceRule(), // L010
304310
}
305311
m := make(map[string]linter.Rule, len(all))
306312
for _, r := range all {

0 commit comments

Comments
 (0)