Skip to content

review vocabulary

What does nit mean in code review? Examples, and how to reply to one

Othman Shareef · October 14, 2026 · Updated November 29, 2026 · 5 min read · Code Review Glossary


Nit stands for nitpick. In code review, a nit is a minor, non-blocking comment: a small point about style, naming, or polish that the reviewer wants to mention but does not consider a reason to hold up approval.

Examples of nit comments

If you would merge the code as is, the comment is a nit. If it points at something that could break, drop the nit: label so the author doesn’t skip it.

Review commentNit?Why
nit: "data" could be "invoices" hereYesA clearer name; the code works either way
nit: extra blank lineYesPure formatting, and a formatter should catch it
nit: typo in the comment, "recieve"YesCosmetic, no behavior change
nit: an early return would flatten thisYesA style preference the author can take or leave
nit: this catch swallows the errorNoA swallowed error hides failures in production; block on it
nit: off by one, the last item is skippedNoWrong output is a defect, whatever the size of the fix
nit: we should use the shared retry helperMaybeA nit if the local code is correct; blocking if the copy will drift from the helper

On GitHub, the cheapest nit to act on is one written as a suggested change: the author applies it with one click instead of retyping your fix.

What does the nit: prefix signal?

A review comment carries two messages: the observation itself, and how much the reviewer cares. The nit: prefix makes the second part explicit. It says: I noticed this, I would do it differently, and I am approving either way. That framing is the whole value. Without it, the author has to guess whether a comment about a variable name is a passing thought or a condition for approval, and guessing wrong in either direction wastes a round trip. The Conventional Comments spec generalizes this idea into a full vocabulary: labels like suggestion, question, issue, and nitpick, plus decorations like (non-blocking) that make severity unambiguous. You do not need the whole system to benefit; even adopting nit: alone removes a surprising amount of friction.

Nit etiquette for reviewers

A nit is a courtesy, and it stays one only under a few rules:

  • Mean the label. If you would withhold approval over it, it is not a nit. Do not write nit: and then argue three replies deep.
  • Say the fix, not just the flaw. A nit that names the preferred spelling costs the author seconds; a vague one costs a guess. Our guide to review comments that land applies doubly to small ones.
  • Ration them. Ten nits on a solid change read as hostility, however polite each one is. We covered the failure mode at length in our piece on code review nitpicks.
  • Automate the recurring ones. A nit you have typed three times is a linter rule waiting to be written. Machines nitpick for free and nobody resents them.

How do you reply to a nit comment?

Non-blocking does not mean ignorable. The gracious move is to fix cheap nits in the next push, reply briefly to the ones you are declining, and resolve the ones you fixed so the reviewer is not left wondering. Silently skipping every nit trains reviewers to escalate small feedback into blocking feedback, which makes reviews slower for everyone. Treat nits as free polish from someone who read your code closely, because that is what they are. Replies can be short:

  • Fixed: “Done, renamed in the latest push.”
  • Deferred: “Good call, I’ll pick it up in the cleanup PR.”
  • Declined: “Keeping data here, it matches the API field name.”

There is a mechanical courtesy here too: on GitHub, who resolves the thread matters. For a nit you fixed, resolving it yourself with a quick done is fine. For one you are declining, leave the thread open long enough for the reviewer to see your reasoning before it disappears. We cover the finer points in our guide to resolve conversation etiquette, but the principle is short: a nit deserves an acknowledgment, not a burial.

What does approve with nits mean?

Approve with nits, sometimes written LGTM with nits, is an approval that arrives with a few nit comments attached. The reviewer is signing off now and trusts the author to deal with the nits without another round. On GitHub that is an ordinary Approve review, so the pull request can merge as soon as the author is done. The author should still fix or answer each nit first; merging past them unread teaches the reviewer to stop approving early. One trap: if the branch dismisses stale approvals, pushing the nit fixes throws the approval away and the pull request needs a fresh one. Our guide to required reviews on GitHub covers that setting.

When is a nit not a nit?

The label gets misused in both directions. Reviewers sometimes soften real problems with it, like the two “No” rows in the examples table, and the prefix buries a defect under politeness. The reverse misuse is the blocking nit, where a style preference arrives labeled as small but is defended like a design principle. A quick test for both: would this comment survive being ignored? If ignoring it risks a bug, drop the prefix and say so plainly. If ignoring it costs nothing but your aesthetic satisfaction, keep the prefix and let it go. The nit convention works precisely because the label is honest; spend it carelessly and your reviews lose their signal.

Frequently asked questions

What is the full form of nit in code review?

Nit is short for nitpick. In a pull request comment, a nit: prefix marks a small, non-blocking point about style, naming, or polish that the reviewer would not hold up approval over.

Do I have to fix nit comments before merging?

Usually no. A nit is non-blocking by definition, so the author can fix it, defer it, or decline it with a short reply. Teams differ on convention, though: some expect nits to be addressed in the same pull request, so check what your reviewers actually expect.

Where does the term nit come from?

It is short for nitpick, picking small insects from hair, which became slang for fussing over trivial details. Code review adopted the abbreviation as a comment prefix so reviewers could flag minor polish issues while making clear the feedback is small and not a blocker.

How many nits are too many?

When nits outnumber substantive comments, the review starts to read as criticism of the author rather than the code, and the important feedback drowns. A common ceiling is a handful per review; past that, ask whether a linter or formatter should be enforcing the pattern instead.

Review your next PR in Pyor.

Pyor’s Focus menu jumps to active discussions, threads waiting on your reply, or unresolved comments. Free for individuals, and it talks to GitHub straight from your machine.