scalastyle-sbt-plugin
scalastyle-sbt-plugin copied to clipboard
Enable setting the file encoding option
Not sure if I just don't understand how to transfer that setting down through sbt (like q or w) but I couldn't get it to work; had to resort to modifying the sbt launcher to make java open everything open in UTF-8.
I am attempting to create a pull request for this as I require the functionality.
It appears that I should only need to replace None with a setting's value on:
https://github.com/scalastyle/scalastyle-sbt-plugin/blob/fc584ba9d233e2adf3639746f3430dd2a432b69f/src/main/scala/org/scalastyle/sbt/Plugin.scala#L204
I am planning on creating a new inputFile[Codec|Charset|Encoding] setting which will be Option[scala.io.Codec|java.nio.charset.Charset|String].
Do you have a preference of: Codec (scala); Charset(java); Encoding (String)?