Skip to content

Handle formatting annotated method parameters#12446

Merged
beta-ziliani merged 4 commits intocrystal-lang:masterfrom
Blacksmoke16:param-ann-formatter
Sep 7, 2022
Merged

Handle formatting annotated method parameters#12446
beta-ziliani merged 4 commits intocrystal-lang:masterfrom
Blacksmoke16:param-ann-formatter

Conversation

@Blacksmoke16
Copy link
Member

@Blacksmoke16 Blacksmoke16 commented Sep 4, 2022

Might be able to clean up the logic a bit, but this seems to cover all the specs I threw at it. So good enough for now. Also added an optional focus parameter to assert_format to make debugging a specific failure a bit easier.

Fixes formatter after #12044.

@Blacksmoke16 Blacksmoke16 added kind:bug A bug in the code. Does not apply to documentation, specs, etc. topic:tools:formatter topic:lang:annotations labels Sep 4, 2022
@Blacksmoke16 Blacksmoke16 marked this pull request as draft September 4, 2022 22:57
@Blacksmoke16 Blacksmoke16 marked this pull request as ready for review September 4, 2022 23:23
@straight-shoota straight-shoota added this to the 1.6.0 milestone Sep 6, 2022
@Blacksmoke16
Copy link
Member Author

Should this go into 1.5.1 given it was introduced in 1.5.0?

@straight-shoota straight-shoota modified the milestones: 1.6.0, 1.5.1 Sep 6, 2022
@straight-shoota straight-shoota linked an issue Sep 6, 2022 that may be closed by this pull request
@beta-ziliani beta-ziliani merged commit 484c90c into crystal-lang:master Sep 7, 2022
beta-ziliani pushed a commit to beta-ziliani/crystal that referenced this pull request Sep 7, 2022
Also added an optional focus parameter to assert_format to make debugging a specific failure a bit easier.

Fixes formatter after crystal-lang#12044.
@Blacksmoke16 Blacksmoke16 deleted the param-ann-formatter branch September 7, 2022 00:47
beta-ziliani pushed a commit that referenced this pull request Sep 7, 2022
Also added an optional focus parameter to assert_format to make debugging a specific failure a bit easier.

Fixes formatter after #12044.
beta-ziliani pushed a commit that referenced this pull request Sep 7, 2022
Also added an optional focus parameter to assert_format to make debugging a specific failure a bit easier.

Fixes formatter after #12044.
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:lang:annotations topic:tools:formatter

Projects

None yet

Development

Successfully merging this pull request may close these issues.

crystal tool format fails with annotation on param

4 participants