Rewritten
Looks like this doesn't cover the empty-array case yet — could we add a guard for that? Everything else reads well.
About this tool
Code review is where tone matters most and gets rushed most. A blunt "this is wrong" lands very differently from "could we handle the null case here?" even when the technical point is identical. This tool rewrites a terse or harsh review comment into something constructive and collegial, keeping your actual feedback precise while removing the edge. It's useful when you're reviewing quickly, you know the change has a real problem, and you want the author to fix it without feeling attacked.
Frequently asked questions
Will it water down my actual feedback?+
No — it keeps the technical point precise and specific. It only changes the tone, not what you're asking the author to fix.
Is being nicer in reviews actually worth it?+
Constructive phrasing tends to get changes made faster and with less friction, especially with newer teammates or across teams.
Can I use this for other kinds of critical feedback?+
It's tuned for code review, but it works for any short, blunt technical comment you want to deliver more collegially.