Fix git hooks for new source location
Signed-off-by: Álvaro Brey Vilas <alvaro.brey@nextcloud.com>
This commit is contained in:
parent
797316b75a
commit
d23d20f31b
@ -410,7 +410,7 @@ task installGitHooks(type: Copy, group: "development") {
|
|||||||
from("${project.rootDir}/scripts/hooks") {
|
from("${project.rootDir}/scripts/hooks") {
|
||||||
include '*'
|
include '*'
|
||||||
}
|
}
|
||||||
into '.git/hooks'
|
into "${project.rootDir}/.git/hooks"
|
||||||
}
|
}
|
||||||
|
|
||||||
detekt {
|
detekt {
|
||||||
|
@ -3,12 +3,12 @@
|
|||||||
echo "Running pre-commit checks."
|
echo "Running pre-commit checks."
|
||||||
|
|
||||||
if ! ./gradlew --daemon ktlint &>/dev/null; then
|
if ! ./gradlew --daemon ktlint &>/dev/null; then
|
||||||
echo >&2 "Lint failed! See report at file://$(pwd)/build/ktlint.txt"
|
echo >&2 "Lint failed! See report at file://$(pwd)/app/build/ktlint.txt"
|
||||||
echo >&2 "Hint: fix most lint errors with ./gradlew ktlintFormat"
|
echo >&2 "Hint: fix most lint errors with ./gradlew ktlintFormat"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! ./gradlew --daemon detekt &>/dev/null; then
|
if ! ./gradlew --daemon detekt &>/dev/null; then
|
||||||
echo >&2 "Detekt failed! See report at file://$(pwd)/build/reports/detekt/detekt.html"
|
echo >&2 "Detekt failed! See report at file://$(pwd)/app/build/reports/detekt/detekt.html"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user