"PATH" Is present in coverage report but cannot be found in filesystem

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube, Scanner, Plugin, and any relevant extension)

    I’m using sonar-scanner-4.7.0.2747-macosx
    I’m using the SonarQube in my local machine with docker

  • what are you trying to achieve

sonar-scanner \                                         
  -Dsonar.projectKey=manual-minestore-minestore \
  -Dsonar.sources=. \
  -Dsonar.host.url=http://localhost:9000 \
  -Dsonar.login=sqp_9056ca3537f6e071d2a06afc8b1da227cf422a48

My project use, SimpleCov to Ruby
I’m receive this logs:

INFO: Sensor SimpleCov Sensor for Ruby coverage [ruby]

WARN: Importing SimpleCov resultset JSON will not be supported from simplecov 18.0. Consider using the JSON formatter, available from SimpleCov 20.0

WARN: File '/minestore/app/models/custom_shipping_option.rb' is present in coverage report but cannot be found in filesystem

WARN: File '/minestore/app/models/discount.rb' is present in coverage report but cannot be found in filesystem

WARN: File '/minestore/spec/lib/braspag/subordinate_spec.rb' is present in coverage report but cannot be found in filesystem

WARN: File '/minestore/spec/controllers/braspag_controller_spec.rb' is present in coverage report but cannot be found in filesystem

WARN: File '/minestore/spec/concerns/shippable_shared.rb' is present in coverage report but cannot be found in filesystem
  • what have you tried so far to achieve this

    But my files are in my filesystem, this not is a problem with repositories because I’m running SonarQube as localhost.

    How to solve it?

Hi,

Welcome to the community!

This is a path from box root. If the leading / were dropped, then it would be a relative path inside your project.

I’m not sure how those leading '/'s got there (is there some configuration you can tweak in your coverage engine?), but if you drop them this will probably work.

 
HTH,
Ann