Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.solidscipt.zoracle.xyz/llms.txt

Use this file to discover all available pages before exploring further.

The validate command runs SolidScript’s built-in static analysis rules directly against your TypeScript contract source. It catches common smart-contract pitfalls before you reach the compile or deploy stage. Use it as a fast feedback loop during development and as a required gate in CI. Add --secure to treat every footgun warning as a hard error, leaving targeted allow decorators as the only way to pass.
solidscript validate <input>

Arguments

ArgumentDescription
<input>Path to the directory containing your TypeScript contract files

Options

FlagDescription
--secureEscalate footgun warnings to errors unless the pattern is explicitly allowed with a targeted decorator

Examples

# Run validation with default settings
npx solidscript validate contracts

# Run in strict mode — fail on any warning
npx solidscript validate contracts --secure
When you use --secure, only suppress a finding with an allow decorator if the exception is intentional and clearly documented for code review. Blanket suppressions defeat the purpose of the gate.