-
Notifications
You must be signed in to change notification settings - Fork 14
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
Feature: enable auto fixable linters #132
Conversation
Hello @dsonck92, honestly I do not think that including linting within the same pipelines is a good idea. Imo it should be splitted into separate CIs. |
@loboda4450 I don't quite follow. Each module has a separate pipeline. Or do you mean you want to have the linting only on MRs and excluding them on others? I'm currently not entirely up to date with the naming in Github actions as I'm using Gitlab CI myself. But feel free to tweak the CIs in a way you think works best. I'm curious about your proposal |
I allowed myself to change them on your branch, so as not to build on each PR :D |
I will cherry-pick that to the fix-module-names PR as I want to correct the module names first. This makes this PR more reliable as well (there seems to be fighting linters on how to sort the imports) I hope |
3a3a694
to
dded8ea
Compare
@loboda4450 I realized that the old pipelines were still in the |
5f55292
to
79dabac
Compare
@dsonck92 obviously, I was in a rush and forgot to remove them :) |
@bouassaba the |
Is it complaining about the Swag comments used to generate OpenAPI specs? |
Ahhhhh, that's where they are coming from. Yeah, I think it would have been nice if that project used the Well, in particular it just wants a dot at the end of a comment sentence |
What if we try to add the dot and do the adjustments required by the linter, then see if the Swag generation is still working? For generating the OpenAPI with redocly, I have it documented on the README.md of each service that has it. |
A convention I used in the past was to add a trailing dot at the end of the comment, which should prevent the dot from interfering with any of the instruction lines |
805def7
to
26f2ab4
Compare
I think these are all the automatic linters. The rest need some consideration, and especially |
I'm all in for code readability - totally agree 👍 I will be happy to follow the recommendations suggested by the tools. |
I had a look through the diff, the automatic linters are doing a pretty good job. |
@dsonck92 I'm done with the new Go based |
26f2ab4
to
bc0fb98
Compare
@bouassaba I think this includes everything now. There are some interesting linters we should enable for webdav though. |
bc0fb98
to
b57badd
Compare
b57badd
to
f80b1ef
Compare
f80b1ef
to
6c4ffcf
Compare
This MR will enable linters and apply their suggested changes. Any linters that need manual decisions are for now excluded.