Go stdlib package — go/scanner. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.
.ErrorList.Add()NeutralErrorList.Add(pos token.Position, msg string)
Add adds an Error with given position and error message to an ErrorList.
.ErrorList.Err()NeutralErrorList.Err() error
Err returns an error equivalent to this error list.
.ErrorList.Error()NeutralErrorList.Error() string
An ErrorList implements the error interface.
.ErrorList.RemoveMultiples()NeutralErrorList.RemoveMultiples()
RemoveMultiples sorts an ErrorList and removes all but the first error per line.
.ErrorList.Sort()NeutralErrorList.Sort()
Sort sorts an ErrorList. *Error entries are sorted by position,
| FQN | Field | |
|---|---|---|
| go/scanner | fqns[0] |
Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.
// standard library — no go.mod entry required
from codepathfinder.go_rule import ... # go/scanner