Idean / sonar-swift

Open source Swift plugin for SonarQube (also supports Objective-C)
Other
895 stars 278 forks source link

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

Open githhhh opened 3 years ago

githhhh commented 3 years ago

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 commented 3 years ago

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

arlovip commented 2 years ago

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?