Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0 bugs, 0 vulnerability, security hotspot 0 ,code smell 0, duplication 0 #292

Open
Sowmiya-N-P opened this issue May 23, 2021 · 3 comments

Comments

@Sowmiya-N-P
Copy link

I have configured run-script and sonar-properties files . Installed SwiftLint, tailor, lizard libraries. In terminal swiftlint process succeeds when I run ./run-sonar-swift -v

Done linting! Found 12 violations, 1 serious in 393 files.
Processing SwiftLint report sonar-reports/.-swiftlint.txt
Processing Tailor report sonar-reports/.-tailor.txt

.-swiftlint.txt ,lizard.xml and .-tailor.txt files are being generated. But warning are shown only in terminal not in dashboard.

And none of the bugs are reported in the dashboard, even though it is shown as warning in terminal.

plugin version- 0.4.6

@SakshiJainAirfi

@chamuel51
Copy link

chamuel51 commented Jun 11, 2021

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.

@annguyen-iosdev
Copy link

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.

@SangI762
Copy link

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: ------------------------------------------------------------------------

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants