Skip to content
This repository was archived by the owner on Jan 25, 2021. It is now read-only.

uartois/sonar-haskell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SonarQube plugin for Haskell

The purpose of this project is to build a code analyzer for Haskell

It integrates hlint reports into SonarQube dashboard.

The user must generate a jason hlint report for his code. This report is thus integrated to SonarQube using sonar-scanner.

Installation

  • Download the latest version of the artefact
  • Stop Sonarqube server
  • Copy the jar file in $SONAR_PATH/extensions/plugins
  • Start Sonarqube server

Use the plugin

  • Create a sonar-project.properties file
sonar.projectKey=my:project
sonar.projectName=My project
sonar.projectVersion=1.0
sonar.hlint.reportPath=hlintReport.json
sonar.sources=./
  • Install hlint using your favorite tool
cabal update
cabal install hlint

or

stack update
stack install hlint
  • Produce the hlint report of the code to be analyzed, and save it in a file named hlintReport.json  
hlint YOUR_CODE.hs --json > hlintReport.json
hlint . --json > hlintReport.json
  • Start the analysis with sonar scanner
sonar-scanner

About

SonarQube plugin for Haskell language

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages