scalastyle / scalastyle-sbt-plugin

scalastyle-sbt-plugin
Apache License 2.0
139 stars 52 forks source link

Add input file encoding setting. #67

Open evanbennett opened 6 years ago

evanbennett commented 6 years ago

Adds scalastyleInputEncoding with default None for backwards compatibility, and passes the value to the required function. Adds a test to confirm UTF-8 character encoding works.

Closes #22

evanbennett commented 6 years ago

The new test succeeds locally for me. OS: Windows 10 Java: java version "1.8.0_121" Java(TM) SE Runtime Environment (build 1.8.0_121-b13) Java HotSpot(TM) 64-Bit Server VM (build 25.121-b13, mixed mode) sbt: 1.0.2

Can you confirm that it fails in your environment?

matthewfarwell commented 6 years ago

Thanks for this. I'll have a look when I have time.