Git Product home page Git Product logo

Comments (3)

chamuel51 avatar chamuel51 commented on June 10, 2024

Try running sonar-scanner in the project root from the terminal
Be aware that if the PATH is not correctly configured, you will have to use the absolute path.

from sonar-swift.

annguyen-iosdev avatar annguyen-iosdev commented on June 10, 2024

Same issue for me. I pretty sure sonar-scanner was run successfully due to logs.
Do you have a solution for this @Sowmiya-N-P ?
Thanks.

from sonar-swift.

SangI762 avatar SangI762 commented on June 10, 2024

I have the same issue. Plugin version is the same. I can see only coverage percent in my dashboard.

 # --------------------------------
  lane :metrics do
    scan(scheme: "Project", 
      code_coverage: true, 
      derived_data_path: "./DerivedData", 
      output_directory: "./sonar-reports",
      devices: "iPhone 13")
     
    slather(cobertura_xml: true, 
      jenkins: true, 
      scheme: "Project", 
      build_directory: "./DerivedData", 
      output_directory: "./sonar-reports", 
      proj: "./Project.xcodeproj")

     swiftlint(output_file: "./sonar-reports/swiftlint.txt", 
      ignore_exit_status: true)

     sonar
end

Also tried to run sonar-scanner

...
INFO: Load quality profiles
INFO: Load quality profiles (done) | time=368ms
INFO: Load active rules
INFO: Load active rules (done) | time=13677ms
INFO: Indexing files...
INFO: Project configuration:
INFO:   Excluded sources: **/*.xml, Pods/**/*, Reports/**/*, **/*Test*/**
INFO:   Included tests: **/*Test*/**
INFO: 836 files indexed
INFO: 136 files ignored because of inclusion/exclusion patterns
INFO: 2 files ignored because of scm ignore settings
INFO: Quality profile for objc: Objective-C
INFO: Quality profile for swift: Swift
...
INFO: ------------- Run sensors on project
INFO: Sensor Zero Coverage Sensor
INFO: Sensor Zero Coverage Sensor (done) | time=4ms
INFO: CPD Executor Calculating CPD for 0 files
INFO: CPD Executor CPD calculation finished (done) | time=0ms
INFO: Analysis report generated in 257ms, dir size=1 MB
INFO: Analysis report compressed in 1590ms, zip size=892 KB
INFO: Analysis report uploaded in 1114ms
INFO: ANALYSIS SUCCESSFUL, you can browse 
...
INFO: Analysis total time: 22.169 s
INFO: ------------------------------------------------------------------------
INFO: EXECUTION SUCCESS
INFO: ------------------------------------------------------------------------
INFO: Total time: 25.354s
INFO: Final Memory: 7M/34M
INFO: ------------------------------------------------------------------------

from sonar-swift.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.