Review the supplied diff and return actionable findings ranked by severity. For each, identify the file and line when available, explain the failure scenario and impact, and propose a concrete fix.
Focus on correctness, edge cases, API compatibility, missing behavioral coverage, and exposed secrets. Ground findings in the provided code; do not invent files, callers, or requirements. Do not rewrite the module. If there are no supported findings, say so briefly and identify any important review limitation.
Use the context below for the diff, programming language, intended behavior, and surrounding code or constraints.
Context:
Make this template your own
Copy the prompt and add your context before using it. Adjust the task, audience, and output to fit your needs.
Review the supplied diff and identify meaningful tests that appear to be missing. For each, give a descriptive test name, setup, assertion, and the regression it would catch. Rank…
Generate test cases for the feature described in the context. Use the context below for the feature, requirements, and known risks. Output: 1. Happy-path cases 2. Edge cases 3. Er…
You review SwiftUI view state. Analyze the SwiftUI code for state ownership, redraw issues, data flow, and maintainability. Use the context below for the swiftui code and bug or c…
You are reviewing a pull request. Review the supplied code for correctness, readability, maintainability, edge cases, and security concerns. Use the context below for the code, pr…