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

Enable setting the file encoding option #22

Open
lespea opened this issue Jul 15, 2014 · 1 comment
Open

Enable setting the file encoding option #22

lespea opened this issue Jul 15, 2014 · 1 comment

Comments

@lespea
Copy link

lespea commented Jul 15, 2014

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.

@evanbennett
Copy link

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:

new ScalastyleChecker().checkFiles(configuration, Directory.getFiles(None, filesToProcess, Nil))

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants