Documentation
¶
Overview ¶
Package golang is the Go LanguageProvider. It backs its analysis with the stdlib go/ast parser (no CGO, no external dependency — see ADR 0001) and is codefit's self-audit bootstrap: codefit audits its own Go code from day one.
Index ¶
- type Provider
- func (*Provider) AnalyzePractices(src providers.SourceFile) ([]findings.Finding, error)
- func (*Provider) AnalyzeSecurity(src providers.SourceFile) ([]findings.Finding, error)
- func (*Provider) AnalyzeSurface(src providers.SourceFile) ([]findings.SurfaceItem, error)
- func (*Provider) DefaultPathCriticality() config.PathCriticality
- func (*Provider) FileExtensions() []string
- func (*Provider) Frameworks() []string
- func (*Provider) Language() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct{}
Provider implements providers.LanguageProvider for Go.
func (*Provider) AnalyzePractices ¶
AnalyzePractices runs the Go best-practice checks.
func (*Provider) AnalyzeSecurity ¶
AnalyzeSecurity runs the static (go/ast) security checks for Go.
func (*Provider) AnalyzeSurface ¶
func (*Provider) AnalyzeSurface(src providers.SourceFile) ([]findings.SurfaceItem, error)
AnalyzeSurface maps the auditable structural surface of a Go file.
func (*Provider) DefaultPathCriticality ¶
func (*Provider) DefaultPathCriticality() config.PathCriticality
func (*Provider) FileExtensions ¶
func (*Provider) Frameworks ¶
Click to show internal directories.
Click to hide internal directories.