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

Sonar-swift did not report oclint.xml, SonarQube did not show ObjC smell issue #279

Open
githhhh opened this issue Sep 22, 2020 · 2 comments

Comments

@githhhh
Copy link

githhhh commented Sep 22, 2020

backelite-sonar-swift-plugin-0.4.6.jar

My Fastfile:
`

lane :metrics_swift do

  #oclint
  generate_oclint_report

   #swift lint
   swiftlint(
     output_file: "./#{path_to_reports_directory}/swiftlint.txt",
     config_file: ".swiftlint-ci.yml",     
     ignore_exit_status: true,
    # raise_if_swiftlint_error: true,      # Allow fastlane to raise an error if swiftlint fails
   )
   sonar
 end

`
sonar-project.properties:

`

sonar.swift.swiftlint.report=sonar-reports/*swiftlint.txt
sonar.objectivec.oclint.reportPath=sonar-reports/*oclint.xml
sonar.junit.reportsPath=sonar-reports/
sonar.junit.include=*.junit
sonar.swift.lizard.report=sonar-reports/lizard-report.xml
sonar.swift.coverage.reportPattern=sonar-reports/cobertura.xml

`

截屏2020-09-22 19 38 36

oclint.xml is normal。

but

sonarQube only displays swift smell issue , not ObjC smell issue .

@wning13
Copy link

wning13 commented Oct 26, 2020

@githhhh I am having the same issue , did you resolve it?

@lchenfox
Copy link

lchenfox commented Mar 8, 2022

The same issue on SonarQube 8.9.7(community edition). The sonar-swift version is backelite-sonar-swift-plugin-0.4.6.jar. Any solutions? As seen for this repo, it seem to have not been maintained for a long time?

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

3 participants