This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "*********************************************************" | |
echo "Running git pre-commit hook. Running Static analysis... " | |
echo "*********************************************************" | |
./gradlew ktlintCheck | |
status=$? | |
if [ "$status" = 0 ] ; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
project.afterEvaluate { project -> | |
setupAndroidReporting() | |
} | |
def setupAndroidReporting() { | |
tasks.withType(Test) { | |
// Whether or not classes without source location should be instrumented | |
jacoco.includeNoLocationClasses = true | |
jacoco.excludes = ['jdk.internal.*'] | |
} |