I gave a fresh try and everything is working fine for me.
Your project looks strange. Is it really a C++ project or a Java project? Can you look at the project natures:
For SonarLint to work, you have to ensure your header file is correctly considered as a CDT resource:

