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

Rewrites should be able to validate configuration during initialization #261

Closed
olafurpg opened this issue Jul 18, 2017 · 0 comments · Fixed by #316
Closed

Rewrites should be able to validate configuration during initialization #261

olafurpg opened this issue Jul 18, 2017 · 0 comments · Fixed by #316
Milestone

Comments

@olafurpg
Copy link
Contributor

Currently, custom rewrites have to validate the configuration inside the def rewrite(ctx: RewriteCtx) method. It would be nice if they could validate the configuration only once during initialization.

@olafurpg olafurpg modified the milestone: v0.5 Aug 16, 2017
olafurpg added a commit to olafurpg/scalafix that referenced this issue Aug 30, 2017
This method can be used to do any sort of preprocessing before fixing
files. For example, a rewrite that does dead-code elimination.could
build a call graph in `init`.
bjaglin pushed a commit to liancheng/scalafix that referenced this issue May 23, 2023
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

Successfully merging a pull request may close this issue.

1 participant