Skip to content

Do not remove trailing comma from multi-line macro/def parameters (not yet enabled)#14075

Merged
straight-shoota merged 3 commits intocrystal-lang:masterfrom
Blacksmoke16:trailing-comma
Dec 12, 2023
Merged

Do not remove trailing comma from multi-line macro/def parameters (not yet enabled)#14075
straight-shoota merged 3 commits intocrystal-lang:masterfrom
Blacksmoke16:trailing-comma

Conversation

@Blacksmoke16
Copy link
Member

This behavior is behind the def_trailing_comma flag as per #13002. Once we go to remove the flag, will need to go and update all the existing formatter specs that it's not currently enabled for. At that point can probably just remove the specs I added as pretty sure they're handled via other assertions.

Fixes #13169

@Blacksmoke16 Blacksmoke16 added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:tools:formatter labels Dec 8, 2023
@straight-shoota straight-shoota added this to the 1.11.0 milestone Dec 8, 2023
@straight-shoota straight-shoota removed this from the 1.11.0 milestone Dec 10, 2023
@straight-shoota straight-shoota added this to the 1.11.0 milestone Dec 11, 2023
@straight-shoota straight-shoota merged commit 4b7fa0c into crystal-lang:master Dec 12, 2023
@Blacksmoke16 Blacksmoke16 deleted the trailing-comma branch December 12, 2023 14:06
@straight-shoota straight-shoota added kind:feature and removed kind:bug A bug in the code. Does not apply to documentation, specs, etc. labels Jan 2, 2024
@straight-shoota straight-shoota changed the title Do not remove trailing comma from multi-line macro/def parameters Do not remove trailing comma from multi-line macro/def parameters (not yet enabled) Jan 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Trailing commas for multiline def / macro / fun parameter lists

3 participants

Comments