From 2cca95c8a148699b25b9a341a91dfc05cae4837c Mon Sep 17 00:00:00 2001 From: Josh Guilfoyle Date: Mon, 3 Aug 2015 12:49:15 -0700 Subject: [PATCH] Add checkstyle rules This is intended to run on Travis-CI to fail builds which don't adhere to the style. --- build.gradle | 6 ++ checkstyle-suppressions.xml | 8 ++ checkstyle.xml | 143 ++++++++++++++++++++++++++++++++++++ 3 files changed, 157 insertions(+) create mode 100644 checkstyle-suppressions.xml create mode 100644 checkstyle.xml diff --git a/build.gradle b/build.gradle index afb66033..f53e3916 100644 --- a/build.gradle +++ b/build.gradle @@ -12,3 +12,9 @@ allprojects { jcenter() } } + +apply plugin: 'checkstyle' + +checkstyle { + configFile = new File("${project.projectDir}", "checkstyle.xml") +} diff --git a/checkstyle-suppressions.xml b/checkstyle-suppressions.xml new file mode 100644 index 00000000..a3eb0962 --- /dev/null +++ b/checkstyle-suppressions.xml @@ -0,0 +1,8 @@ + + + + + + diff --git a/checkstyle.xml b/checkstyle.xml new file mode 100644 index 00000000..5cba64dd --- /dev/null +++ b/checkstyle.xml @@ -0,0 +1,143 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +