Development record
abcd lint's privacy-hygiene rule reports a LAN hostname on internal/core/capture/eligible.go:137, where the match is a Go selector, the field `local` of the value `anchor` joined by a dot, which closes a call's argument list and no hostname at all. The net_lan_hostname pattern's selectorExpression skip (internal/adapter/scanner/network.go) treats a match as a selector only when '(' or '[' follows it, or '=' or '{' after spaces, so a selector passed as a call's last or middle argument, followed by ')' or ',', is reported. abcd lint exits 1 on the warning in a clean tree at 7fb52a6b5.
abcd lint's privacy-hygiene rule reports a LAN hostname on internal/core/capture/eligible.go:137, where the match is a Go selector, the field local of the value anchor joined by a dot, which closes a call's argument list and no hostname at all. The net_lan_hostname pattern's selectorExpression skip (internal/adapter/scanner/network.go) treats a match as a selector only when '(' or '[' follows it, or '=' or '{' after spaces, so a selector passed as a call's last or middle argument, followed by ')' or ',', is reported. abcd lint exits 1 on the warning in a clean tree at 7fb52a6b5.
Grounds
- pursued: abcd lint reports no LAN hostname on internal/core/capture/eligible.go and TestCallArgumentSelectorIsNotAHost passes, while TestHostClosingAParenthesisStillFlags keeps a host in prose parentheses, a list, a URL, a config value, a quoted string and a comment reported; shown wrong if a real hyphen-free lower-case host written as a call argument outside a comment is then missed, the named residual
Frontmatter
| id | iss-2610020840196926 |
|---|---|
| type | issue |
| lifecycle | resolved |
| severity | minor |
.abcd/work/issues/resolved/iss-2610020840196926-abcd-lint-s-privacy-hygiene-rule-reports.md
open on GitHub ↗ · commit history ↗