No commit activity in last 3 years
No release in over 3 years
Run swift code complexity analytics using Lizard
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0
 Project Readme

fastlane-plugin-lizard

fastlane Plugin Badge Gem Version CircleCI codecov Maintainability

Getting Started

This project is a fastlane plugin. To get started with fastlane-plugin-lizard, add it to your project by running:

fastlane add_plugin lizard

About Lizard

Lizard is an extensible Cyclomatic Complexity Analyzer for many imperative programming languages including C/C++ (doesn't require all the header files or Java imports).

For more information check out the GitHub repository

Lizard

Lizard Actions

Lizard has only one action so far

lizard(
  source_folder: 'foo',
  language: 'swift',
  export_type: 'csv',
  report_file: 'bar.csv'
)

Options

Multiple languages

language: 'swift,objectivec'

Multiple excludes

exclude: 'spec_helper.rb,fixtures/*'

XML reports

export_type: 'xml'

Sonar Swift Usage

In the default configuration, the Backelite sonar-swift plugin for SonarQube expects an xml report located at sonar-reports/lizard-report.xml:

lizard(source_folder: 'foo', export_type: 'xml', report_file: 'sonar-reports/lizard-report.xml')

The plugin doesn't create the directories specified in the report_file path, so they must exist or an error will occur.

Issues and Feedback

For any other issues and feedback about this plugin, please submit it to this repository.

Troubleshooting

If you have trouble using plugins, check out the Plugins Troubleshooting guide.

Using fastlane Plugins

For more information about how the fastlane plugin system works, check out the Plugins documentation.

About fastlane

fastlane is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out fastlane.tools.