View on GitHub

Scalastyle - Command line

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.0 \
    -M org.scalastyle.Main -- \
    -c scalastyle_config.xml \
    src/main/scala

Running Scalastyle from the command line

Download

Execute the jar like:

$ java -jar scalastyle_2.13-1.5.0-assembly.jar -c scalastyle_config.xml src/main/scala

You’ll need a configuration.