Unverified85% confidenceFactTime unknown
通常认为圈复杂度超过10的函数需要重点关注,超过20则属于高风险代码
1
Sources
85%
Confidence
Long-term
Relevance
5/31/2026
First Seen
Sources
Related Entities
Related Claims
UnverifiedIn the industry, a cyclomatic complexity of 10 is generally considered a warning threshold, and exceeding 20 is considered to make code difficult to maintain and test.81% similarUnverifiedThe industry generally considers that a cyclomatic complexity exceeding 10 for a single function requires refactoring78% similarUnverified圈复杂度衡量代码中独立执行路径的数量,与缺陷密度存在显著正相关73% similarUnverified缺陷预测早期方法基于Halstead复杂度、McCabe圈复杂度等静态代码度量指标构建统计模型66% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/14953API
curl https://kongchang.com/api/v1/knowledge/claims/14953MCP
get_claim(id=14953)