Skip to main content

Module vscode

Module vscode 

Source
Expand description

VS Code extension config generator — forge-guard ci --vscode.

Generates .vscode/settings.json, .vscode/tasks.json, and .vscode/extensions.json for Solidity developers:

  • settings.json — Solidity validation rules (compiler version pin, remappings for the language server, solhint linter) plus audit-on-save integration for .sol files via the Run on Save extension.
  • tasks.json — a forge-guard: audit build task whose output is parsed into the VS Code Problems panel by problem matchers that map forge-guard’s severity levels (CRITICAL/HIGH → error, MEDIUM → warning, LOW/INFO → info).
  • extensions.json — recommended extensions for the above.

Functions§

generate_extensions
Generate .vscode/extensions.json with recommended extensions.
generate_settings
Generate .vscode/settings.json.
generate_tasks
Generate .vscode/tasks.json with the audit task and problem matchers.