added Sonar plugin
fixed sonar warning