rebar3_format icon indicating copy to clipboard operation
rebar3_format copied to clipboard

Ignore spaces in empty maps, records, tuples

Open vkatsuba opened this issue 2 years ago • 1 comments

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 avatar Jun 02 '22 08:06 vkatsuba

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

elbrujohalcon avatar Jun 02 '22 08:06 elbrujohalcon