Skip to content

Handle trailing comma with multiple parameters on the same line#15097

Merged
straight-shoota merged 1 commit intocrystal-lang:release/1.14from
Blacksmoke16:trailing-comma-fix
Jan 6, 2025
Merged

Handle trailing comma with multiple parameters on the same line#15097
straight-shoota merged 1 commit intocrystal-lang:release/1.14from
Blacksmoke16:trailing-comma-fix

Conversation

@Blacksmoke16
Copy link
Member

This is going directly into release/1.14 given with #14718 being merged, master now enforces it so there is nothing to change anymore.

Fix here was basically allowing it to write the comma if the new formatter rules says there should be one, and there is already a comma present. This makes it BC since it won't add one without either the flag, or a comma already being present.

@Blacksmoke16 Blacksmoke16 added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:tools:formatter labels Oct 18, 2024
@straight-shoota straight-shoota added this to the 1.15.0 milestone Oct 24, 2024
@Blacksmoke16
Copy link
Member Author

Probably doesn't make sense to add this to 1.15 milestone. Either it's released as a 1.14 patch, or closed.

@straight-shoota straight-shoota modified the milestones: 1.15.0, 1.14.1 Oct 24, 2024
@straight-shoota straight-shoota merged commit af2c00c into crystal-lang:release/1.14 Jan 6, 2025
@Blacksmoke16 Blacksmoke16 deleted the trailing-comma-fix branch January 6, 2025 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:tools:formatter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments