-
Notifications
You must be signed in to change notification settings - Fork 16
Home
i-Code CNES is a static analysis tool for Fortran and Shell, it's verifying code compliancy with CNES standards (RNC).
- User Manual
- Installation Manual
- Developer Guide (redirect to lequal/icode-custom-plugin-example wiki)
Download the eclipse plugin archive of the last release.
Then, launch Eclipse and select the Help > Install new Software. On the wizard, select Add and Archive... and select i-Code CNES archive.
Restart Eclipse.
Download and unzip the latest IDE version in a folder.
Download the latest i-Code CNES CLI version link. Then put the archive in your chosen location.
On linux
unzip i-CodeCNES-3.1.0-CLI-linux.gtk.x86.zip
alias icode=$(pwd)/i-CodeCNES-3.1.0-CLI-linux/icode
On Windows (powershell) Extract the archive, then:
Set-Alias icode c:\user\tools\icode.exe
Analysis on project are based on file extension to attribute the good file to the good analyzer. Which mean, it's not required to filter file's extension when launching an analysis on a project, however it's important (especially in shell) that files that should be analyzed have an appropriate extension.
Extension supported by languages:
- Shell: sh, ksh, bash
- Fortran: f, f77, f90, F, F90, F77, fortran
A Shell file for instance
no_extension
should be renamedno_extension.sh
in order to be analyzed.
Select Window > Preferences > i-Code CNES
.
You can set the severity configuration of the analysis using the scrollbar from RNC A to D, and choose rules to enable or disable in the different tables. You can also edit Metrics threshold.
Select files to analysis, one or several, and then click on i-Code CNES > Run analysis
.
In your project folder, use the following command to analyze all files:
# Analyse whole project
icode '**/*'
# Analyse whole project and make an xml output of the analysis
icode '**/*' -f xml -o output.xml
# List all functionality and description
icode --help
i-Code CNES is an open source project under license EPL-1.0