strictcode

package module
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package strictcode is the module-root package whose sole job is to embed the VERSION file — the single source of truth for the release version — so the CLI derives its version from the exact file rlsbl's Go release target bumps during `rlsbl release run`. (go:embed cannot reference ../VERSION from a subpackage, so the embedding file lives at the module root.)

Index

Constants

This section is empty.

Variables

View Source
var Version = strings.TrimSpace(versionFile)

Version is the strictcode release version, trimmed of the trailing newline the VERSION file carries.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis
cmd
strictcode command
Command strictcode is the strictcode CLI, built on strictcli (flag conventions enforced at registration; --dump-schema auto-injected).
Command strictcode is the strictcode CLI, built on strictcli (flag conventions enforced at registration; --dump-schema auto-injected).
vocabgen command
Command vocabgen regenerates internal/vocab/vocab_gen.go from schema/vocabulary.toml and schema/profiles/.
Command vocabgen regenerates internal/vocab/vocab_gen.go from schema/vocabulary.toml and schema/profiles/.
internal
config
Package config loads strictcode.toml through the strictspec-generated reader and implements the consumer-native checks the schema cannot express (DESIGN.md section 12.3):
Package config loads strictcode.toml through the strictspec-generated reader and implements the consumer-native checks the schema cannot express (DESIGN.md section 12.3):
engine
Package engine is the stateless batch pipeline (DESIGN.md section 9): load config (hard errors), read the workspace from disk, extract the one shared relation, run the enabled checks, produce findings.
Package engine is the stateless batch pipeline (DESIGN.md section 9): load config (hard errors), read the workspace from disk, extract the one shared relation, run the enabled checks, produce findings.
extract
Package extract builds the interaction relation from a loaded workspace: the import-graph extractors for the language trio (DESIGN.md sections 6.2-6.4, schema/SPEC.md).
Package extract builds the interaction relation from a loaded workspace: the import-graph extractors for the language trio (DESIGN.md sections 6.2-6.4, schema/SPEC.md).
findings
Package findings is the output layer: the findings model, the schema-valid machine document (self-validated through the strictspec findings reader before it is handed to the framework, which validates it again against the declared payload schema), the human-readable text rendering, and the exit-code rule.
Package findings is the output layer: the findings model, the schema-valid machine document (self-validated through the strictspec findings reader before it is handed to the framework, which validates it again against the declared payload schema), the human-readable text rendering, and the exit-code rule.
fix
Package fix is the tier-1 fix engine (DESIGN.md section 7, SPEC.md section 7): a whitelist of hand-proven transforms plus mechanical re-verification.
Package fix is the tier-1 fix engine (DESIGN.md section 7, SPEC.md section 7): a whitelist of hand-proven transforms plus mechanical re-verification.
fixture
Package fixture builds on-disk workspace fixtures for tests: a map of relative paths to file contents, written into a temp directory.
Package fixture builds on-disk workspace fixtures for tests: a map of relative paths to file contents, written into a temp directory.
registrydump
Package registrydump renders the committed registry artifacts: REGISTRY.json (the machine-readable rule registry the CI release diff classifies bumps from) and docs/MATRIX.md (the language x feature support matrix generated from the registry and the language profiles).
Package registrydump renders the committed registry artifacts: REGISTRY.json (the machine-readable rule registry the CI release diff classifies bumps from) and docs/MATRIX.md (the language x feature support matrix generated from the registry and the language profiles).
relation
Package relation implements the interaction relation — the primary artifact of extraction (schema/SPEC.md).
Package relation implements the interaction relation — the primary artifact of extraction (schema/SPEC.md).
rules
Package rules is the rule registry: the Go declarations behind CATALOG.md.
Package rules is the rule registry: the Go declarations behind CATALOG.md.
spec/configspec
Code generated by strictspec.
Code generated by strictspec.
spec/findingsspec
Code generated by strictspec.
Code generated by strictspec.
spec/profilespec
Code generated by strictspec.
Code generated by strictspec.
spec/registryspec
Code generated by strictspec.
Code generated by strictspec.
spec/vocabspec
Code generated by strictspec.
Code generated by strictspec.
testctx
Package testctx implements the shared test-context predicate (DESIGN.md section 6.4): one definition of "non-production", computed on the slash-separated path relative to the project root, shared by every check and every extractor.
Package testctx implements the shared test-context predicate (DESIGN.md section 6.4): one definition of "non-production", computed on the slash-separated path relative to the project root, shared by every check and every extractor.
treesitter
Package treesitter is strictcode's single parsing path: a thin, disciplined layer over the official tree-sitter CGo bindings (the binding-benchmark winner; see BUILDLOG.md).
Package treesitter is strictcode's single parsing path: a thin, disciplined layer over the official tree-sitter CGo bindings (the binding-benchmark winner; see BUILDLOG.md).
vocab/gen
Package gen generates the Go vocabulary constants (internal/vocab) from schema/vocabulary.toml and schema/profiles/*.toml.
Package gen generates the Go vocabulary constants (internal/vocab) from schema/vocabulary.toml and schema/profiles/*.toml.
workspace
Package workspace loads the analysis inputs strictcode reconstructs from disk (DESIGN.md section 6.6): the rlsbl workspace file (.rlsbl-monorepo/workspace.toml) when present, the per-member manifests (pyproject.toml, package.json, go.mod), declared dependency scopes, and manifest-declared entry points.
Package workspace loads the analysis inputs strictcode reconstructs from disk (DESIGN.md section 6.6): the rlsbl workspace file (.rlsbl-monorepo/workspace.toml) when present, the per-member manifests (pyproject.toml, package.json, go.mod), declared dependency scopes, and manifest-declared entry points.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL