From 16810b083ae6589a26ee0d0b60563447a92fc588 Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Wed, 11 Jan 2017 00:48:06 +0100 Subject: Add support for running checkstyle after compilation --- README | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'README') diff --git a/README b/README index b01226f..2071e72 100644 --- a/README +++ b/README @@ -32,6 +32,34 @@ allprojects { That should be it. +If you use checkstyle, you can expand the java-mode-hook: +(add-to-list + 'java-mode-hook + '(lambda () + (progn + (require 'flycheck-android-experimental) + (setq flycheck-android-java-checkstyle-jar + "tools/checkstyle/checkstyle-6.5-all.jar" + flycheck-android-java-checkstyle-path + "tools/checkstyle" + flycheck-android-java-checkstyle-config + "checkstyle-config-android.xml" + flycheck-android-java-checkstyle-properties + "checkstyle.properties")))) + +These are standard flycheck options so there are other ways to set them. + +If flycheck-android-java-checkstyle-jar is set checkstyle will be used, if it +isn't set then the other options are ignored. +flycheck-android-java-checkstyle-jar and flycheck-android-java-checkstyle-path +are both relative the project directory. +flycheck-android-java-checkstyle-config and +flycheck-android-java-checkstyle-properties are both relative +flycheck-android-java-checkstyle-path or if it's not set, the project directory. +All options can be absolute paths. +If flycheck-android-java-checkstyle-path is set it will be used as working +directory otherwise the project directory is. + ============================================================================= For the developer ============================================================================= -- cgit v1.2.3-70-g09d2