Some spring cleaning and SONARPLUGINS-2687 FIX

Given I had time to fix the ticket, I also tried to fix all violations and cover 100% of the code like in the good ol' days. Unfortunately I don't have your sonar configuration on hand. So I'm not sure I fixed all the violations. Maybe you could publish it somewhere?