To access the latest features keep your code editor plug-in up to date.
The Review Your Code
command analyzes your code changes and provides a comprehensive report to help you improve code quality, security, and performance. This document describes the output of the command and how you can interact with it.
To start a review, open the Navie sidebar and click the Review Your Code
button. You can also start a review using the command palette or command menu.
Command Palette: Cmd + Shift + P
(Mac) or Ctrl + Shift + P
(Windows/Linux), followed by typing AppMap: Review Your Code
.
From the menu, navigate to Tools
→ AppMap
→ Review Your Code
.
The core of the review provides specific, actionable suggestions for improving the code. Suggestions are grouped by category (e.g., Security
, Performance
, SQL
, HTTP
) and prioritized as high
, medium
, or low
.
Each suggestion includes:
Security
, Performance
, SQL
, HTTP
).high
, medium
, or low
.After receiving a review, you can perform triage on the reported suggestions and features to manage the feedback and integrate it into your workflow.
Each suggestion is an individual item that you can act upon. The following actions are available:
To perform this review using the command line, you can use the following command:
appmap navie "@review /review2 /base=<base-branch> /format=<format>"
base
The base branch is optional, and defaults to main
, master
, or develop
, depending on the Git history of the current project. The base branch can be any name that Git recognizes, such as a tag or a specific commit hash.
format
The command can produce output in several formats:
text
(Default): A human-readable Markdown report, suitable for viewing in a terminal or a text editor.json
: A single JSON object that contains the complete review report. This is useful for programmatic analysis.jsonl
: A stream of newline-delimited JSON objects. This format is ideal for processing results incrementally.