would anyone be interested in baseline functionali...
# ktlint
j
would anyone be interested in baseline functionality in ktlint? happy to put up a PR but just gauging interest
👍 1
s
Hey Josh! Not sure what you mean by baseline functionality?
j
kind of like lint's baseline, the first time you run it generates a "baseline" file with all the errors. then it later runs it checks against the baseline and if the error is already in the baseline then it doesn't report it again
its to help if you are adding ktlint into a project but don't want to fix all the errors right away
s
Ah, make sense. A naive version shouldn't be too hard to implement, either.
I'm actually wondering if somehow you could build a custom reporter that would do it
j
no, i've got the code ready but not sure if it is worth merging into the main repo
s
Ah, ok. Definitely put it up and we can take a look
j
the only problem i had with making the custom reporter is that if you add multiple reporters you still fail
but my solution is a bit "hacky" ha
s
Haha yeah. Go ahead and put up a PR and we can discuss it there
cc @tapchicoma
j
sweet, hopefully it's not too weird. i put it up so let me know what y'all think 🙂
a
I would definitely be interested!