Skip to content

Wrap long column annotation lines; raise MAX_LINE to 120; multi-adapt…#9

Merged
boserh merged 1 commit into
mainfrom
fix/line-length-wrapping
Jun 30, 2026
Merged

Wrap long column annotation lines; raise MAX_LINE to 120; multi-adapt…#9
boserh merged 1 commit into
mainfrom
fix/line-length-wrapping

Conversation

@boserh

@boserh boserh commented Jun 30, 2026

Copy link
Copy Markdown
Owner

…er triggers

  • ColumnFormatter: wrap options onto a continuation line when the assembled column comment exceeds WrapHelper::MAX_LINE (120 chars), fixing Rubocop Layout/LineLength offenses in annotated model files
  • WrapHelper: raise MAX_LINE from 100 to 120 to match the standard Rubocop default; affects column wrapping, index WHERE wrapping, and check constraint wrapping consistently
  • TriggerFormatter: dispatch on adapter_name to support PostgreSQL (pg_trigger), MySQL/Trilogy (information_schema.TRIGGERS), and SQLite (sqlite_master); unsupported adapters return [] silently
  • Update specs: CheckConstraintFormatter wrap points updated for 120, TriggerFormatter covers all three adapters + unsupported adapter, ColumnFormatter covers the wrapping behaviour

…er triggers

- ColumnFormatter: wrap options onto a continuation line when the
  assembled column comment exceeds WrapHelper::MAX_LINE (120 chars),
  fixing Rubocop Layout/LineLength offenses in annotated model files
- WrapHelper: raise MAX_LINE from 100 to 120 to match the standard
  Rubocop default; affects column wrapping, index WHERE wrapping, and
  check constraint wrapping consistently
- TriggerFormatter: dispatch on adapter_name to support PostgreSQL
  (pg_trigger), MySQL/Trilogy (information_schema.TRIGGERS), and
  SQLite (sqlite_master); unsupported adapters return [] silently
- Update specs: CheckConstraintFormatter wrap points updated for 120,
  TriggerFormatter covers all three adapters + unsupported adapter,
  ColumnFormatter covers the wrapping behaviour
@boserh boserh force-pushed the fix/line-length-wrapping branch from 7e4a737 to 1b05ebe Compare June 30, 2026 13:59
@boserh boserh merged commit 611a6b6 into main Jun 30, 2026
4 checks passed
@boserh boserh deleted the fix/line-length-wrapping branch June 30, 2026 14:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant