On this page
In code review, a nit is a minor comment, short for nitpick: a small point of style or preference that the author can fix or ignore without holding up the merge. (The older sense is a louse egg, which is where the word comes from.) If a reviewer writes nit: rename this to userId, they mean "I would do it this way, but I am not blocking on it."
Where the word comes from
Nitpick is a compound of "nit" and "pick". Wiktionary gives the etymology as "from nit + pick, originally referring to literally removing tiny louse eggs by hand." Picking nits out of hair is slow, fiddly work over something very small, and that is the joke: a nitpicker fusses over details that hardly matter.
Programmers shortened it to "nit" and turned it into a label. The label does a job. It tells the author how much weight the comment carries before they read the rest of it.
What counts as a nit
A nit is a comment where reasonable people could disagree and nothing breaks either way. The test is simple: if the author ignores it, does the product behave differently, or does the code become harder to maintain in a way you can name? If not, it is a nit.
| Comment | Nit? | Why |
|---|---|---|
nit: userId reads better than uid | Yes | Naming taste, no behavior change |
nit: stray blank line before the return | Yes | Formatting a tool should handle |
nit: imports are not alphabetical | Yes | Order only |
nit: typo in the comment, "recieve" | Yes | Wording in a comment |
nit: this comment repeats the function name | Yes | Comment quality, optional |
nit: prefer a ternary here | Yes | Style preference |
nit: trailing comma | Yes | A formatter should add it |
| This loop skips the last element | No | A bug |
| There is no test for the empty-list case | No | Missing coverage |
| This changes the response shape of a public endpoint | No | An API change with callers |
| The token is logged in plain text | No | A security problem |
| This query runs once per row | No | A performance problem |
Scroll the table sideways to see every column.
The last five are the comments that deserve the review. Labeling one of them "nit" because the fix is a one-line change hides it. The size of the fix is not the size of the problem.
Related code review shorthand
Review threads run on abbreviations. These are the ones in real use.
| Term | Means | Typical use |
|---|---|---|
| nit | Nitpick, a minor non-blocking point | nit: rename this |
| LGTM | "Looks good to me", an approval | Final comment on a clean review |
| SGTM | "Sounds good to me", agreement with a plan or reply | Answering a proposed approach |
| PTAL | "Please take another look" | Author pings after pushing fixes |
| NB | Nota bene, a point to note | NB: this relies on the cache warming first |
| TL;DR | Too long, didn't read: the summary | Top of a long description |
| WIP | Work in progress, not ready for review | A draft PR title |
| RFC | Request for comments, a proposal | Design discussion before code |
| optional: | A suggestion the author may skip | optional: extract a helper |
| FYI | Information, no action expected | A pointer for later |
Scroll the table sideways to see every column.
Two published conventions are worth copying. Google's engineering practices suggest labeling the severity of comments, and give examples such as "Nit: This is a minor thing. Technically you should do it, but it won't hugely impact things", "Optional (or Consider): I think this may be a good idea, but it's not strictly required", and "FYI: I don't expect you to do this in this CL, but you may find this interesting to think about for the future."
Conventional Comments turns the idea into a format: <label> [decorations]: <subject>. Its labels include praise, nitpick, suggestion, issue, todo, question, thought, chore and note. It defines nitpicks as "trivial preference-based requests. These should be non-blocking by nature." Decorations such as (non-blocking), (blocking) and (if-minor) say whether the comment holds up the merge, which helps on teams where the default differs. A comment can read suggestion (non-blocking): extract this into a helper.
What is the difference between a nit and optional?
A nit is a point the reviewer would fix and thinks the author technically should. An optional comment is an idea the reviewer admits may not be needed. Google's own wording shows it: nit means "technically you should do it", optional means "not strictly required". In practice both are non-blocking and the author can skip either, but a nit carries a mild expectation and optional carries none.
Nits belong to the formatter, not the reviewer
My view: a human should almost never write a nit that a tool could have caught. Spacing, import order, trailing commas and quote style are decided by a formatter. Unused variables and naming patterns are decided by a linter. Put both in CI and in a pre-commit hook, and half the nits in your review history disappear.
The cost of leaving them to people is real. Each nit is a round trip: the reviewer writes it, the author reads it, fixes it, pushes, and pings again. Worse, a thread full of nits trains the author to skim comments, so the one real bug in comment nine gets the same shrug as the other eight.
Review time is the scarce thing. It should go to what a tool cannot see: does this change break a caller, is this file one that has broken before, who knows this code. That is the idea behind the repowise bot: its checks cover the callers a change breaks, changed lines no test runs, code health and change risk against your repo's history, which are the things a formatter cannot tell you. A reviewer opens the pull request already knowing where to look, and the nits stay with the formatter.
For how review fits with the rest of code quality, see the code quality guide.
How to write a nit well
- Label it. Start with
nit:so the author knows it is skippable. An unlabeled style comment reads as a requirement. - Say what you would do.
nit: userId, to match the other handlersbeats "bad name". - Give a reason or leave it out. If you cannot say why, it is probably taste, and taste is cheap to drop.
- Batch them. Five nits in one comment are easier to answer than five threads.
- Approve anyway. If nits are all that is left, approve with them attached. Holding an approval for a trailing comma is how reviews stall.
How to respond to a nit
Fix it if it takes seconds and you agree. Skip it if you disagree, with a short reply and no argument. If the same nit keeps coming up, that is a signal: add a lint rule or a line to the team style guide so it stops being a conversation. Do not resolve a thread silently. A one-word "done" or "leaving as is" tells the reviewer it was read.
When a reviewer should drop nits
Skip them when the diff is large. Nobody reads 1,800 lines well, and nits on a change that size bury the real concerns. The better fix is a smaller change, covered in how big a pull request should be. Skip them on a hotfix, where speed matters. And skip them on a pull request written by an agent: the agent will fix a nit instantly, but you still spent review time writing it. Put the preference into the agent's instructions or the linter config once, and the nit stops appearing.
If you are setting up the surrounding process, the pull request checklist is a good place to say which comment labels your team uses, and what is a pull request covers the basics of the workflow.
FAQ
- What does nit mean in code review?
- A nit is a minor comment, short for nitpick. It points at something small, such as a name, spacing or a typo in a comment, that the author may fix or skip. It is not meant to block a merge.
- What does nit stand for?
- Nit is short for nitpick, which comes from "nit" plus "pick", originally meaning to pick louse eggs out of hair by hand. By extension a nitpicker is someone who fusses over trivial details.
- Are nits blocking?
- No. A nit is non-blocking by definition. Conventional Comments says nitpicks "should be non-blocking by nature". If a comment must be fixed before merge, it is an issue or a required change and should not be labeled a nit.
- What is the difference between nit and optional?
- Both are non-blocking. A nit is something the reviewer thinks the author technically should do, and Google's practices phrase it that way. Optional is an idea that is not strictly required. The author can skip either one.
- What does LGTM mean?
- LGTM means "looks good to me". A reviewer writes it to approve a change, often with a few nits attached that the author can handle before or after merging.
- Should I fix nits?
- Usually, when it takes seconds and you agree. If you disagree, reply briefly and leave it. If the same nit comes up repeatedly, automate it with a formatter or linter rule instead of fixing it by hand each time.
- Is a nit a bug?
- No. A nit is a style or preference comment, and the code works either way. If the comment describes behavior that is wrong, such as a skipped element or a missing check, it is a bug and should be labeled as an issue, not a nit.
- What does nit mean in chat or Slack?
- It means the same thing: a small point you are raising but not insisting on, as in "nit: the link text could be clearer". Outside code review it is also used for a trivial detail someone is fussing over.



