You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -77,9 +77,15 @@ Git Hooks allow running a pre commit script to make sure the code complies with
77
77
78
78
This template is using [**ktlint**](https://github.com/pinterest/ktlint) with the [ktlint-gradle](https://github.com/jlleitschuh/ktlint-gradle) plugin to format your code. To reformat all the source code as well as the buildscript you can run the `ktlintFormat` gradle task.
79
79
80
+
Run `./gradlew ktlintCheck` to check if the there are any lint issues.
81
+
82
+
Run `./gradlew ktlintFormat` to format the code across the project.
83
+
80
84
This template is using [**detekt**](https://github.com/detekt/detekt) to analyze the source code, with the configuration that is stored in the [config.yml](.detekt/config.yml) file (the file has been generated with the `detektGenerateConfig` task).
81
85
82
-
Run `scripts/process-code.sh` to fix the code style and update the copyright.
86
+
Run `./gradlew detekt` to analyze the code.
87
+
88
+
Alternatively, you can Run `scripts/process-code.sh` to fix the code style and update the copyright all at once.
0 commit comments