Hey guys, This is a bit of a continuation of <this...
# plugins
h
Hey guys, This is a bit of a continuation of this discussion over on GH I'm trying to go around the partitioning system for linters to I try to create my own lint request class and I'm always hitting a wall with something missing Is there ANY way to do linting without going through a "formal" request?
h
Hmm, this would be straightforward as a new goal, where you can bypass the linting helper classes, since in your case they aren’t actually helpful…
But to do this under the existing
lint
goal, let me see…
Reading that gh issue, I think there is an impedance mismatch of sorts between what you’re trying to do (act on the entire source tree as input) and what Pants considers a “linter” (act file-by-file, with maybe your dependencies as available context).
Have you considered doing this as a new custom goal, say
mycheck
or whatever you want to call it?
h
I see what you're saying... I haven't considered it because it adds an "extra step" to our CI checks, but if there's no other way to go around it, then I guess this is what I'll do...
It's really handy when you add new linters in and the CI doesn't have to change 😉
h
True! But what you’re building isn’t really a “linter” as Pants understands that term (assuming I correctly understand what you’re building)
👍 1