Rubocop: No autocorrect for Lint/EmptyWhen

Created on 28 Aug 2017  路  1Comment  路  Source: rubocop-hq/rubocop

Feel curious about why there is no autocorrect for Lint/EmptyWhen. It seems remove the empty when branches will do the work.

question

Most helpful comment

Most Lint cops don't have auto-correct and the reason is that they usually warn about possible bugs. These offenses should not be "swept under the rug". The user needs to take a look, because an empty when isn't necessarily an extraneous when. It could be that something is missing/forgotten after the when.

>All comments

Most Lint cops don't have auto-correct and the reason is that they usually warn about possible bugs. These offenses should not be "swept under the rug". The user needs to take a look, because an empty when isn't necessarily an extraneous when. It could be that something is missing/forgotten after the when.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

david942j picture david942j  路  3Comments

millisami picture millisami  路  3Comments

AndreiMotinga picture AndreiMotinga  路  3Comments

herwinw picture herwinw  路  3Comments

mikegee picture mikegee  路  3Comments