-
Notifications
You must be signed in to change notification settings - Fork 404
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
Custom lint ? #3471
Comments
You can, but the protocol is secret :) If you generate a file called |
Unfortunately that does not seem to work :/ However, it seems that the definition of the promotion is only done in the I made a small repro here : https://github.com/giltho/dune-repro-no-lint I don't know what should be the right way of doing that though, writing to .lint-corrected, or doing the same thing as for preprocessing, i.e. using stdout (https://dune.readthedocs.io/en/stable/concepts.html#preprocessing-with-actions). |
Ah, indeed. I forgot about this.
I suppose that would work. It's a breaking change though so we'd have to handle it carefully. @NathanReb has been preparing a new improved "linting pipeline" so that different linters can work well together. So any such change should be considered in the context of this work or at least postponed so that we don't go in different directions. BTW, if you'd like to help on this front that would be welcome :) |
Sure I'd love to help with it :) And it's clearly not an emergency so it can wait for the linting pipeline rework to be done |
Great :) If you'd like to help us improve the linting process in general, we can plan a chat between the three of us so that we can show you our plan and discuss how you can help, or if you'd rather focus on the idea of having lint action produce a correction, we'll come back to you once we have the new linting pipeline in place. Just let me know, thanks! |
Although I'm interested, I already have too much to do on other projects already :/ I think it would be counter productive for me to participate in the linting pipeline improvement. But do ping me once it is done, or almost, so that I can help with that part :) |
Sounds good! |
Folks, do you think that specifying linter command should be done outside dune rules, from command line? Imagine the following situation: I force to use dune for homework in my FP course and want to setup a linter. Students remove linting lines from |
Hi!
Desired Behavior
Hello, it seems that the current system makes it impossible to run a custom promotable linting action, as it is possible for ppx.
will let you run
dune build @lint
and thendune promote
In the same manner, I would expect
to let produce promotable files where every one of my ml and mli file have been overridden by files containing just "test".
I know it's happening in
preprocessing.ml > lint_module > | Action
where the target is set toNone
and nopromote_correction
is happening, but I haven't had time to dive deeper into it to make it work yetThe text was updated successfully, but these errors were encountered: