Fixed many SonarLint issues (and some potential bugs)
72 files changed