[task] fix sonar violations