-
Notifications
You must be signed in to change notification settings - Fork 185
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
Rename Rewrite to Checker/Rule? #293
Comments
After having looked around names clang-tidy, fb infer and pylint use, I think a more appropriate name for a scalafix rewrite would be a "Checker". |
Just to throw another one in the mix, eslint uses Rule and rules can be "fixable". But I'm totally ok with Checker |
Interesting. I think Question is, what should Rewrite.rewrite
Checker.check
Rule.rule ?
Rule.check ?
Rule.apply ? |
I vote for Checker.check. |
Ok, let the bike shedding begin! 🚲
(this follows eslint's convention) |
Rule it is! We discussed this at the Scala Center meeting yesterday and we were unanimously in favor of Rule.fix/Rule.check over Checker. PR coming soon! |
Following discussion in #291 (comment).
Now that rewrites can emit linter warnings, the name "Rewrite" may be confusing for linters that don't rewrite. Would it make sense to rename
scalafix.Rewrite
toscalafix.rule
?The text was updated successfully, but these errors were encountered: