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.
()
| 62 | // The rule does not support auto-fix due to the complexity of preserving |
| 63 | // formatting while adjusting indentation. |
| 64 | func 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 | // |