NOSONAR in Docker file

Must-share information (formatted with Markdown):

  • which versions are you using: SonarCloud
  • how is SonarQube deployed: Cloud

Hello,
I have security hotspot warning in a docker file -what is the correct way to put a comment that will ignore that? (like # NOSONAR in python)

1 Like

Hello,

There is no such feature as the NOSONAR comment for Docker. While it may look easy to implement, the fact that you can have instructions spread on multiple lines make it more complex to support than for Python for example.

The best option you have today to silence what is raised on Docker files is to go into the UI, and change the status. A modal will be displayed asking you to put a comment to justify why you want to close the finding.

Alex