You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+40-5Lines changed: 40 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,11 +14,46 @@ This plugin is free software; you can redistribute it and/or modify it under the
14
14
You can get i-Code CNES on GitHub: [lequal/i-CodeCNES](https://github.com/lequal/i-CodeCNES).
15
15
16
16
### Quickstart
17
-
- Setup a SonarQube instance
18
-
- Install i-Code
19
-
- Install i-Code plugin
20
-
- Run i-Code or configure auto-launch in plugin configuration
21
-
- Run an analysis
17
+
- Setup a SonarQube instance.
18
+
- Install i-Code command line application as described in [official documentation](https://github.com/lequal/i-CodeCNES/blob/master/documentation/i-Code%20CNES%20-%20Installation%20Manual%20-%20EN.pdf).
19
+
- Install `sonaricode-*.jar` in `<SONARQUBE_HOME>/extensions/plugins/`.
20
+
- Run i-Code manually or configure auto-launch in plugin configuration.
21
+
- Run an analysis with *sonar-scanner*, *maven*, *gradle*, *msbuild*, etc.
22
+
23
+
#### Get i-Code help
24
+
Use `icode -h` to get the following help about i-Code:
-c,--checked-languages <arg> Comma separated list of languages checked during analysis. All by default.
30
+
-e,--exporters Display all available exporters.
31
+
-f,--export-format <arg> Set the format for result file. Default format is XML.
32
+
-h,--help Display this message.
33
+
-l,--languages Display all available languages.
34
+
-o,--output <arg> Set the name for result file. Results are displayed in standard output by default.
35
+
-p,--export-parameters <arg> Comma separated list of parameters for the export. Format is:
36
+
key1=value1,key2=value2,key3=value3. Default values depend on the chosen export plugin.
37
+
-q,--list-export-parameters <arg> Display all available parameters for the given export.
38
+
-r,--rules Display all available rules.
39
+
-x,--excluded-rules <arg> Comma separated list of rules id to exclude from analysis. None by default.
40
+
41
+
Please report issues at https://github.com/lequal/i-CodeCNES/issues
42
+
````
43
+
44
+
#### Run i-Code manually
45
+
If you need help to run i-Code please refer to the [official user manual](https://github.com/lequal/i-CodeCNES/blob/master/documentation/i-Code%20CNES%20-%20User%20Manual.pdf) or [i-Code issue tracker](https://github.com/lequal/i-CodeCNES/issues).
46
+
47
+
#### Run i-Code through sonaricode plugin
48
+
In order to run i-Code automatically when running *sonar-scanner*, following SoanrQube properties have to be given:
49
+
-`sonar.icode.launch`: Activate autolaunch for i-Code if `true`. Default: `false`.
50
+
-`sonar.icode.path`: Define i-Code CNES executable path to auto-launch it on analysis. Default: `${HOME}/icode-cnes/icode.exe`.
51
+
52
+
#### Other plugin's properties
53
+
-`sonar.icode.shell.file.suffixes`: List of suffixes for Shell files to analyze. Default: `.sh,.ksh,.bash`.
54
+
-`sonar.icode.f77.file.suffixes`: List of suffixes for F77 files to analyze. Default: `.f,.f77,.for,.fpp,.ftn,.F,.F77,.FOR,.FPP,.FTN`.
55
+
-`sonar.icode.f90.file.suffixes`: List of suffixes for F90 files to analyze. Default: `.f90,.F90`.
56
+
-`sonar.icode.reports.path`: Path to the i-Code reports. Multiple path can be provided. Default: `result.res`.
0 commit comments