Type ProcessOptions.Source to prevent typoed scan labels #29
Labels
No labels
dep-scan
dep-scan
dep-scan
dep-scan
dep-scan
dep-scan
dep-scan
dep-scan
dep-scan
dep-scan/ignore
dep-scan/ignore
dep-scan/ignore
dep-scan/ignore
dep-scan/ignore
dep-scan/ignore
dep-scan/ignore
dep-scan/ignore
dep-scan/ignore
finding
mod-nag
mod-nag
mod-nag
mod-nag
mod-nag/ignore
mod-nag/ignore
mod-nag/ignore
mod-nag/ignore
bug
doc
duplicate
enhancement
help wanted
invalid
question
security
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
IUS/xr-invoiced#29
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?
Found during review of #24.
scanner.ProcessOptions.Sourceis a free-form string. Callers pass literal"initial","startup","idle". Typos would silently produce wrong scan labels and only get caught (if at all) by the brittle source-string regression tests.Suggested change:
The wire-format value is preserved; callers gain compile-time safety.
Refs: PR #24
Related commit:
2305c33. ProcessOptions.Source is still a string in the current tree, so the typo risk described in this finding still exists.