Vizavi

Adjust code to match style guides

Review a code sample against the team’s style guide and suggest a minimal change that preserves behavior.

Prompt

Compare [code snippet] to [team style excerpt]. Show a minimal edit for each applicable rule and explain how it preserves the function’s inputs, outputs and side effects. Leave unrelated code alone.
Open in Vizavi Chat

Illustrative source records

Worked example

  1. Style guide: use descriptive booleans
  2. Sample variable: flag controls retry
Example answer

Rename flag to retryEnabled throughout this function. Keep the retry condition and return values intact.

Suited for

Engineers and on-call leads.

Connectors

Use material you can access, or paste the relevant excerpt into your question.

Bring a real question to your next review.

Start with a meeting or agree a cross-system workflow with the people who own the sources.

Necessary storage supports sign-in and service operation. Optional product analytics stays off until you allow it. You can change your choice in Cookie settings. Cookie Policy