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
about: Ask a question about the usage of this plugin
4
+
title: ''
5
+
labels: question
6
+
assignees: ''
7
+
8
+
---
9
+
10
+
> **Before posting a new question, please read the documentation](https://github.com/lequal/i-CodeCNES/wiki) and check [existing issues](https://github.com/lequal/sonar-icode-cnes-plugin/issues)**
11
+
12
+
**Describe what you need to know**
13
+
> A clear and concise description of what your question is.
14
+
15
+
**Screenshots & log**
16
+
> If applicable, add screenshots to help explain your problem. Then, append i-Code log and **do not forget to obfuscate them**.
17
+
18
+
**User environment (please complete the following information):**
> Describe the big picture of your changes here to communicate to the maintainers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue.
4
+
5
+
## Types of changes
6
+
7
+
What types of changes does your code introduce to this plugin?
8
+
> _Put an `x` in the boxes that apply_
9
+
10
+
-[ ] Bugfix (non-breaking change which fixes an issue)
11
+
-[ ] New feature (non-breaking change which adds functionality)
12
+
-[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
13
+
-[ ] Documentation Update (if none of the other choices apply)
14
+
15
+
## Issues closed by changes
16
+
17
+
> _List here all issues closed by your changes. Use a list of items like `- [x] Close #0`_
18
+
19
+
-[x] Close #0
20
+
21
+
## Checklist
22
+
23
+
> _Put an `x` in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code._
24
+
25
+
-[ ] I have read the [CONTRIBUTING](https://github.com/lequal/sonar-icode-cnes-plugin/blob/master/CONTRIBUTING.md) doc
26
+
-[ ] I agree with the [CODE OF CONDUCT](https://github.com/lequal/sonar-icode-cnes-plugin/blob/master/CONTRIBUTING.md)
27
+
-[ ] Lint and unit tests pass locally with my changes
28
+
-[ ] SonarCloud and Travis CI tests pass with my changes
29
+
-[ ] I have added tests that prove my fix is effective or that my feature works
30
+
-[ ] I have added necessary documentation (if appropriate)
31
+
-[ ] Any dependent changes have been merged and published in downstream modules
32
+
33
+
## Further comments
34
+
35
+
> If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc...
# Contributing to i-Code CNES plugin for SonarQube
3
2
First off, thanks for taking the time to contribute!
4
-
5
-
The following is a set of guidelines for contributing to sonar-icode-cnes-plugin, which are hosted in the [Lequal Organization](https://github.com/lequal) on GitHub. These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.
3
+
The following is a set of guidelines for contributing to i-Code CNES plugin for SonarQube, which are hosted in the [Lequal Organization](https://github.com/lequal) on GitHub. These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.
This project and everyone participating in it is governed by the [Lequal Code of Conduct](CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behavior to [[email protected]](mailto:[email protected]).
21
15
22
16
## How Can I Contribute?
23
17
24
18
### Reporting Bugs
25
-
26
19
Before creating bug reports, please check if the problem has already been reported.
27
20
28
21
#### How Do I Submit A (Good) Bug Report?
29
-
30
-
Bugs are tracked as [GitHub issues](https://guides.github.com/features/issues/). Provide information by filling [the template](ISSUE_TEMPLATE.md).
22
+
Bugs are tracked as [GitHub issues](https://guides.github.com/features/issues/).
23
+
Provide information by filling [the template](.github/ISSUE_TEMPLATE/bug_report.md).
31
24
32
25
Explain the problem and include additional details to help maintainers reproduce the problem:
33
-
34
26
***Use a clear and descriptive title** for the issue to identify the problem.
35
27
***Describe the exact steps which reproduce the problem** in as many details as possible. When listing steps, don't just say what you did, but explain how you did it.
36
28
***Provide specific examples to demonstrate the steps**. Include links to files or GitHub projects, which you use in those examples.
@@ -39,43 +31,49 @@ Explain the problem and include additional details to help maintainers reproduce
39
31
***If you're reporting that the plugin crashed**, include a crash report with a stack trace from the operating system.
40
32
41
33
Provide more context by answering these questions:
42
-
43
34
***Did the problem start happening recently** (e.g. after updating to a new version of the plugin or SonarQube) or was this always a problem?
44
35
* If the problem started happening recently, **can you reproduce the problem in an older version?** What's the most recent version in which the problem doesn't happen? You can download older versions from [the releases page](https://github.com/lequal/sonar-icode-cnes-plugin/releases).
45
36
***Can you reliably reproduce the issue?** If not, provide details about how often the problem happens and under which conditions it normally happens.
46
37
47
38
Include details about your configuration and environment:
48
-
49
39
***Which SonarQube version are you using?** You can get the exact version at the bottom of your SonarQube instance.
50
40
51
41
### Suggesting Enhancements
52
-
53
42
Before creating enhancement suggestions, please check if the problem has already been suggested.
54
43
55
44
#### How Do I Submit A (Good) Enhancement Suggestion?
56
-
57
45
Enhancement suggestions are tracked as [GitHub issues](https://guides.github.com/features/issues/). To submit en enhancement suggestion, create an issue and provide the following information:
58
-
59
46
***Use a clear and descriptive title** for the issue to identify the suggestion.
60
47
***Provide a step-by-step description of the suggested enhancement** in as many details as possible.
61
48
***Provide specific examples to demonstrate the steps**. Include copy/pasteable snippets which you use in those examples, as [Markdown code blocks](https://help.github.com/articles/markdown-basics/#multiple-lines).
62
49
***Describe the current behavior** and **explain which behavior you expected to see instead** and why.
63
50
***Include screenshots and animated GIFs** which help you demonstrate the steps or point out the part of Atom which the suggestion is related to. You can use [this tool](https://www.cockos.com/licecap/) to record GIFs on macOS and Windows, and [this tool](https://github.com/colinkeenan/silentcast) or [this tool](https://github.com/GNOME/byzanz) on Linux.
64
51
***Explain why this enhancement would be useful**
65
52
***Specify which version you're using.**
66
-
***Specify the SonarQube version you're using.** The SonarQube version is mentionned at the bottom of the web page.
53
+
***Specify the SonarQube version you're using.** The SonarQube version is mentioned at the bottom of the web page.
67
54
68
55
### Pull Requests
69
-
70
-
* Fill in [the required template](PULL_REQUEST_TEMPLATE.md)
56
+
* Fill in [the required template](.github/PULL_REQUEST_TEMPLATE.md)
71
57
* Do not include issue numbers in the PR title
72
-
* Include screenshots and animated GIFs in your pull request whenever possible.
73
-
* Follow the Java styleguides.
74
-
75
-
## Git Commit Messages
58
+
* Include screenshots and animated GIFs in your pull request whenever possible
59
+
* Follow the Java styleguides and fix all new SonarCloud issues
60
+
* Test your code before opening the PR
61
+
* Set the current `dev-*` branch as the target branch for your PR
76
62
63
+
### Git Commit Messages
64
+
* Start with the issue you are handling ("#187 ...")
77
65
* Use the present tense ("Add feature" not "Added feature")
78
66
* Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
79
67
* Limit the first line to 72 characters or less
80
68
* Reference issues and pull requests liberally after the first line
81
69
* When only changing documentation, include `[ci skip]` in the commit description
70
+
71
+
## Management of contributions
72
+
73
+
All contributions are welcome. They are made via a *pull request* on the branch `dev` which is the branch of the next version.
74
+
75
+
* pull request with **major** changes must be approved by at least one maintainer of each team and the LEQUAL.
76
+
77
+
* pull requests with **minor** changes must be approved by at least one organization's member.
78
+
79
+
All maintainers have the ability to merge *pull requests* on the `dev` branch. If several maintainers belong to the same team, their validation only counts for one organization.
Copy file name to clipboardExpand all lines: README.md
+33-22Lines changed: 33 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,19 +7,49 @@
7
7
8
8
SonarQube plugin for the code analysis tool: i-Code CNES.
9
9
10
-
SonarQube is an open platform to manage code quality. This plugin adds the ability to import i-Code results for Fortran (77 & 90) & Shell.
10
+
SonarQube is an open platform to manage code quality. This plugin adds the ability to check Fortran (77 & 90) & Shell with i-Code or import pre-existing results of i-Code.
11
11
12
12
This plugin 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.
13
13
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
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).
18
+
-**[Optional]**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
19
- Install `sonaricode-*.jar` in `<SONARQUBE_HOME>/extensions/plugins/`.
20
-
- Run i-Code manually or configure auto-launch in plugin configuration.
20
+
-**[Optional]**Run i-Code manually or configure auto-launch in plugin configuration.
21
21
- Run an analysis with *sonar-scanner*, *maven*, *gradle*, *msbuild*, etc.
22
22
23
+
#### Run i-Code automatically
24
+
This SonarQube plugin is now able to run automaticcaly an embedded version of i-Code. If you do not specify properties to run i-Code [manually](#run-i-Code-manually) or [from a specific version](#Run-a-specific-i-Code-version-through-sonaricode-plugin), embedded version of i-Code will be executed.
25
+
26
+
Here is the compatibility matrix of the plugin:
27
+
28
+
| sonaricode version | embedded i-Code version |
29
+
|:------------------:|:-----------------------:|
30
+
| < 2.0.0 | none |
31
+
| 2.0.0 | 4.0.0 |
32
+
33
+
#### Run i-Code manually
34
+
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).
35
+
36
+
#### Run a specific i-Code version through sonaricode plugin
37
+
If embedded version of i-Code does not match your need, you can set the execution of another installed version of i-Code through the following properties:
38
+
-`sonar.icode.launch`: Activate autolaunch for i-Code if `true`. Default: `false`.
39
+
-`sonar.icode.path`: Define i-Code CNES executable path to auto-launch it on analysis. Default: `${HOME}/icode-cnes/icode.exe`.
40
+
41
+
#### Other plugin's properties
42
+
-`sonar.icode.shell.file.suffixes`: List of suffixes for Shell files to analyze. Default: `.sh,.ksh,.bash`.
43
+
-`sonar.icode.f77.file.suffixes`: List of suffixes for F77 files to analyze. Default: `.f,.f77,.for,.fpp,.ftn,.F,.F77,.FOR,.FPP,.FTN`.
44
+
-`sonar.icode.f90.file.suffixes`: List of suffixes for F90 files to analyze. Default: `.f90,.F90`.
45
+
-`sonar.icode.reports.path`: Path to the i-Code reports. Multiple path can be provided. Default: `result.res`.
46
+
47
+
### Features
48
+
- Fortran 77 analysis
49
+
- Fortran 90 analysis
50
+
- Shell analysis
51
+
- Import i-Code results
52
+
23
53
#### Get i-Code help
24
54
Use `icode -h` to get the following help about i-Code:
Please report issues at https://github.com/lequal/i-CodeCNES/issues
42
72
````
43
73
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`.
57
-
58
-
### Features
59
-
- Fortran 77 analysis
60
-
- Fortran 90 analysis
61
-
- Shell analysis
62
-
63
74
### How to contribute
64
75
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.
0 commit comments