Fix sonar inspections.