Documentation
¶
Overview ¶
Package v2 — world-class static analysis platform. Three layers:
- External tool adapters (golangci-lint/semgrep/ruff/shellcheck/eslint)
- Self-built semantic analyzers (nil-path/race/leak/SQLi/crypto)
- Architecture scanners (god-pkg/cycle/layer/gap)
Single `ok-verify` command covers Go/Python/JS-TS/Rust/Shell/mixed repos. Output: terminal table or structured JSON with severity grading + fix patches.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DetectLanguages ¶
DetectLanguages guesses the primary languages in a project directory by checking for marker files.
Types ¶
type Finding ¶
type Finding struct {
Analyzer string `json:"analyzer"`
Layer string `json:"layer"`
Severity Severity `json:"severity"`
File string `json:"file"`
Line int `json:"line"`
Column int `json:"column"`
Message string `json:"message"`
Category string `json:"category,omitempty"`
Fix string `json:"fix,omitempty"`
Rule string `json:"rule,omitempty"`
}
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func NewDefaultRegistry ¶
func NewDefaultRegistry() *Registry
NewDefaultRegistry creates a Registry pre-loaded with all analyzers. External adapters are added based on tool availability; self-built analyzers are always added for the languages they support.
func NewRegistry ¶
func NewRegistry() *Registry
type Report ¶
Click to show internal directories.
Click to hide internal directories.