????6.????bug
????sonar???????PMD??CheckStyle??Findbugs????????????????????bug
????7.???????????Spaghetti Design??????????????
???????sonar????????????????????????????????????????
??????????????????????
???????sonar??????????????jar??
????????????LCOM4???????????????????
??????????
????????Spaghetti Design??http://docs.codehaus.org/display/SONAR/Spaghetti+Design
???????sonar??????Ч???????????????????е????????
????SonarQube???
???????????
????1.????JAVA????
????2.??????MySQL?????
???????????????http://www.sonarqube.org/downloads/
????????SonarQube??SonarQube Runner
??????????????????http://docs.codehaus.org/display/SONAR/Chinese+Pack
????1.?????????
?????????????????
????#mysql -u root -p
????mysql> CREATE DATABASE sonar CHARACTER SET utf8 COLLATE utf8_general_ci;
????mysql> CREATE USER 'sonar' IDENTIFIED BY 'sonar';
????mysql> GRANT ALL ON sonar.* TO 'sonar'@'%' IDENTIFIED BY 'sonar';
????mysql> GRANT ALL ON sonar.* TO 'sonar'@'localhost' IDENTIFIED BY 'sonar';
????mysql> FLUSH PRIVILEGES;
????2.???sonar??sonar-runner
???????????sonar-3.7.zip???????Linux?·????/usr/local
???????????sonar-runner-dist-2.3.zip??????·??/usr/local
???????SONAR_HOME??SONAR_RUNNER_HOME??????????????SONAR_RUNNER_HOME????PATH
???????sonar???????
??????<install_directory>/conf/sonar.properties?????????????????????????????????????????
???????????mysql????????mysql???????