cnescatlab / sonar-icode-cnes-plugin

Add capability to analyze Fortran & Shell in SonarQube through i-Code CNES.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NaN values in i-Code results prevent SonarQube to import sonar-scanner report

begarco opened this issue · comments

Expected behavior

The plugin must be able to import result file containing NaN for some metrics which is a nominal value given by i-Code. For example: when a function has lless than 10 lines, value for comment ratio is NaN.

Actual behavior

The sonar-scanner's report can not be imported.

Steps to reproduce behavior

  • Set following settings:
    • extension for result files: .res
    • source files' suffixes : *.f,*.f77,*.f90,*.sh,*.F,*.F77,*.F90
    • results folder : .
  • Create a quality profile containing all rules and set it as default
  • Execute sonar scanner in APSQ-003: APSQ-003.zip

Detection version

  • Plugin version: V0
  • SonarQube version: 6.7.1