Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore spaces in empty maps, records, tuples #304

Open
vkatsuba opened this issue Jun 2, 2022 · 1 comment
Open

Ignore spaces in empty maps, records, tuples #304

vkatsuba opened this issue Jun 2, 2022 · 1 comment
Labels
configuration idea style change Improvements on a formatter style
Milestone

Comments

@vkatsuba
Copy link
Contributor

vkatsuba commented Jun 2, 2022

Currently formatter add spaces in empty maps etc. with config:

{format, [{ options, #{ spaces_around_fields => true } }]}.

will format empty map like

#{ }

I would like it to be formatted like:

#{}

I suppose it should be additional rule like: ignore_spaces_around_empty_data => true or similar.

Regards,
--V

@vkatsuba vkatsuba added configuration idea style change Improvements on a formatter style labels Jun 2, 2022
@elbrujohalcon elbrujohalcon added this to the 1.2.1 milestone Jun 2, 2022
@elbrujohalcon
Copy link
Collaborator

I think we can just fix spaces_around_fields… and get it to ignore empty maps/records.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
configuration idea style change Improvements on a formatter style
Projects
None yet
Development

No branches or pull requests

2 participants