sonar-swift
sonar-swift copied to clipboard
Sonar-swift did not report oclint.xml, SonarQube did not show ObjC smell issue
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
`
oclint.xml is normal。
but
sonarQube only displays swift smell issue , not ObjC smell issue .
@githhhh I am having the same issue , did you resolve it?
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?