Documentation
¶
Overview ¶
Package deadsetgo carries the two documents this analyzer commits about its own conformance, so the command can state what a reader of the repository opens.
The documents sit at the root of the repository, where a reader looks for what the analyzer declines and where the products that consume them read them. The command's own package cannot carry them from there: an embed pattern reaches no file above the directory of the package that declares it, and the digest a report states has to be taken over the bytes the binary holds, because a digest written beside the document it describes is a second copy of one fact and the two can disagree at any commit. This package exists for that one reason and holds nothing else.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Gaps []byte
Gaps is conformance.json: the corpus version this analyzer answers and every capability it declines, with the reason for each.
var Results []byte
Results is conformance-results.json: the per-fixture record this analyzer's corpus runner wrote, the result over the whole corpus included. The digest a report states in its conformance block is the SHA-256 of these bytes.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
deadset-go
command
Command deadset-go reports unused symbols in a Go module and its declared consumers.
|
Command deadset-go reports unused symbols in a Go module and its declared consumers. |
|
internal
|
|
|
catalog
Package catalog is the issue-kind vocabulary this analyzer reports under: one row per live kind, carrying the languages it applies to, the default a configuration overrides, the ceiling on the confidence a finding of the kind may claim, and what a mechanical edit may do with it.
|
Package catalog is the issue-kind vocabulary this analyzer reports under: one row per live kind, carrying the languages it applies to, the default a configuration overrides, the ceiling on the confidence a finding of the kind may claim, and what a mechanical edit may do with it. |
|
config
Package config resolves the deadset configuration.
|
Package config resolves the deadset configuration. |
|
deps
Package deps answers what a target's dependency declarations and its module graph say: which direct requirement no import needs, which replace directive redirects nothing, and which modules a deletion candidate holds the last use of.
|
Package deps answers what a target's dependency declarations and its module graph say: which direct requirement no import needs, which replace directive redirects nothing, and which modules a deletion candidate holds the last use of. |
|
edges
Package edges reads the declared cross-language edges of one target: the pairs that say one symbol exists because a symbol in another language uses it.
|
Package edges reads the declared cross-language edges of one target: the pairs that say one symbol exists because a symbol in another language uses it. |
|
exempt
Package exempt computes the exemptions of one loaded build configuration: the classes of reason for which a symbol the reference graph alone would report is live all the same.
|
Package exempt computes the exemptions of one loaded build configuration: the classes of reason for which a symbol the reference graph alone would report is live all the same. |
|
graph
Package graph builds the graph of one loaded build configuration: the symbols a target declares, the references between them, and what the roots keep alive.
|
Package graph builds the graph of one loaded build configuration: the symbols a target declares, the references between them, and what the roots keep alive. |
|
jsondoc
Package jsondoc encodes the JSON documents this analyzer writes: the report, its renderings, the resolved configuration and the describe document, each one value with a closing newline.
|
Package jsondoc encodes the JSON documents this analyzer writes: the report, its renderings, the resolved configuration and the describe document, each one value with a closing newline. |
|
kinds
Package kinds turns one run's liveness answers into the findings a report carries.
|
Package kinds turns one run's liveness answers into the findings a report carries. |
|
load
Package load resolves one build configuration of a target into type-checked packages, test variants included.
|
Package load resolves one build configuration of a target into type-checked packages, test variants included. |
|
matrix
Package matrix derives a build matrix from a target tree: the platform and tag atoms its files name, plus the configuration of the host.
|
Package matrix derives a build matrix from a target tree: the platform and tag atoms its files name, plus the configuration of the host. |
|
memory
Package memory adapts a run to the memory the machine makes available: it holds the runtime's soft memory limit below the ceiling the machine allows, collects less often while the heap is far below it, and ends the run through its context when the analysis needs more than the machine has.
|
Package memory adapts a run to the memory the machine makes available: it holds the runtime's soft memory limit below the ceiling the machine allows, collects less often while the heap is far below it, and ends the run through its context when the analysis needs more than the machine has. |
|
report
Package report is the document one analysis produces and the five renderings of it.
|
Package report is the document one analysis produces and the five renderings of it. |
|
reportdoc
Package reportdoc is the Contract's report document in Go: one field per member, in the schema's member order, with the JSON name the schema gives each.
|
Package reportdoc is the Contract's report document in Go: one field per member, in the schema's member order, with the JSON name the schema gives each. |
|
reporttest
Package reporttest reads back a report document the report package wrote, which is what a test that runs the analyzer end to end and a round trip of the document compare against.
|
Package reporttest reads back a report document the report package wrote, which is what a test that runs the analyzer end to end and a round trip of the document compare against. |
|
schema
Package schema checks a JSON document against a JSON Schema 2020-12 document written in the keywords the Contract's schemas use, and holds byte copies of the two schemas the report this analyzer writes is an instance of.
|
Package schema checks a JSON document against a JSON Schema 2020-12 document written in the keywords the Contract's schemas use, and holds byte copies of the two schemas the report this analyzer writes is an instance of. |
|
scope
Package scope resolves what a run loads: the module it analyzes and the consumers whose references count against it.
|
Package scope resolves what a run loads: the module it analyzes and the consumers whose references count against it. |
|
suppress
Package suppress reads the two suppression mechanisms of one target: the inline directives its source carries, and the entries of the ignore file at its root.
|
Package suppress reads the two suppression mechanisms of one target: the inline directives its source carries, and the entries of the ignore file at its root. |
|
testsupport
Package testsupport holds what the tests of several packages share: a memo that builds one value per key for every test of a package asking for it, and a deep copy that hands each of those tests a value of its own.
|
Package testsupport holds what the tests of several packages share: a memo that builds one value per key for every test of a package asking for it, and a deep copy that hands each of those tests a value of its own. |