Replies: 1 comment
-
Related:
Bonus: if Note: from Python, we could then pretty easily integrate with CLI tools if necessary. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'd like to be able to generate "possible" lints with
relint
, and then use other CLI tools to determine whether each lint is a false positive or not.Specifically, my use-case is to find instances of
\bTODO #\d+
and check whether the#\d+
refers to an open ticket. This requires checking the status of tickets in a ticket-tracker, which is well outside the purview ofrelint
. But ifrelint
had a way to feed a particular lint to a downstream program, especially using regex captures, this would be pretty simple:Here, a status code of
1
means that the lint IS valid, and0
means it's a false positive. (I'm not sure whether there's a better way to do this than using status codes, and it's not obvious whether0
should mean "valid" or "false positive", but I think those are primarily documentation issues.)Beta Was this translation helpful? Give feedback.
All reactions