Readability-focused code review. Checks for clarity, naming, documentation, and maintainability.
Review code changes for clarity, maintainability, and ease of understanding.
Code is read more than written. Optimize for the reader, not the writer. Clear code saves time for everyone who comes after.
Names are documentation. Good names eliminate the need for comments. Bad names require comments that can become stale.
Complexity is the enemy. Simple code that's easy to understand beats clever code that requires explanation.
Blocker (must fix):
Warning (should fix):
Note (consider):
## Readability Review
### Blockers
- [src/utils/transform.ts:12-89] Function `processData` is 77 lines with 5 levels of nesting - impossible to follow
### Warnings
- [src/api/handler.ts:34] Variable `d` should have descriptive name (appears to be "document")
- [src/services/sync.ts:56-78] Complex logic with no comments explaining the algorithm
- [src/components/Form.tsx:23] Magic number `86400000` should be named constant (milliseconds in day?)
### Notes
- [src/utils/helpers.ts:12] Function `getUserData` could be renamed to `fetchUserProfile` for clarity
- Consider extracting the validation logic in lines 45-67 into a named function
### Verdict: WARN
Code is understandable but has readability issues that should be addressed.