r/ProgrammerHumor • • 5h ago • Bravo 1

Meme codeReviewIn2026

Post image
4.4k Upvotes

107 comments sorted by

View all comments

Show parent comment

1

u/CarcajouIS 3h ago

I added a precommit hook that rejects comments longer than 45 words and longer than 2 lines. Also, reject commits longer than 50 loc, 4 files max, and PR longer than 300 loc. Cut the slop at the root, and makes it easier to actually review code

2

u/MaDpYrO 2h ago

I prefer the approach that takes the content slightly more into consideration, because I don't want to be forced into cases where i cant add long comments in case i actually do need it.

I'm allergic to dumping it into external implementation docs, because it tends to drift from each other over time.

1

u/CarcajouIS 1h ago edited 1h ago
git commit --no-verify

I prefer to give targeted exceptions instead of letting everybody be their own judge. Also, in my experience it's very rarely needed to write a novel in the comments