MCPcopy Create free account
hub / github.com/ajitpratap0/GoSQLX / NewColumnAlignmentRule

Function NewColumnAlignmentRule

pkg/linter/rules/style/column_alignment.go:64–74  ·  view source on GitHub ↗

NewColumnAlignmentRule creates a new L006 rule instance. Returns a configured ColumnAlignmentRule ready for use with the linter. The rule does not support auto-fix due to the complexity of preserving formatting while adjusting indentation.

()

Source from the content-addressed store, hash-verified

62// The rule does not support auto-fix due to the complexity of preserving
63// formatting while adjusting indentation.
64func NewColumnAlignmentRule() *ColumnAlignmentRule {
65 return &ColumnAlignmentRule{
66 BaseRule: linter.NewBaseRule(
67 "L006",
68 "Column Alignment",
69 "SELECT columns should be properly aligned",
70 linter.SeverityInfo,
71 false, // No auto-fix - complex formatting
72 ),
73 }
74}
75
76// Check performs the column alignment check on SQL content.
77//

Calls 1

NewBaseRuleFunction · 0.92