-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Check for uncommited changes #6709
Conversation
Demo is available at |
Feel free to remove the whole section ;-) |
There isn't some sort of |
I don't understand the question completely... Quick description what happens: |
What I meant is if the linter has a mode in which it fails the build instead of creating those uncommitted changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also please write meaningfull commit messages and PR titles
28c3e2d
to
0b6ee8b
Compare
The build.gradle already uses "strict-mode" ( Line 168 in 39722a5
Maybe we could add a build profile where the formatting is not done in the CI build? But I think the underlying problem here is that people sometimes disable the linter and checkstyle (because it annoys them) and then commit the changes. |
Improved the commit messages 😄 |
Can you explain where it says that it's strict mode? From a bit googling it seems there isn't even a strict mode. None the less after some rumonations I came to the idea of adding a step which runs Can you also create a showcase PR which shows the build failing because of this. |
Line 168 in 39722a5
the the build results in:
when there are any malformed kotlin files.
Build the app by whom? The CI or the developers?
No it doesn't (natively) do that. See above (I just see The current script still enforces the following statement - programming language and tool independent (and not just wrong formatted kotlin files). If you still consider it "hacky" please take a look at GitHub's action repositories:
I demonstrated the changes already there: Updated it to also include the new messages 😄 |
By CI
If the others also see it that way, than I won't object. But I won't approve this (beside only for removing my "requested changes" status) |
I personally would prefer just adding
|
That sound like a good and simple idea. |
Tested it out and it looks good:
|
I'd say that's ok
Nope, that's run just at the beginning of the build. We need to run ktlint before building because otherwise formatKtlint would be run before, but there is no formatCheckstyle, so we are fine
I don't think that it's needed |
Succeeded by #6808 |
What is it?
Description of the changes in your PR
As mentioned in #6708:
Fixes the following issue(s)
APK testing
The APK can be found by going to the "Checks" tab below the title. On the left pane, click on "CI", scroll down to "artifacts" and click "app" to download the zip file which contains the debug APK of this PR.
Due diligence
Make sure that the files on the
dev
-branch are formatted correctly.