As mentioned in https://community.sonarsource.com/t/is-the-file-idea-idea-idea-sonarlint-xml-intended-to-be-under-source-control/121119, the `sonarlint.xml` file should be in the `.gitignore`.
Globally Useful gitignores
This directory contains globally useful gitignores, e.g. OS-specific and editor specific.
For more on global gitignores: https://help.github.com/en/github/using-git/ignoring-files#configuring-ignored-files-for-all-repositories-on-your-computer
And a good blog post about 'em: http://augustl.com/blog/2009/global_gitignores