Possible solution:
Another solution is to upgrade SonarJava on the server to a version greater than 5.8
Related: Sonarlint cannot run analysis on files in Intellij 2019.1 beta - #3 by martinely95