Skip to content

Getting an error while sonar scan for code coverage parameter #165

@Vinutham18

Description

@Vinutham18

Hi Team,
While running the sonar scan for ESQL file with plugin 3.5.0 version , we are getting below error which result is no code coverage analysis

[INFO] 07:18:18.228 Sensor IaC Docker Sensor [iac] (done) | time=8ms
[INFO] 07:18:18.266 Sensor ESQL Squid Sensor [iibesql]
[WARNING] 07:18:18.266 ESQL sensor execute
[INFO] 07:18:18.268 5 source files to be analyzed
[ERROR] 07:18:18.324 Unable to analyse file:
java.lang.UnsupportedOperationException: Unknown metric: complexity_in_functions
at org.sonar.scanner.sensor.DefaultSensorStorage.saveMeasure(DefaultSensorStorage.java:175)
at org.sonar.scanner.sensor.DefaultSensorStorage.store(DefaultSensorStorage.java:147)
at org.sonar.api.batch.sensor.measure.internal.DefaultMeasure.doSave(DefaultMeasure.java:96)
at org.sonar.api.batch.sensor.internal.DefaultStorable.save(DefaultStorable.java:45)

Could you please look into the issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions