analyze.tools
Synopsis
analyze.tools <path>... [name: value]...
Description
Lists one analyze_tool record for every analyzer and formatter that the
project configuration selects: TypeScript (tsc, ESLint, Biome, Prettier),
Python (Ruff, mypy), Go (go vet, gofmt) and Rust (Clippy, rustfmt).
Detection uses configuration files and the extensions of the files in scope.
A program installed in node_modules/.bin is preferred to the program on the
search path. Versions are read with --version, in parallel.
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
path |
list<path> |
none | Files or directories to inspect. |
changed_only |
bool |
false |
Only languages of files changed in the repository. |
Input and output
| Form | Input | Output |
|---|---|---|
| default | none |
analyze_tool |
No input. Output: analyze_tool records with tool, language, check,
found, version, config and command.
Effect
| Property | Value |
|---|---|
| Category | source |
| Effect | read |
| Reversibility | read |
| Implementation | builtin |
Examples
List the tools of the project.
analyze.tools
List the tools for changed files.
analyze.tools changed_only: true
List the tools for one directory.
analyze.tools "services/api"
Errors
| Code | Meaning | Typical fix |
|---|---|---|
E_EXTERNAL_MISSING |
changed_only without a repository query service. |
Run with changed_only: false. |
Related
analyze.check, analyze.format.