sonar2csv

command
v0.0.0-...-1b81556 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2018 License: Apache-2.0, Apache-2.0 Imports: 7 Imported by: 0

README

sonar2csv

sonar2csv get SonarQube's metrics value and output it to .csv.

Installation

Build sonar2csv

You need Go(>=1.8) and Masterminds/glide: Package Management for Golang.

glide install
make

Get sonar2csv binary from release/ directory.

Write configuration about SonarQube to config.toml.

[sonarqube]
  url = "http://localhost:9000"
  resource = "063285ca8e14"
  branch = "master"  // (optional) only if using SonarQube Branch Plugin
  metrics = [
    "lines",
    "bugs",
    "violations"
  ]

// only if your SonarQube needs user authentication
[sonarqube.auth]
  login = "admin"
  password = "passwd"

Usage

sonar2csv -h

  -config string
        config file path (default "config.toml")
  -merge string
        csv file path for merging if you like (default "origin.csv")
  -output string
        output file path (default "output.csv")

Development

You need to install Go and Masterminds/glide: Package Management for Golang.

# Install glide
go get github.com/Masterminds/glide


# Building `sonar2csv` for all platforms.
git clone https://github.com/FujitsuLaboratories/sonar2csv
cd sonar2csv
glide install
make all

License

This library is distributed under the Apache License Version 2.0 found in the LICENSE file.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL