SONAR-5389 Log reason why sensor is not executed
Fix some quality flaws