Sonar – Coding rules and Unit tests

Accomplish:

  • Installation
  • Duplication
  • TimeMachine
  • Configure Code Rules
  • Improve Unit tests

http://www.sonarsource.org/features/

http://docs.codehaus.org/display/SONAR/The+2+minutes+tutorial

http://www.sonarsource.org/downloads/

==============================================

cd /media/shares/sonar/

Currently using: sonar-3.3.1

OLD sonar-2.13.1

http://www.sonarsource.org/screencasts/installation-of-sonar/
$ wget http://dist.sonar.codehaus.org/sonar-x.x.x.zip
$ unzip sonarx.x.x.zip
$ sonarx.x.x.zip
$ cd conf
copy sonar.properties from old dir.
update ::: jdbc:mysql://localhost:3306/sonarxxx?useUnicode=true&characterEncoding=utf8
Manually create new empty DB schema on Q-Berry-WHS called::: sonarxxx
mysql> CREATE DATABASE sonarxxx CHARACTER SET utf8 COLLATE utf8_general_ci;
mysql> grant all privileges on sonarxxx.\* to
'sonar'@'localhost' identified by 't0ps3cr3t';
mysql> flush privileges;
$ cd /media/shares/sonar/sonar-3.3.1/bin/linux-x86-32
$ ./sonar.sh start
http://q-berry-whs:9000/
RENAME TABLE old_db.table TO new_db.table;

Tag Cloud