-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/jggomez/pre-commit-android-…
…kotlin into main
- Loading branch information
Showing
1 changed file
with
45 additions
and
1 deletion.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,45 @@ | ||
# pre-commit-android-kotlin | ||
|
||
# pre-commit-hooks for Android-Kotlin | ||
|
||
Android Kotlin hooks for [http://pre-commit.com/](http://pre-commit.com/) | ||
|
||
## Using pre-commit-hooks with pre-commit | ||
|
||
Add this to your `.pre-commit-config.yaml` | ||
|
||
``` | ||
- repo: https://github.com/jggomez/pre-commit-android-kotlin | ||
rev: v1.0.0 | ||
hooks: | ||
- id: ktlint | ||
- id: unit_tests | ||
- id: build | ||
``` | ||
|
||
## Hooks available | ||
|
||
- `ktlint`: Runs `ktlintFormat`, requires ktlint. | ||
- `unit_tests`: Runs the unit tests | ||
- `build`: Compiles the source code of the project in debug mode | ||
|
||
Made with ❤ by [jggomez](https://devhack.co). | ||
|
||
[![Twitter Badge](https://img.shields.io/badge/-@jggomezt-1ca0f1?style=flat-square&labelColor=1ca0f1&logo=twitter&logoColor=white&link=https://twitter.com/jggomezt)](https://twitter.com/jggomezt) | ||
[![Linkedin Badge](https://img.shields.io/badge/-jggomezt-blue?style=flat-square&logo=Linkedin&logoColor=white&link=https://www.linkedin.com/in/jggomezt/)](https://www.linkedin.com/in/jggomezt/) | ||
[![Medium Badge](https://img.shields.io/badge/-@jggomezt-03a57a?style=flat-square&labelColor=000000&logo=Medium&link=https://medium.com/@jggomezt)](https://medium.com/@jggomezt) | ||
|
||
## License | ||
|
||
Copyright 2021 Juan Guillermo Gómez | ||
|
||
Licensed under the Apache License, Version 2.0 (the "License"); | ||
you may not use this file except in compliance with the License. | ||
You may obtain a copy of the License at | ||
|
||
http://www.apache.org/licenses/LICENSE-2.0 | ||
|
||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
See the License for the specific language governing permissions and | ||
limitations under the License. |