diff --git a/build.gradle b/build.gradle index 5fd9cfe..89c1908 100644 --- a/build.gradle +++ b/build.gradle @@ -18,6 +18,8 @@ buildscript { } allprojects { + apply plugin: 'checkstyle' + repositories { google() jcenter() diff --git a/config/checkstyle/checkstyle.xml b/config/checkstyle/checkstyle.xml new file mode 100644 index 0000000..ca6d646 --- /dev/null +++ b/config/checkstyle/checkstyle.xml @@ -0,0 +1,241 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/config/detekt/detekt.yml b/config/detekt/detekt.yml index 3545f2f..05426c6 100644 --- a/config/detekt/detekt.yml +++ b/config/detekt/detekt.yml @@ -192,7 +192,7 @@ exceptions: formatting: active: true - android: false + android: true autoCorrect: true AnnotationOnSeparateLine: active: false @@ -206,7 +206,7 @@ formatting: Filename: active: true FinalNewline: - active: true + active: false autoCorrect: true ImportOrdering: active: false @@ -223,7 +223,7 @@ formatting: active: true autoCorrect: true MultiLineIfElse: - active: true + active: false autoCorrect: true NoBlankLineBeforeRbrace: active: true