sonar-swift icon indicating copy to clipboard operation
sonar-swift copied to clipboard

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

Open githhhh opened this issue 4 years ago • 2 comments

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 .

githhhh avatar Sep 22 '20 12:09 githhhh

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

wning13 avatar Oct 26 '20 12:10 wning13

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?

arlovip avatar Mar 08 '22 09:03 arlovip