Code smell external_roslyn:xUnit1033

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)
    SonarQube Enterprise Version 10.0 (build 68432)

  • how is SonarQube deployed: zip, Docker, Helm

  • what are you trying to achieve
    Investigate / correct code smell of type external_roslyn:xUnit1033

Test class ‘DatabaseTestWithDatabaseFixture’ does not contain constructor argument of type ‘DbFixture’. Add a constructor argument to consume the fixture data.


  • what have you tried so far to achieve this
    Our class always had the fixture as constructor argument, together with another constructor argument.

SonarQube shows us a few code smells of this type, with a link to the code smell documentation.
Click on the link of the code smell, it shows an empty screen. The code smell documentation cannot be found in SonarQube website.

The [external_roslyn:xUnit1033] code smell is buggy, as it does not detect our DbFixture argument.

Also, we cannot disable this code smell, because it cannot be found in the rules list.


Welcome to the community!

Would you mind providing screenshots of where you’re seeing this link, and the link results, please?


Of course. I just read it was against the rules to share private stuff, and a screenshot provides private stuff, right ?

And the link results


Thanks for the screenshots. Since this is an external issue - i.e. an issue fed into SonarQube from an external rule report (or perhaps imported by default) rather than one raised natively by SonarQube, it’s natural that there’s no rule description in SonarQube. What probably shouldn’t be happening is that you’re nonetheless presented a (bad) link for the rule anyway. I’ll report that internally.