False positives: "can use", "via ssh" #28
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Of course, I could add these to the false positives list, but maybe there's a better, more general way to tackle these.
Yeah, adding
canuseandviasshto the default list of false positives is probably going to be the easiest way to tackle this.True. My issue was more about whether there could be a way to detect these innocent legitimate two word messages.
Yeah there isn't really one besides using the false positives list.
You could create a PR to add them to the default false positives if you'd like:
TwiN/go-away@b5570dbc77/falsepositives.go (L4)It would take some work on your end, but you could process my comprehensive false positives list in a code generator, as follows:
If you're wondering, I generated it using a dictionary search of words and pairs of words, combined with my own additions.
The downside is that my filter operates a bit differently (has some interesting heuristics), and doesn't require certain false positives to be explicitly included in its list. In these cases, you would still need to maintain your own false positive list and/or replicate the dictionary search.
Thanks for commenting! @TwiN this could also be a good place to use go:embed (then decode on init() possibly)
(I’m curious: how did you find this thread @finnbear?)
True! The downside here is that you would be including the entire list, when only a subset is relevant to goaway. A build step/code generator is more work, but could avoid wasting space in the compiled binary by filtering in advance.
I check in on this repository every once in a while, as it was and is a great source of inspiration for my profanity filters 😃
We could trim the file once as needed