Sonarlint IntelliJ (in Rider) reports error when amending a commit

  • versions used (SonarQube, Scanner, Plugin, and any relevant extension)
    SonarLint (, Rider (2021.1.5), Mercurial as VCS

  • error observed (wrap logs/code around triple quote ``` for proper formatting)

  • steps to reproduce

  1. Commit a file with issue
  2. Perform a change in the commited file
  3. Choose to amend the commit
  4. Error occurs on commiting the amendment
  • potential workaround
    Disable SonarLint-Commit-Analsysis for the amend-operation

Hello Tobias,

Thanks for raising this issue. I managed to reproduce it locally and created a ticket. The issue happens when a file appears in several changelists.

The fix should be part of the next release.