summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@yahoo.com>2017-01-11 00:48:06 +0100
committerJoel Klinghed <the_jk@yahoo.com>2017-01-11 00:48:06 +0100
commit16810b083ae6589a26ee0d0b60563447a92fc588 (patch)
tree3c9adaaecd2aa1e3865bd78dd584760e00fa611d /README
parentf933d0d3efcd441eecde54bcd5891c1d8cac1eec (diff)
Add support for running checkstyle after compilation
Diffstat (limited to 'README')
-rw-r--r--README28
1 files changed, 28 insertions, 0 deletions
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
=============================================================================