added sonar plugin
fixed Sonar warnings