Running Scalastyle using Coursier
Install Coursier
Mac OS X - using Homebrew
brew tap coursier/formulas
brew install coursier/formulas/coursier
Linux
curl -Lo coursier https://git.io/coursier-cli
chmod +x coursier
Windows
bitsadmin /transfer downloadCoursierCli https://git.io/coursier-cli "%cd%\coursier"
bitsadmin /transfer downloadCoursierBat https://git.io/coursier-bat "%cd%\coursier.bat"
More details on Coursier’s website.
Execute Scalastyle:
coursier launch com.beautiful-scala:scalastyle_2.13:1.5.1 \
-M org.scalastyle.Main -- \
-c scalastyle_config.xml \
src/main/scala
Running Scalastyle from the command line
Download
- scalastyle_2.13-1.5.1-assembly.jar
- scalastyle_2.12-1.5.1-assembly.jar
- scalastyle_2.11-1.5.1-assembly.jar
Execute the jar like:
$ java -jar scalastyle_2.13-1.5.1-assembly.jar -c scalastyle_config.xml src/main/scala
You’ll need a configuration.