CodeReview

Code Review Do Not Find Bugs

Auto Code Review

Peer Code Review

General Rule

Regular Rule

基本的 review SOP

Nit

額外有興趣看的

Comment Abbr/Style

There are often many different ways to implement the same functionality. Unless the code has issues related to functionality, readability, consistency, or optimization—as mentioned in the previous section—most differences come down to personal preference and are not strictly necessary to change.

In such cases, you can add "Nit" in your code review comments. "Nit" stands for "nitpick," which means pointing out minor, non-critical issues. In other words, it suggests: _"This is a small issue—nice to fix if possible, but acceptable to leave as is."

Focus on the Code, Not the Person

Avoid making comments that target the individual rather than the code. For example, saying "You didn’t check for null values" places the focus on “you”. Instead, rephrase the comment to focus purely on the code, such as: "This input might be null, which could lead to an error. It’s recommended to add a null check here."

Alternatively, you can ask guiding questions to help the author think through potential issues, like: "Could this value be null? If so, might that cause a problem?"

Smallest Software Component Review

Ref