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

Support dynamic loading of rewrites from uri. #90

Merged
merged 1 commit into from
Mar 13, 2017

Conversation

olafurpg
Copy link
Contributor

@olafurpg olafurpg commented Mar 13, 2017

This commit adds support to load rewrites using different protocols

  • file:path/to/rewrite.scala
  • https://github.com/...
  • scala:fully.qualified.Name

In the future, we can add support for other protocols like scastie:snippet-hash.

We use the scala.reflect toolbox to compile and load rewrites from code.
We instrument the code to make it compile with scala.reflect Toolbox.

This commit adds support to load rewrites using different protocols

- file:path/to/rewrite.scala
- https://github.com/...
- scala:fully.qualified.Name

We use the scala.reflect toolbox to compile and load rewrites from code.
We instrument the code to make it compile with scala.reflect Toolbox.
@olafurpg olafurpg merged commit 0bc4f19 into scalacenter:master Mar 13, 2017
@olafurpg olafurpg deleted the toolbox branch March 13, 2017 17:52
@olafurpg olafurpg modified the milestone: 0.3.2 Mar 20, 2017
bjaglin pushed a commit to liancheng/scalafix that referenced this pull request 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 this pull request may close these issues.

1 participant