-
Notifications
You must be signed in to change notification settings - Fork 52
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
fix:Made some changes so that errors show up during ktlint pr review #79
Conversation
Thank you for the pull request!The Scribe team will do our best to address your contribution as soon as we can. The following is a checklist for maintainers to make sure this process goes as well as possible. Feel free to address the points below yourself in further commits if you realize that actions are needed :) If you're not already a member of our public Matrix community, please consider joining! We'd suggest using Element as your Matrix client, and definitely join the General and Android rooms once you're in. Also consider joining our bi-weekly Saturday dev syncs. It'd be great to have you! Maintainer checklist
|
I have made some tests in my repo using some ktlint pr workflow tool from GitHub marketplace and found that this one works well and a config file could be added to tweak the lint checks. |
Awesome, @angrezichatterbox! Really appreciate your research here! |
Will bring this in tonight |
Hey @angrezichatterbox 👋 Sorry for the changes here. I'm looking at a couple of Kotlin starter projects, and it does seem like ktlint and detekt are normally ran without plugins. I was specifically checking krzdabrowski/android-starter-2022, but then the way that plugins are managed is different. Could you take another look at this and figure out the missing ktlint and detekt from the project? I think that this way's a bit more standard, from what I've been seeing. Feedback would be appreciated! I just don't really see the need to add in reviewdog into this as well via the action you found when there are some solid options out there :) |
I will take a look into adding those plugins to build.gradle. Also after this issue, I guess we could have an issue migrating from Groovy build files to Kotlin build configuration as I could see most docs just mentioning adding their plugin to kotlin build config files directly. It would be really helpful for this project moving forward. |
f706ba2
to
96fdcd9
Compare
detekt is added to grade and the run seems to be fine. ktlint works fine but lintKotlin doesn't seem to be added as a task when ktlint plugin is added I will look into it and try figuring it out :). |
Thanks for all the efforts here, @angrezichatterbox! And yes I was also thinking that a next issue could be to migrate over to directly installed plugins :) Feel free to make that issue whenever, or I'm also happy to 😊 |
I have added the lintKotlin to also work It would fail as there are linting issues but the command no longer shows its not present in the tasks. I will create an issue for migrating from groovy to Kotlin. |
This is great, @angrezichatterbox! Nice to see that it's working, regardless of the errors 😊 Do you want to look into a way of disabling them and we can make good first issues to undisable the issue and fix the linting errors, or should we merge and just know that future PRs will fail the linting check? We can make the issues to fix the errors either way :) |
Yes we can disable some of them for now. I could use ./gradlew formatKotlin command for an linting issues that can be auto formatted and then I could see the linting errors left and then disable them. |
Is there a way to disable the rules one by one, so like disabling the indentation errors? No stress on this though. I'd be happy to make individual issues for this and the workflow can just fail until it doesn't :) |
Yes, It is possible to disable them one by one. I will be disabling them one by one. |
9eeee65
to
b528c6a
Compare
I have disabled the linting issues for now. There are 4 that I have disabled. |
Nice, @angrezichatterbox! Do you want to make four good first issues for how to enable the linting checks you disabled and give advice on how to solve them? |
Or let's do this over the weekend once this is merged :) Will do it later! |
I could make issues for those once this is merged. :) |
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.
Thank you for the work in settings this up, @angrezichatterbox, and beyond that for taking the time to fix the initial errors! 😊 Is already looking so much better, and this is really going to improve the development experience for people :)
Contributor checklist
Description
Related issue