Difference between revisions of "Globalyzer Dashboard FAQ"
Line 45: | Line 45: | ||
Below is the list of languages and the sonar.inclusions property set to their default file extensions. It is important to note that source file extensions are configurable in rule sets, so if extensions are added or removed in the rule set, they should be added or removed in the sonar-project.properties; that is, they should match. |
Below is the list of languages and the sonar.inclusions property set to their default file extensions. It is important to note that source file extensions are configurable in rule sets, so if extensions are added or removed in the rule set, they should be added or removed in the sonar-project.properties; that is, they should match. |
||
+ | {| class="wikitable" |
||
+ | ! style="text-align:left;"| Globalyzer Priority |
||
+ | ! Dashboard Priority |
||
+ | |- |
||
+ | | 0 (Embedded String) |
||
+ | | Concatenation |
||
+ | |- |
||
+ | | 1 |
||
+ | | 1 |
||
+ | |- |
||
+ | | 2 |
||
+ | | 2 |
||
+ | |- |
||
+ | | 3-5 |
||
+ | | 3 |
||
+ | |- |
||
+ | |} |
||
ActionScript: |
ActionScript: |
||
sonar.inclusions=**/*.as,**/*.mxml |
sonar.inclusions=**/*.as,**/*.mxml |
Revision as of 18:16, 4 December 2018
Mapping of Rule Set Rules to Dashboard Rules
Rules in Globalyzer Rule Sets have both an associated category, and an associated priority. Issue detection categories include:
- Embedded Strings
- Locale Sensitive Methods
- General Patterns
- Static File References.
Rules for all categories may have priorities of 1-5. Additionally, Embedded String detections may be set to priority 0, which indicates a concatenation issue.
The Lingoport Dashboard's rules include the same categories as above. However, the priorities only go from 1-3. The mapping between these priorities is as follows:
Globalyzer Priority | Dashboard Priority |
---|---|
0 (Embedded String) | Concatenation |
1 | 1 |
2 | 2 |
3-5 | 3 |
Determining the number of issues created/fixed in a given time period
It is possible to view detailed information about the number of issues created or fixed during a given time period. This can be done using the Dashboard's inbuilt api. See the REST API#Issue_tracking section on this wiki for more information.
Limit files uploaded to the Dashboard to be only the files scanned by Globalyzer
A project is made up of one or more scans, and each scan processes source files with configured file extensions. The issues found via scanning are reflected on the Dashboard. By default, all files found within the project's base path are uploaded to the Dashboard, even ones that aren't scanned. To limit what is uploaded, you can configure the sonar.inclusions property in the sonar-project.properties file for your project.
If your project contains a Java scan, JavaScript scan, and HTML scan, then you would set your sonar-project.properties to include the extensions for all three languages. Below is the list of languages and the sonar.inclusions property set to their default file extensions. It is important to note that source file extensions are configurable in rule sets, so if extensions are added or removed in the rule set, they should be added or removed in the sonar-project.properties; that is, they should match.
Globalyzer Priority | Dashboard Priority |
---|---|
0 (Embedded String) | Concatenation |
1 | 1 |
2 | 2 |
3-5 | 3 |
ActionScript: sonar.inclusions=**/*.as,**/*.mxml
C++: sonar.inclusions=**/*.c,**/*.cc,**/*.cpp,**/*.cxx,**/*.h,**/*.hpp,**/*.hxx,**/*.qml
CSharp:
Java:
sonar.inclusions=**/*.java,**/*.jsp,**/*.jspf,**/*.jspx
JavaScript: sonar.inclusions=**/*.as,**/*.asax,**/*.ascx,**/*.asp,**/*.aspx,**/*.cshtml,**/*.ejs,**/*.htm,**/*.html,**/*.js,**/*.jsp,**/*.jspf,**/*.jspx,**/*.mas,**/*.mi,**/*.php,**/*.xhtml