Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…kotlin into main
  • Loading branch information
jggomezt committed Apr 14, 2021
2 parents e19d1fe + f853cc4 commit 0c9adcb
Showing 1 changed file with 45 additions and 1 deletion.
46 changes: 45 additions & 1 deletion README.md
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.

0 comments on commit 0c9adcb

Please sign in to comment.