Status: ✅ Done (2026-02-23); ignore/unignore added 2026-03-02
Show full details of a single quality issue, including file context, pattern description, and suggested fix.
codacy issue <provider> <organization> <repository> <issueId>
codacy iss gh my-org my-repo 12345
codacy iss gh my-org my-repo 12345 --output json
codacy iss gh my-org my-repo 12345 --ignore
codacy iss gh my-org my-repo 12345 --ignore --ignore-reason FalsePositive --ignore-comment "Not applicable here"
codacy iss gh my-org my-repo 12345 --unignore
The issueId is the resultDataId shown at the bottom of each issue card in issues and pull-request.
| Option | Short | Description |
|---|---|---|
--ignore |
-I |
Ignore this issue |
--ignore-reason <reason> |
-R |
Reason: AcceptedUse (default) | FalsePositive | NotExploitable | TestCode | ExternalCode |
--ignore-comment <comment> |
-m |
Optional comment |
--unignore |
-U |
Unignore this issue |
getIssue—AnalysisService.getIssue(provider, org, repo, resultDataId)- Then in parallel:
getPattern—ToolsService.getPattern(toolUuid, patternId)getFileContent—FileService.getFileContent(provider, org, repo, encodedPath, startLine, endLine)
- For ignore/unignore:
updateIssueState— usesissue.issueId(UUID string), notresultDataId
File context: ±5 lines around the issue's line number.
Rendered via shared printIssueDetail from utils/formatting.ts:
{Severity colored} | {Category} {SubCategory?}
{Issue message}
{FilePath}:{LineNumber}
{Extended line content (±5 lines)}
{Optional: suggestion line in green+bold}
{Optional: Potential false positive warning}
{Pattern description}
Why is this a problem?
{Pattern rationale}
How to fix it?
{Pattern solution}
Tags: {pattern tags}
Detected by: {tool name}
{pattern title} ({pattern id})
File: src/commands/issue.test.ts — 8 tests.