All Projects → cnescatlab → Sonar Cnes Report

cnescatlab / Sonar Cnes Report

Licence: gpl-3.0
Generates analysis reports from SonarQube web API.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Sonar Cnes Report

Qualinsight Plugins Sonarqube Badges
Plugin for SonarQube that generates badges displaying information about a project's or view's quality.
Stars: ✭ 108 (-25.52%)
Mutual labels:  quality, sonarqube, reporting, plugin
Gotenberg
A Docker-powered stateless API for PDF files.
Stars: ✭ 3,272 (+2156.55%)
Mutual labels:  markdown, docx, csv, xlsx
php-csv-exporter
A fast and tiny PHP library to export data to CSV based on Generator. Export millions of data seamlessly without memory exception.
Stars: ✭ 15 (-89.66%)
Mutual labels:  export, csv, xlsx
TemplaterExamples
Creating reports in .NET and Java
Stars: ✭ 37 (-74.48%)
Mutual labels:  reporting, xlsx, docx
Sq
swiss-army knife for data
Stars: ✭ 275 (+89.66%)
Mutual labels:  markdown, csv, xlsx
sarna
Security Assessment Report geNerated Automatically
Stars: ✭ 26 (-82.07%)
Mutual labels:  reporting, report, docx
Android Gradle Localization Plugin
Gradle plugin for generating localized string resources
Stars: ✭ 100 (-31.03%)
Mutual labels:  csv, xlsx, plugin
QuestPDF
QuestPDF is an open-source, modern and battle-tested library that can help you with generating PDF documents by offering friendly, discoverable and predictable C# fluent API.
Stars: ✭ 2,872 (+1880.69%)
Mutual labels:  export, reporting, report
J
❌ Multi-format spreadsheet CLI (now merged in http://github.com/sheetjs/js-xlsx )
Stars: ✭ 343 (+136.55%)
Mutual labels:  markdown, csv, xlsx
Kodexplorer
A web based file manager,web IDE / browser based code editor
Stars: ✭ 5,490 (+3686.21%)
Mutual labels:  markdown, xlsx, docx
Tableexport
The simple, easy-to-implement library to export HTML tables to xlsx, xls, csv, and txt files.
Stars: ✭ 781 (+438.62%)
Mutual labels:  csv, xlsx, export
Openvasreporting
OpenVAS Reporting: Convert OpenVAS XML report files to reports
Stars: ✭ 42 (-71.03%)
Mutual labels:  xlsx, reporting, report
sheet2dict
Simple XLSX and CSV to dictionary converter
Stars: ✭ 206 (+42.07%)
Mutual labels:  export, csv, xlsx
Exporttools.bundle
Export tools for Plex
Stars: ✭ 294 (+102.76%)
Mutual labels:  csv, xlsx, export
Quip Export
Export all folders and documents from Quip
Stars: ✭ 28 (-80.69%)
Mutual labels:  xlsx, docx, export
Spreadsheet architect
Spreadsheet Architect is a library that allows you to create XLSX, ODS, or CSV spreadsheets super easily from ActiveRecord relations, plain Ruby objects, or tabular data.
Stars: ✭ 1,160 (+700%)
Mutual labels:  csv, xlsx, export
Tabtoy
高性能表格数据导出器
Stars: ✭ 1,302 (+797.93%)
Mutual labels:  csv, xlsx
Pyreportcard
🚥 A report card for Python application
Stars: ✭ 90 (-37.93%)
Mutual labels:  quality, reporting
Filecontextcore
FileContextCore is a "Database"-Provider for Entity Framework Core and adds the ability to store information in files instead of being limited to databases.
Stars: ✭ 91 (-37.24%)
Mutual labels:  csv, xlsx
Dbwebapi
(Migrated from CodePlex) DbWebApi is a .Net library that implement an entirely generic Web API (RESTful) for HTTP clients to call database (Oracle & SQL Server) stored procedures or functions in a managed way out-of-the-box without any configuration or coding.
Stars: ✭ 84 (-42.07%)
Mutual labels:  csv, xlsx

Sonar CNES Report

Build Status SonarQube Quality Gate SonarQube Bugs SonarQube Coverage SonarQube Technical Debt

SonarQube is an open platform to manage code quality. This program can export code analysis from a SonarQube server as a docx, xlsx, csv, markdown, and text files.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This tool can be used in standalone as a JAR executable (with the command line) or as a Sonarqube plugin.

Quickstart

  • Setup a SonarQube instance.
  • Run an analysis with sonar-scanner, maven, gradle, msbuild, etc.
  • Execute cnesreport:
    • In standalone, thanks to command line
    • In plugin mode, copy jar in /opt/sonarqube/extensions/plugins, restart sonarqube, then click on "More" > "CNES Report".

Installation

Standalone mode

cnesreport does not need any installation. It is a portable Java application you can copy and run according to following examples. The only requirement is an up-to-date JRE (>=1.8).

Plugin mode (Since 2.2.0)
  • Copy the sonar-cnes-report.jar in the plugin folder of sonarqube (On linux path should be like /opt/sonarqube/extensions/plugins)
  • Restart sonarqube (On linux: sudo service sonar restart)

Get help

Use java -jar cnesreport.jar -h to get the following help about cnesreport:

usage: java -jar cnesreport.jar [-a <arg>] [-b <arg>] [-c] [-d <arg>] [-e] [-h] [-l <arg>] [-o <arg>] [-p <arg>] [-r <arg>]
       [-s <arg>] [-t <arg>] [-v] [-w] [-x <arg>]
Generate editable reports for SonarQube projects.

 -a,--author <arg>                 Name of the report writer.
 -b,--branch <arg>                 Branch of the targeted project. Requires Developer Edition or sonarqube-community-branch-plugin. Default: usage of main branch.
 -c,--disable-conf                 Disable export of quality configuration used during analysis.
 -d,--date <arg>                   Date for the report. Default: current date.
 -e,--disable-spreadsheet          Disable spreadsheet generation.
 -f,--disable-csv                  Disable csv generation.
 -h,--help                         Display this message.
 -l,--language <arg>               Language of the report. Values: en_US, fr_FR. Default: en_US.
 -m,--disable-markdown             Disable markdown generation.
 -n,--template-markdown <arg>      Path to the report template in markdown. Default: usage of internal template.
 -o,--output <arg>                 Output path for exported resources.
 -p,--project <arg>                SonarQube key of the targeted project.
 -r,--template-report <arg>        Path to the report template. Default: usage of internal template.
 -s,--server <arg>                 Complete URL of the targeted SonarQube server.
 -t,--token <arg>                  SonarQube token of the SonarQube user who has permissions on the project.
 -v,--version                      Display current version.
 -w,--disable-report               Disable report generation.
 -x,--template-spreadsheet <arg>   Path to the spreadsheet template. Default: usage of internal template.


Please report issues at https://github.com/cnescatlab/sonar-cnes-report/issues

Get logs

You can have more detailed logs in the hidden directory .cnesreport which should be created in your home directory at first launch.

Examples

Simplest usage

This is the minimal usage of cnesreport. This example export (report + spreadsheet + configuration) the public project projectId from SonarQube server http://localhost:9000. This will use default internal templates.

java -jar cnesreport.jar -p projectId

If you have installed cnes-report in your sonarqube: open web interface, click on "CNES Report" then choose a project.

Advanced usage (standalone)

If you are using a secured instance of SonarQube, you can provide a SonarQube authentication token thanks to -t option and specify the url of the SonarQube instance with -s. The internal template for the text report will be replace by the one given through -r option.

java -jar cnesreport.jar -t xuixg5hub345xbefu -s https://example.org:9000 -p projectId -r ./template.docx
Export of a specific project branch (standalone)

If you are using a commercial edition of sonarqube or the sonarqube-community-branch-plugin you can export the report for a specific branch of your project using the -b option.

java -jar cnesreport.jar -p projectId -b dev
Enterprise features available for all

As this application is used in many enterprise contexts, we have added the ability to go through proxy. The cnesreport application use system proxy configuration so that you have no fanciful parameter to set.

To use the proxy feature be sure to set following properties:

  • https.proxyHost
  • https.proxyPort
  • https.proxyUser
  • https.proxyPassword
Example

If your JRE's proxy is not set, you can use Java flags as follow:

java -Dhttps.proxyHost=https://myproxy -Dhttps.proxyPort=42
-Dhttps.proxyUser=jerry -Dhttps.proxyPassword=siegel
-jar cnesreport.jar -t xuixg5hub345xbefu -s https://example.org:9000 -p projectId

Features

  • Export code analysis as a set of files
  • Export code analysis configuration
  • Use custom templates
  • Get a custom OpenXML (docx, xlsx) report
  • Get a dynamic pivot table with all issues
  • Export in french or english

Compatibility matrix

For legacy versions, check the wiki page here : Note on legacy versions

cnesreport
\
SonarQube
2.0.0
Standalone
2.1.0
Standalone
2.2.0
Standalone + Plugin
3.0.x
Standalone + Plugin
3.1.0
Standalone + Plugin
3.2.x
Standalone + Plugin
3.3.0
Standalone + Plugin
7.9.x (LTS) X X (Standalone only) X X X X
8.0 - - - - - X X
8.1 - - - - - X X
8.2 - - - - - X X

How to contribute

If you experienced a problem with the plugin please open an issue. Inside this issue please explain us how to reproduce this issue and paste the log.

If you want to do a PR, please put inside of it the reason of this pull request. If this pull request fix an issue please insert the number of the issue or explain inside of the PR how to reproduce this issue.

Notice about plugin mode

  • You can access to the plugin with the web api (/api/cnesreport/report) or with the web UI (/extension/cnesreport/report / "More" > "CNES Report").

  • Plugin mode is made to provide an easier usage than standalone usage. If you need to use advanced features you should use plugin in standalone.

  • Plugin mode is compatible with SonarQube branch feature.

  • During execution, the plugin mode use the ${SONARQUBE_HOME}/temp folder. It writes some files, zip these files and send them to client. Files are deleted after download. If you interrupt plugin during execution (bug, stopping sonar, etc.) you may check this folder to remove useless files.

License

Copyright 2020 CATLab.

Licensed under the GNU General Public License, Version 3.0

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].