You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 18, 2018. It is now read-only.
It would be great if ocamlint could be ran in a way that produced a unified diff, instead of a warning. Linting, in my opinion, is so useful because it is, by definition, things that don't require much thought eg trailing whitespace, an the things ocamllint is currently doing. If ocamlint could return a diff, then it can be used interactively which tools such as arcanist to either autocorrect problems, or interactively ask the user if they want the corrections.
I didn't look into the implementation, so I do not know how feasible this is. I did notice that you state the rules work on the abstract syntax tree. Is the original syntax still around?
Curious to hear your thoughts on the usefulness of this idea, as well as the difficulty in implementing.
It would be great if ocamlint could be ran in a way that produced a unified diff, instead of a warning. Linting, in my opinion, is so useful because it is, by definition, things that don't require much thought eg trailing whitespace, an the things ocamllint is currently doing. If ocamlint could return a diff, then it can be used interactively which tools such as arcanist to either autocorrect problems, or interactively ask the user if they want the corrections.
I didn't look into the implementation, so I do not know how feasible this is. I did notice that you state the rules work on the abstract syntax tree. Is the original syntax still around?
Curious to hear your thoughts on the usefulness of this idea, as well as the difficulty in implementing.
Thanks!