Directories
¶
| Path | Synopsis |
|---|---|
|
Package builtin registers lintuition's built-in linters and classifiers.
|
Package builtin registers lintuition's built-in linters and classifiers. |
|
classifiers
|
|
|
agentcli
Package agentcli makes coding-agent command lines classifiers: Claude Code (`claude -p`) and the Codex CLI (`codex exec`).
|
Package agentcli makes coding-agent command lines classifiers: Claude Code (`claude -p`) and the Codex CLI (`codex exec`). |
|
fake
Package fake is a deterministic, local classifier that answers from scripted rules.
|
Package fake is a deterministic, local classifier that answers from scripted rules. |
|
jev
Package jev is a classifier backend for TypeSafe System One models (Jev), https://typesafe.ai.
|
Package jev is a classifier backend for TypeSafe System One models (Jev), https://typesafe.ai. |
|
openai
Package openai is a classifier backend for OpenAI-compatible chat completion APIs that return token log probabilities: OpenAI itself, and local servers such as Ollama, llama.cpp, vLLM and LM Studio.
|
Package openai is a classifier backend for OpenAI-compatible chat completion APIs that return token log probabilities: OpenAI itself, and local servers such as Ollama, llama.cpp, vLLM and LM Studio. |
|
Package cli is the lintuition command line.
|
Package cli is the lintuition command line. |
|
cmd
|
|
|
lintuition
command
Command lintuition is the lintuition CLI.
|
Command lintuition is the lintuition CLI. |
|
internal
|
|
|
classify
Package classify turns candidates into classifier requests under the payload policy and checks what comes back.
|
Package classify turns candidates into classifier requests under the payload policy and checks what comes back. |
|
config
Package config decodes and validates the lintuition configuration.
|
Package config decodes and validates the lintuition configuration. |
|
custom
Package custom builds a lintuition binary with plugin linters and classifiers compiled in, the way golangci-lint's module plugin system does: a manifest lists Go modules, a generated main imports them next to the built-ins, and `go build` makes the binary.
|
Package custom builds a lintuition binary with plugin linters and classifiers compiled in, the way golangci-lint's module plugin system does: a manifest lists Go modules, a generated main imports them next to the built-ins, and `go build` makes the binary. |
|
effects
Package effects reads what a function body does to state its caller can see.
|
Package effects reads what a function body does to state its caller can see. |
|
engine
Package engine runs a lint: load, extract, ask, decide, report.
|
Package engine runs a lint: load, extract, ask, decide, report. |
|
facts
Package facts holds typed extraction helpers shared by the built-in linters.
|
Package facts holds typed extraction helpers shared by the built-in linters. |
|
httpx
Package httpx is the HTTP transport shared by the remote classifier backends: https only (plain http only to loopback), redirects never followed, retries on 429, 5xx and transport errors with Retry-After honoured, every retry cleared with the run's budget, a per-minute rate limit, and errors that never carry a request or response body.
|
Package httpx is the HTTP transport shared by the remote classifier backends: https only (plain http only to loopback), redirects never followed, retries on 429, 5xx and transport errors with Retry-After honoured, every retry cleared with the run's budget, a per-minute rate limit, and errors that never carry a request or response body. |
|
load
Package load loads Go packages and runs the linters' analyzers over them.
|
Package load loads Go packages and runs the linters' analyzers over them. |
|
report
Package report holds the canonical issue model, the issue processors (exclusions, severity, limits, sorting) and the output writers.
|
Package report holds the canonical issue model, the issue processors (exclusions, severity, limits, sorting) and the output writers. |
|
tables
Package tables reads the rows of table-driven tests and binds each boolean expectation field to what the loop over the table compares it with.
|
Package tables reads the rows of table-driven tests and binds each boolean expectation field to what the loop over the table compares it with. |
|
twins
Package twins runs lintuition over defect / fixed twins marked with `// want` comments and compares the findings with the marks.
|
Package twins runs lintuition over defect / fixed twins marked with `// want` comments and compares the findings with the marks. |
|
linters
|
|
|
destructiveadvice
Package destructiveadvice finds an error or log message that tells its reader to delete, wipe, reset or reinstall something that holds data, without saying what is lost or how to keep it:
|
Package destructiveadvice finds an error or log message that tells its reader to delete, wipe, reset or reinstall something that holds data, without saying what is lost or how to keep it: |
|
docsignature
Package docsignature finds a doc comment that promises a result the function's signature does not have, as when a function loses its results and its doc is not updated:
|
Package docsignature finds a doc comment that promises a result the function's signature does not have, as when a function loses its results and its doc is not updated: |
|
docvstable
Package docvstable checks a table test's boolean expectation against the doc of the function it tests: a row whose situation, by the doc's own condition, gives the opposite of its want.
|
Package docvstable checks a table test's boolean expectation against the doc of the function it tests: a row whose situation, by the doc's own condition, gives the opposite of its want. |
|
enumcomment
Package enumcomment finds a comment in a block of constants that describes a neighbour rather than the constant it is attached to, as when a constant is inserted or removed and the comments shift by one:
|
Package enumcomment finds a comment in a block of constants that describes a neighbour rather than the constant it is attached to, as when a constant is inserted or removed and the comments shift by one: |
|
errorneedstype
Package errorneedstype is a policy linter: it finds a condition a caller would want to branch on, returned as a plain string error that the caller can only match by its text.
|
Package errorneedstype is a policy linter: it finds a condition a caller would want to branch on, returned as a plain string error that the caller can only match by its text. |
|
humanunit
Package humanunit finds a printf-style message whose wording names one unit for a number while the code passes the number in another:
|
Package humanunit finds a printf-style message whose wording names one unit for a number while the code passes the number in another: |
|
logkeyrole
Package logkeyrole finds a structured log field whose key names a different quantity or role than the variable logged under it, as when a line is copied and the value is changed but not the key:
|
Package logkeyrole finds a structured log field whose key names a different quantity or role than the variable logged under it, as when a line is copied and the value is changed but not the key: |
|
logsensitive
Package logsensitive finds a log call whose structured fields log a secret as is:
|
Package logsensitive finds a log call whose structured fields log a secret as is: |
|
metrictypevshelp
Package metrictypevshelp checks that a Prometheus metric's Help describes the kind of value its type records: a counter's Help a running total, a gauge's a current value, a histogram's or summary's a distribution.
|
Package metrictypevshelp checks that a Prometheus metric's Help describes the kind of value its type records: a counter's Help a running total, a gauge's a current value, a histogram's or summary's a distribution. |
|
normalaterror
Package normalaterror finds an expected, routine event logged at error level, where it pages someone or hides the real errors among the noise:
|
Package normalaterror finds an expected, routine event logged at error level, where it pages someone or hides the real errors among the noise: |
|
prematuresuccess
Package prematuresuccess finds a log line that reports an operation as done before the call that can still fail:
|
Package prematuresuccess finds a log line that reports an operation as done before the call that can still fail: |
|
readonlypromise
Package readonlypromise finds a doc comment that promises a function changes nothing while its body writes state the caller can see:
|
Package readonlypromise finds a doc comment that promises a function changes nothing while its body writes state the caller can see: |
|
sentinelname
Package sentinelname finds a sentinel error whose name and message describe different failure conditions, as when a declaration is copied and only one half is edited:
|
Package sentinelname finds a sentinel error whose name and message describe different failure conditions, as when a declaration is copied and only one half is edited: |
|
severeunderstated
Package severeunderstated finds an unintended loss logged at debug or info level, where nobody looks:
|
Package severeunderstated finds an unintended loss logged at debug or info level, where nobody looks: |
|
suppressionreason
Package suppressionreason checks the reason given in a nolint directive against what the suppressed linter reports:
|
Package suppressionreason checks the reason given in a nolint directive against what the suppressed linter reports: |
|
tablecase
Package tablecase checks the rows of table-driven tests: a case whose name says one boolean outcome while its expectation field says the other, as when a row is copied and the want is not flipped.
|
Package tablecase checks the rows of table-driven tests: a case whose name says one boolean outcome while its expectation field says the other, as when a row is copied and the want is not flipped. |
|
testnameassert
Package testnameassert finds a test whose name says one outcome of the call under test while its assertion on that call's error checks the other:
|
Package testnameassert finds a test whose name says one outcome of the call under test while its assertion on that call's error checks the other: |
|
Package linttest runs lintuition over a directory of defect / fixed twins and checks the findings against `// want "regexp"` (or backquoted) comments, like analysistest does for diagnostics.
|
Package linttest runs lintuition over a directory of defect / fixed twins and checks the findings against `// want "regexp"` (or backquoted) comments, like analysistest does for diagnostics. |
|
Package sdk is the small public contract between lintuition, its linters and its classifiers.
|
Package sdk is the small public contract between lintuition, its linters and its classifiers. |
Click to show internal directories.
Click to hide internal directories.