tools/

directory
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: MIT

Directories

Path Synopsis
Command architecture checks package ownership and inspection completeness.
Command architecture checks package ownership and inspection completeness.
Command benchcmp compares custos with other PHP tools on real projects.
Command benchcmp compares custos with other PHP tools on real projects.
Command cleanroom scans the repository for forbidden upstream tokens and, when the local EA checkout exists, for text that appears verbatim in it: long Java string literals (messages) and long fixture lines.
Command cleanroom scans the repository for forbidden upstream tokens and, when the local EA checkout exists, for text that appears verbatim in it: long Java string literals (messages) and long fixture lines.
Command corpusdiff records the findings custos reports on the pinned benchmark corpora (every rule, on each corpus's src) and compares a later run with that record, so a change that adds or removes findings on real code is seen before it lands.
Command corpusdiff records the findings custos reports on the pinned benchmark corpora (every rule, on each corpus's src) and compares a later run with that record, so a change that adds or removes findings on real code is seen before it lands.
Command covercheck fails unless every statement in a Go coverage profile was executed by at least one test binary.
Command covercheck fails unless every statement in a Go coverage profile was executed by at least one test binary.
Command extract reads a local Php Inspections (EA Extended) checkout and produces:
Command extract reads a local Php Inspections (EA Extended) checkout and produces:
Command gencatalogue regenerates internal/inspection/catalogue/catalogue.go from the rule facts (internal/inspection/meta/rules.json and native-rules.json) and the rule packages (internal/inspection/rules/<id>).
Command gencatalogue regenerates internal/inspection/catalogue/catalogue.go from the rule facts (internal/inspection/meta/rules.json and native-rules.json) and the rule packages (internal/inspection/rules/<id>).
Command genexplain extracts the "Summary" and "Options" sections of every spec (specs/<ID>.md, our own clean-room text) into internal/inspection/meta/descriptions.json for `custos explain`.
Command genexplain extracts the "Summary" and "Options" sections of every spec (specs/<ID>.md, our own clean-room text) into internal/inspection/meta/descriptions.json for `custos explain`.
Command genkinds regenerates internal/php/syntax/kinds.go from the node types declared in internal/php/syntax/ast.go (run via `go generate ./internal/php/syntax`).
Command genkinds regenerates internal/php/syntax/kinds.go from the node types declared in internal/php/syntax/ast.go (run via `go generate ./internal/php/syntax`).
Command genstubs compiles JetBrains phpstorm-stubs (Apache-2.0) into the embedded builtin symbol index (internal/semantic/stubs/stubs.gob.gz).
Command genstubs compiles JetBrains phpstorm-stubs (Apache-2.0) into the embedded builtin symbol index (internal/semantic/stubs/stubs.gob.gz).
internal
specmd
Package specmd reads the parts of a clean-room spec (specs/<ID>.md) that the documentation generators reuse: its "## " sections, the PHP version range of its front matter and the fenced code blocks of a section.
Package specmd reads the parts of a clean-room spec (specs/<ID>.md) that the documentation generators reuse: its "## " sections, the PHP version range of its front matter and the fenced code blocks of a section.
Command relprep prepares a release: it resolves the new version (explicit X.Y.Z or a patch/minor/major bump of the latest vX.Y.Z tag), turns the CHANGELOG's [Unreleased] section into the version's section, writes that section as release notes and pins the version in the Composer launcher.
Command relprep prepares a release: it resolves the new version (explicit X.Y.Z or a patch/minor/major bump of the latest vX.Y.Z tag), turns the CHANGELOG's [Unreleased] section into the version's section, writes that section as release notes and pins the version in the Composer launcher.
Command rulesdoc regenerates docs/internals/rules.md: the specification and conformance status of every rule (spec written, EA conformance result from the last local run).
Command rulesdoc regenerates docs/internals/rules.md: the specification and conformance status of every rule (spec written, EA conformance result from the last local run).
Command rulesref generates the rule reference of the documentation site: docs/rules/index.md, one page per rule (docs/rules/<group>/<ID>.md) and the VitePress sidebar (docs/.vitepress/rules-sidebar.json), from internal/inspection/meta and the specs' own text and examples.
Command rulesref generates the rule reference of the documentation site: docs/rules/index.md, one page per rule (docs/rules/<group>/<ID>.md) and the VitePress sidebar (docs/.vitepress/rules-sidebar.json), from internal/inspection/meta and the specs' own text and examples.

Jump to

Keyboard shortcuts

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