Skip to content

duperez/sonar-report

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sonar-report

By Eduardo Perez

# #

This project is a terminal report generated by a sonarqube docker.
This project was created because of my laziness of having to access the site every time I want to see the coverage and code smells

Hope you enjoy it =)

#project configuration

featueres to add:

  • show metrics of coverage and code smell (percentage)
  • use config file to set order and which metric should be used
  • show specific metrics of code smell and security (specifc percentage)
  • show messages after percentage report
  • print with color depending of "warning level"
  • save report in file This project uses a .conf file to get variables to run.
{
    "name": "OSGI",
    "key": "osgi",
    "sonar_url": "http://localhost:9000",
    "metrics": ["code_smells", "coverage", "duplicated_blocks"], 
    "details": {
        "code_smells" : {
            "name": "CODE_SMELL",
            "sort" : "type",
            "types" : ["MINOR", "MAJOR", "CRITICAL", "BLOCKER"]
        },
        "security" : {
            "name" : "SECURITY_HOTSPOT",
            "sort" : "status",
            "types" : ["MINOR", "MAJOR", "CRITICAL", "BLOCKER"]
        }
    },
    "specific_data" : {
        "code_smells" : {
            "types" : ["MINOR", "MAJOR", "CRITICAL", "BLOCKER"],
            "itens" : ["severity", "component", "status", "message"]
        }
    }
}

variables:

  • name: project name (just set what you want to show it in the report)
  • key: project key (the one you put in sonar docker when creating your project profile)
  • metrics: these are the porcentage generated on the sonar, you should put the same of the sonar API documents
  • detais: these are some detais of the metrics, in a simple way, it's the number of each kind of code smell and security problens (not implemented yet)
  • specific data: these are some messages of data, I'm trying to use that to get code smell messages.

About

This is a sonar coverage report generator using python and docker

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published