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

elm-review new-rule should not clobber existing files #58

Open
SiriusStarr opened this issue Aug 31, 2021 · 0 comments
Open

elm-review new-rule should not clobber existing files #58

SiriusStarr opened this issue Aug 31, 2021 · 0 comments

Comments

@SiriusStarr
Copy link
Contributor

Currently, it seems that elm-review new-rule RULE will clobber any extant files at src/RULE.elm or tests/RULETest.elm without any warning. This is dangerous if one is working on a new rule and arrows up one too many times in one's shell history. Don't ask me how I know this. 😆

Regardless, it should probably warn if the files already exist rather than just overwriting them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant