Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在服务器上使用 sonarQube(第三方分析器-Findbug),在本地计算机上使用度量工具来计算圈复杂度。SonarQube 正在计算以下代码的复杂度,但公制不计算它。我使用的是公制版本 1.3.8。
(isChecked() ? 1 : 0), (isRemove() ? 1 : 0), (isSuspend() ? 1 : 0)
那么我需要在eclipse中使用其他一些工具吗?请指导。
是的,sonarQube 计算三元运算符复杂度,而 Metric 不计算三元运算符复杂度