[FR]: Require/force ktlint/spotless on PRs
See original GitHub issueIs there an existing issue for this?
- I have searched the existing issues
Is this a feature request for one of the samples?
- Yes, this is a specific request related to this samples repo.
Sample app
Crane
Describe the problem
We can submit code that fails lint checks 😭
Describe the solution
We could run spotless as part of the build checks and fail when there are issues.
We could also consider ./scripts/gradlew_recursive.sh spotlessApply
as a precommit hook or some other way to easily automate this.
Additional context
No response
Code of Conduct
- I agree to follow this project’s Code of Conduct
Issue Analytics
- State:
- Created a year ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Step by Step: How to setup ktlint with spotless? - SourceLevel
Learn how to set up ktlint using spotless. Amadeu Cavalcante shows step by step how to configure ktlint using Gradle and spotless.
Read more >Newest 'ktlint' Questions - Stack Overflow
I have successfully integrated the ktlint with spotless plugin but now I need to ... TaskExecutionException: Execution failed for task ':app:spotlessKotlin'.
Read more >Android project code style using Spotless and ktlint - Medium
Improving your code style in just 10 minutes with Spotless and ktlint. ... Now we need to include spotless.gradle in our build —...
Read more >diffplug/spotless - build.gradle.kts - Gitter
@nedtwigg sorry for messing with git. You must got tons of mails. ... Unresolved reference: ktlint FAILURE: Build failed with an exception.
Read more >Android compose-samples Issues - Giters
[FR]: Fully jetpack compose for JetSurvey. Updated 13 days ago ... Feautue[FR]:. Closed 24 days ago 1 ... [FR]: Require/force ktlint/spotless on PRs....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Narrowed it down further, they are being cancelled as a side effect of https://github.com/android/compose-samples/pull/796
This should fix it - https://github.com/android/compose-samples/pull/814