???????械?????????????? Maven ?????????????


????
? 5. Maven ???????

???????????????锟�?
????mvn clean install
?????????????????????????
????mvn sonar:sonar
????Maven ????????????????????绲�????????????????????????? Sonar ???????????????????????? Sonar ?????貌????????????? pom.xml ??????????? Maven ????????? settings.xml ????????????????锟�?
<profile>
<id>sonar</id>
<activation>
<activeByDefault>true</activeByDefault>
</activation>
<properties>
<sonar.jdbc.url>
jdbc:mysql://localhost:3306/sonar?useUnicode=true&characterEncoding=utf8
</sonar.jdbc.url>
<sonar.jdbc.driver>com.mysql.jdbc.Driver</sonar.jdbc.driver>
<sonar.jdbc.username>sonar</sonar.jdbc.username>
<sonar.jdbc.password>sonar</sonar.jdbc.password>
<sonar.host.url>http://localhost:9000</sonar.host.url>
</properties>
</profile>
?????? Soanr ???????????????? Sonar ???????????Sonar ????????????些??????蟹?????????????????????????????????????????????????????????
???????? Radiator ????????????????????????????貌??????????????????


????
? 6. Radiator ????????

????Sonar ?????????
??????????????Sonar ???????????????????????????????????????Sonar ??????????????????懈??????????????
?????????? Technical Debt ??????????????????貌????????????????????????????????械?“???????”?????????????????? 1992 ???? Ward Cunningham ??????????“The WyCash Portfolio Management System”??????????????????????????????????????? Martin Fowler ????? ??? ???????????????????????????????“???????????????”????????娣�?????????????????????????
????Soanr ?? Technical Debt ?????????????????????????械??????????????????????????????????????????????


????
? 7. Technical Debt ?????

?????????????????????????????????????????????????????????????


????
? 8. Sonar ???y???

?????????????????????????????????????锟�?


????
? 9. ???????? Technical Debt ???

????????????????????


????
? 10. ???貌????? Technical Debt ???

????????? Average time to cover complexity of one (in hours) ?? 0.2 ???? 0.01 ??Coverage ??????小???????????????????????????谩??????????????????????????????????????????????????????????????围????
????????????????????????Sonar ??貌??????????????????????????????????????些????????????????????????????????????????????????????????????????????渭?????????????????????
??????????
????Sonar ???????????????????????????????????????? PMD??FindBugs ????????????????????????????????????????????