Skip to content

How can I manually install and set up the checkstyle linter for Vim and ALE? #4082

Discussion options

You must be logged in to vote

ALE requires a binary called "checkstyle" to be present on your PATH in order to find it and use it. Simplest way to get it to work on your environment is to create an executable bash script named "checkstyle" that calls whatever command needed to run the jar:

#!/bin/sh

java -jar /path/to/checkstyle.jar com.puppycrawl.tools.checkstyle.Main "$@"

Copy the bash script into your path (e.g. /usr/local/bin/checkstyle) and make it executable (e.g. chmod +x /usr/local/bin/checkstyle). Note you will have to ensure the script accepts and passes any arguments directly (e..g "$@").

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@TheButterflyMon
Comment options

Answer selected by TheButterflyMon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants