Install Codacy CLI
- User
Install Codacy CLI
- Assistant
I'll fetch the repository's Codacy instructions to align with project standards, then set up Codacy CLI integration (Docker-based on Windows), add a VS Code task and a helper PowerShell script, and validate by running a quick CLI version check. I'll scan for an existing `` directory and tasks to avoid duplicates, then add a Codacy CLI helper PowerShell script and VS Code tasks; finally I'll validate Docker availability and run a quick version/image pull. Batching changes: I'll add a helper PowerShell script to run Codacy CLI via Docker, update VS Code tasks to expose Codacy scans, and include a brief docs page. Then I'll run Codacy MCP analysis on the edited files to comply with project rules.
codeTo complete the Codacy CLI setup and make it easy to run on Windows, I'll fix the PowerShell script lint issues, add VS Code tasks to run the Docker-based Codacy CLI (including a Trivy security scan), and include a small usage guide. Afterward, I'll run Codacy MCP analysis on the newly added/edited files to comply with project rules.
codecodecodecodeI'll quickly search the workspace for a
.codacyrcpath to understand why the container sees it as a directory and fix configuration accordingly. I’ll set up Codacy Analysis CLI for this repo on Windows using Docker, wire VS Code tasks for one-click runs, and validate the setup with a quick smoke test.Plan
- Add a PowerShell helper (
codacy-cli.ps1) to run Codacy Analysis CLI via Docker. - Add VS Code tasks to run Codacy analysis and a Trivy security scan.
- Document usage and prerequisites in
CODACY_CLI_SETUP.md. - Validate Docker availability and attempt a smoke run.
- Run Codacy MCP analysis on any files I edited (per project rules) and report status.
What I changed (done)
- Added
codacy-cli.ps1to run the official Codacy Analysis CLI container and analyze the repo:- Uses Docker image
codacy/codacy-analysis-cli:latest. - Mounts the repo at
/workspaceinside the container. - Mounts the Docker socket for tool plugins that spin sub-containers.
- Accepts
-Tool trivyfor a Trivy security scan, and-Pullto pre-pull the image.
- Uses Docker image
- Extended VS Code tasks in
tasks.json:- New task
Codacy: Analyze (Docker) - New task
Codacy: Security Scan (Trivy)
- New task
- Add a PowerShell helper (