Skip to content

Support trailing commas and semis#366

Merged
michalmuskala merged 1 commit intomainfrom
trailing
Jan 29, 2025
Merged

Support trailing commas and semis#366
michalmuskala merged 1 commit intomainfrom
trailing

Conversation

@michalmuskala
Copy link
Member

They will be just removed when formatting, allowing more "sloppy" code before reformatting, increasing usability of erlfmt.

They will be just removed when formatting, allowing more "sloppy" code
before reformatting, increasing usability of erlfmt.
@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Jan 29, 2025
@michalmuskala michalmuskala merged commit b25a246 into main Jan 29, 2025
17 checks passed
@michalmuskala michalmuskala deleted the trailing branch January 29, 2025 11:54
@elbrujohalcon
Copy link
Contributor

I don't think I can persuade you folks from discarding this idea, but FWIW… It doesn't seem like a great one to me as it might just hide issues (particularly missing or misplaced clauses or expressions in a function). Is there any possibility that you would consider using a configuration parameter to enable/disable this behaviour? I don't mind if it's in "patch sloppy code" mode as a default, but I would very much like to be able to set it to "I can fix my syntax errors myself, thank you very much" mode.

@elbrujohalcon
Copy link
Contributor

Woah… took me too much to write that comment, I see… 🤷🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants