Skip to content

zmsp/sonar-clojure

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sonar-clojure plugins

Uses eastwood and kibit to analyze clojure code

Contributors

Sample Output

alt tag

Prerequisites

For linux system
  • Need to install docker-sonar image and create a shared volume by adding the following onto the docker-compose.yml file under sonarqube. (See example)
volumes:
    - /opt/sonar/extensions:/opt/sonar/extensions

WARNING: If loading your code (particularly test files) causes side effects like writing files, opening connections to servers, modifying databases, etc., running this plugin on your code will do that too.

For Windows

Wasn't tested on windows but plausible to run with little modification to source code.

1. Get the plugin

Download the jar

Download

Compiling from Source

  • Clone this project
  • CD to the project
  • Run mvn package
  • Find the resulting jar in the target folder

2. Placing the jar file

Place the jar produced from above step onto /opt/sonar/extensions/plugins

3. Run

Run docker-compose up from your docker-sonar image folder

4. Using the plugin

  • Create a sonar-project.properties file
    • Add the line sonar.import_unknown_files=true see the example
  • Run sonar-scanner. Make sure to have sonar server is running beforehand.
  • Run sonar-scanner from project folder
  • Open Sonar localhost:9000 on the browser
  • Place Clojure widget to the dashboard
  • Optional: Place Size Metrics widget and resize the dashboard

Thanks

I am actively monitoring this repo. If you would like to contribute, or submit an issue feel free to do so.

About

This Sonarqube plugin allows you to analyze Clojure code

Resources

License

Stars

Watchers

Forks

Packages

No packages published