WhatsApp / erlfmt

An automated code formatter for Erlang
Apache License 2.0
412 stars 52 forks source link

[Format range] Support noformat and empty ranges. #311

Closed slaykachu closed 3 years ago

slaykachu commented 3 years ago

The --range option was failing miserably in two cases:

In the first case, an internal function returns {skip, string()}, which wasn't handled. In the latter case, the list of adequate corrected ranges is empty.