-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: precommit with detekt #1181
Conversation
b27f49d
to
57f2c08
Compare
Test Results 57 files + 7 57 suites +7 1m 22s ⏱️ +24s Results for commit 483f9ca. ± Comparison against base commit 27154b5. This pull request removes 187 and adds 177 tests. Note that renamed tests count towards both.
♻️ This comment has been updated with latest results. |
Did a try and:
|
README.md
Outdated
@@ -133,6 +133,17 @@ If you want to build only one of the services, you can launch: | |||
|
|||
Commits follow the [Conventional Commits specification](https://www.conventionalcommits.org/en/v1.0.0/). | |||
|
|||
### Pre-commit | |||
The precommit hook use gradle to automatically apply detekt rules. | |||
It will not be able to work if gradle is not in your $path variable |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
since the script is calling ./gradlew
, I think it is not needed to install Gradle beforehand (it will be done when first calling gradlew
: https://docs.gradle.org/current/userguide/gradle_wrapper.html).
57f2c08
to
1052562
Compare
Co-authored-by: Benoit Orihuela <[email protected]>
I did |
Looked good when tried today. Remember you wanted to add one last improvement. |
Sadly the return code from auto-correct and unexpected error is the same (1). So the idea of looping only when there was an auto correct is not possible. |
Quality Gate passedIssues Measures |
No description provided.