hasGoMod reports whether the given directory contains a go.mod file at its root. Used to scope the typed-resolution advisory to repos that look like Go workspaces; unit-test fixtures without go.mod stay silent.
(root string)
| 261 | // its root. Used to scope the typed-resolution advisory to repos that look |
| 262 | // like Go workspaces; unit-test fixtures without go.mod stay silent. |
| 263 | func hasGoMod(root string) bool { |
| 264 | _, err := os.Stat(filepath.Join(root, "go.mod")) |
| 265 | return err == nil |
| 266 | } |
| 267 | |
| 268 | // isErrsScope reports whether a path is inside the errs/ package (including |
| 269 | // any subpackage). Used to scope-out CheckDeclaredSubtype from the package |
no test coverage detected