Skip to content
This repository has been archived by the owner on Apr 26, 2023. It is now read-only.

Sonar Hadolint Plugin version 1.0.0

Compare
Choose a tag to compare
@Sancretor Sancretor released this 22 Oct 17:00

SonarQube Hadolint Plugin 1.0.0

We are pleased to announce the SonarQube Hadolint Plugin version 1.0.0.
This plugin enables SonarQube's users to import hadolint results (in Checkstyle format only) into SonarQube.

SonarQube Compability

  • Mostly tested on SonarQube 7.9 LTS
  • Also works on SonarQube 8.0 to 8.5

Features

  • Add a Dockerfile language in SonarQube
  • Add a dedicated Quality Profile with Hadolint & Shellcheck rules
  • Allow SonarScanner to import results (in Checkstyle format only) from Hadolint into SonarQube
  • Add metrics on Number of lines, Number of lines of code & Number of lines of comment
  • Add specific highlighting when opening a Dockerfile in SonarQube web interface

Known limitations

  • A Dockerfile has no specific file extension, so it's impossible for SonarScanner to automatically identify them.
    • The scanner property to use to make this work is described in the README.