Run swift code complexity analytics using Lizard


Keywords
android, code-analysis, code-complexity, code-quality, cyclomatic-complexity, fastlane, fastlane-plugin, ios, lizard, mac
License
MIT
Install
gem install fastlane-plugin-lizard -v 1.3.2

Documentation

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')

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.