-
Notifications
You must be signed in to change notification settings - Fork 43
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
ScalafmtSessionFactory usage #100
Conversation
import java.nio.file.Path | ||
import org.scalafmt.interfaces.{Scalafmt, ScalafmtSession} | ||
|
||
class PluginInstanceSession(config: Path, instance: Scalafmt) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- should it be package-private?
- perhaps rename to something like
LegacyScalafmtSession
orCompatibilityScalafmtSession
orEmulatedScalafmtSession
?
globalInstance | ||
.withReporter(reporter) | ||
.withMavenRepositories(repositories: _*) | ||
.withRespectProjectFilters(true) match { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this line wasn't there before. probably a good change. could it potentially cause some complaints?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like it's on-by-default. Just explicitly declare this setting because sbt plugin hasn't other inputs than filters specified in config.
Fixes #96