Skip to content

Commit 31c1424

Browse files
authored
Merge pull request #119 from liaogz82/update-fastlane-docs
Update information on the use of new fastlane gem lizard
2 parents cde0eab + 237a6d1 commit 31c1424

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

docs/sonarqube-fastlane.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,14 @@
22

33
If you already use fastlane, you can simply setup a new lane performing the analysis as follows:
44

5+
Add `fastlane-plugin-lizard` gem into `Gemfile`, run `bundle install`
6+
7+
Then add the following lane.
58
```ruby
69
lane :metrics do
710
scan(scheme: "[SCHEME]", code_coverage: true, derived_data_path: "./DerivedData", output_directory: "./reports")
811
slather(cobertura_xml: true, jenkins: true, scheme: "[SCHEME]", build_directory: "./DerivedData", output_directory: "./reports", proj: "./[PROJECT].xcodeproj")
9-
sh("cd .. && lizard ./[SOURCE_FOLDER] -l swift --xml > ./reports/lizard-report.xml")
12+
lizard(source_folder: "[SOURCE_FOLDER]", language: "swift", export_type: "xml", report_file: "report/lizard-report.xml")
1013
swiftlint(output_file: "./reports/swiftlint.txt", ignore_exit_status: true)
1114
sonar
1215
end

0 commit comments

Comments
 (0)