This extension runs the uggo-lint CLI from VS Code and shows Go lint findings in the Problems panel.
Installation
From the Marketplace:
code --install-extension HorsLouis.uggo-lint
From a local VSIX:
code --install-extension uggo-lint-vscode-0.1.1.vsix
Requirements
Install uggo-lint and its Go tool dependencies in your shell environment:
pipx install uggo-lint
uggo-lint doctor
For local development from this repository, install the Python package in editable mode and point VS Code at that executable if needed.
Features
- Checks the current Go file on save with
uggo-lint check-file <file> --format json. - Runs a full workspace check with
uggo-lint run --format json --check-only --all. - Shows findings as VS Code diagnostics.
- Provides a doctor command for dependency checks.
Commands
Uggo Lint: Check Current FileUggo Lint: Check WorkspaceUggo Lint: DoctorUggo Lint: Clear Diagnostics
Settings
uggoLint.executablePath: path to theuggo-lintexecutable. Defaults touggo-lint.uggoLint.checkOnSave: run checks when Go files are saved. Defaults totrue.uggoLint.timeoutMs: command timeout in milliseconds. Defaults to30000.
Packaging and release
cd vscode-extension
npm install
npm run vscode:package
npx @vscode/vsce package
To publish, configure a Marketplace publisher and set VSCE_PAT in your release environment, then run:
npm run vscode:publish
Local development
npm install
npm test
npm run compile
Open this folder in VS Code, run the Extension: Start Debugging workflow, and test the extension in the Extension Development Host.
Troubleshooting
- If commands fail, run
Uggo Lint: Doctorand check theuggo-lintoutput channel. - If
uggo-lintis not found, setuggoLint.executablePathto an absolute path. - If save checks do not run, confirm the document language mode is Go and
uggoLint.checkOnSaveis enabled.