Including Other Results

From Lingoport Wiki
Revision as of 20:43, 28 January 2016 by Olibouban (talk | contribs) (Created page with "= Context = The Globalyzer and LRM issues are shown on the Dashboard using a specific Quality Profile and a number of plugins on the SonarQube platform. You may have other che...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Context

The Globalyzer and LRM issues are shown on the Dashboard using a specific Quality Profile and a number of plugins on the SonarQube platform. You may have other checks running on your code which you would like to report on the Dashboard, or vice-versa, you may have a SonarQube Platform on which you may want to add Globalization tracking from Lingoport.

A Quality Profile is a set of checks set up for a given programming language. (See http://docs.sonarqube.org/display/SONAR/Quality+Profiles ). Lingoport needs to cover a number of programming languages and we define the 'lport' language in order to associate globalization issue to the scanned code. A typical quality profile for Java is 'SonarWay'. In this illustrative example, we show how to have both Lingoport results and Java 'SonarWay' results on the same project.

Modules

When an application or a project in a repository has many programming languages, it is typical that some, say, C code is in a different module than, say, Java code. The SonarQube provides for setting up modules to cover different part of the repository with different programming language rules/quality profiles.

In our world, it is actually the same code which is analyzed by different sets of rules / quality profiles. So we need to set up modules on the same code, not in different modules. This may be confusing.

Example sonar-project.properties

<lightgrey>

  1. Example of the sonar-project.properties file that is located in the base project folder.
  2. The LRMScans and GlobalyzerScans folder are also located at the same level
  3. Multi-languages are defined (lport and java) </lightgrey>
  1. Modules inherit properties set at parent level

sonar.projectKey=WorldWindJavaMultiLang:scan sonar.projectName=WorldWindJavaMultiLang sonar.projectVersion=1.0 sonar.sourceEncoding=UTF-8 sonar.exclusions=**/LRMScans/*.*, **/GlobalyzerScans/*.*

  1. Set modules IDs

sonar.modules=lingoport,java

  1. Module Lingoport

lingoport.sonar.language=lport lingoport.sonar.sources=/var/lib/jenkins/World-Wind-Java-Multi lingoport.sonar.projectBaseDir=/var/lib/jenkins/World-Wind-Java-Multi

  1. Module java

java.sonar.language=java java.sonar.sources=/var/lib/jenkins/World-Wind-Java-Multi java.sonar.projectBaseDir=/var/lib/jenkins/World-Wind-Java-Multi


  1. -- Lingoport specific attributes --

sonar.lingoport.project.root=.