scalastyle-sbt-plugin icon indicating copy to clipboard operation
scalastyle-sbt-plugin copied to clipboard

Enable setting the file encoding option

Open lespea opened this issue 11 years ago • 1 comments

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.

lespea avatar Jul 15 '14 21:07 lespea

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)?

evanbennett avatar Dec 11 '17 01:12 evanbennett