scalastyle-sbt-plugin
scalastyle-sbt-plugin copied to clipboard
scalastyle-sbt-plugin
The user guide suggests that to run scalastyle as part of another task you need to add: ``` lazy val compileScalastyle = taskKey[Unit]("compileScalastyle") // scalastyle >= 0.9.0 compileScalastyle := scalastyle.in(Compile).toTask("").value...
I run `sbt scalastyle` command end everything looks fine, while exit code of this task is 1 that fails our CI server. ``` pozharko@pozharko-desktop ~/Code/ergo/ergo $ sbt scalastyle [info] Loading...
This is my configuration ``` java,scala,others,mycompany javax?\..+ scala\..+ com.mycompany\..+ .+ ``` and the following import is being flagged as invalid by scalastyle, reporting `There should be no empty line separating...
I have added a new `compileThenCheckStyle` task which does what it sounds like it does. There is also a `scalastyleCompileArgs` which is the input into the `scalastyle` task. Neither of...
Trailing commas lead to very confusing errors. Trailing commas were added in [SIP-27](https://docs.scala-lang.org/sips/completed/trailing-commas.html) (Scala 2.12.2). I don't actually use them intentionally but it can take a very long time to...
how to wrote new scalaStyle code for my project to avoid instantiate from other classes{ Avoid new keyword }, i am new to this. how to deploy that rule to...
scalastyle-sbt-plugin currently prints message in multiple lines, like this: ``` [info] scalastyle Processed 9 file(s) [info] scalastyle Found 0 errors [info] scalastyle Found 0 warnings [info] scalastyle Found 0 infos...
Configuring `ScalastyleConfiguration` by hand in Scala instead of parsing the XML configuration file is "type-safer". This renames `scalastyleConfig` `settingKey[File]` to `scalastyleConfigFile` and creates a `scalastyleConfig` `settingKey[Option[ScalastyleConfiguration]]` that can be used...
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