mattttvaughn / chronicle

GNU General Public License v3.0
214 stars 58 forks source link

Add ktlint gradle plugin and git hook #84

Closed AnDr3w7911 closed 2 years ago

AnDr3w7911 commented 2 years ago

I thought this would be useful to keep the codebase clean and adhering to the kotlin style guide.

I know this touches A LOT of files that is because I ran the ktlintFormat task which auto formatted the code base based on the kotlin style guide. The important files to look at are build.gradle, pre-commit, and README.md. Everything else should just be formatting changes.

If you don't like the idea feel free to reject the pull request I just thought something like this would help.

Links for more information: https://medium.com/nerd-for-tech/setup-ktlint-with-your-android-app-and-using-github-hooks-2cfc42a2cf2 https://github.com/jlleitschuh/ktlint-gradle https://developer.android.com/kotlin/style-guide

mattttvaughn commented 2 years ago

Hey sorry for the delay, this is awesome, thank you! I've been meaning to get ktlint into chronicle for a while now, and the pre-commit hook is a great touch on top of that.