FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
pluto/pre-commit at develop · androidPluto/pluto · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
androidPluto
/
pluto
Public
Notifications
You must be signed in to change notification settings
Fork
66
Star
700
Code
Issues
23
Pull requests
3
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
pluto
/
pre-commit
Copy path
More file actions
More file actions
Latest commit
History
History
History
20 lines (19 loc) · 646 Bytes
Breadcrumbs
pluto
/
pre-commit
Copy path
File metadata and controls
20 lines (19 loc) · 646 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!
/bin/bash
echo
"
Running pre-commit checks...
"
OUTPUT=
"
/tmp/analysis-result
"
./gradlew detekt ktlintCheck
>
${OUTPUT}
EXIT_CODE=
$?
if
[
${EXIT_CODE}
-ne
0 ]
;
then
cat
${OUTPUT}
rm
${OUTPUT}
echo
"
*********************************************
"
echo
"
Checks Failed!
"
echo
"
Resolve found issues before committing
"
echo
"
*********************************************
"
exit
${EXIT_CODE}
else
rm
${OUTPUT}
echo
"
*********************************************
"
echo
"
Checks Passed Successfully!
"
echo
"
*********************************************
"
fi
Back
|
FazBrowse Home
|
New Git URL