高级前端
前端工程化
【Q156】如何进行代码质量检测

如何进行代码质量检测

Issue 欢迎在 Gtihub Issue 中回答此问题: Issue 157 (opens in a new tab)

Author 回答者: shfshanyue (opens in a new tab)

圈复杂度(Cyclomatic complexity)描写了代码的复杂度,可以理解为覆盖代码所有场景所需要的最少测试用例数量。CC 越高,代码则越不好维护

Author 回答者: Carrie999 (opens in a new tab)

code review

Author 回答者: maya1900 (opens in a new tab)

sonarQube插件