fastlane-plugin-lizard 1.0.2 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: d021d0376a3f95325bb7091c80ddcb8212e8763b
4
- data.tar.gz: '0830d4bd674dba3ecb576c3f1fb5f24f6b04ea6c'
2
+ SHA256:
3
+ metadata.gz: 612d5a07ca39e3f94f0243cdf1c0b2309dbb22c78ee8151f52a3e4b23e7b3e2e
4
+ data.tar.gz: 0a5c7b2fb73f44ca9689ed62c638ca9667d5de915044fdb2233d41a46aab38da
5
5
  SHA512:
6
- metadata.gz: 066f6e46bd86d04f569576a517ca4986edf6dfe7270067f2625fe7f3ea40bce0d25e35f8dd6bc29a319fc9b1ac3e20f3583793b6d45836b69b621cd306cc2fd3
7
- data.tar.gz: 69cf3138e8ace4ebbf2b5f64da973ef5a752f55456c03cf65c5bd92099dfcc2c2df0872da2bf555cc8d42142b61573755adda082362c3bafac2ddd938b11343e
6
+ metadata.gz: 07b62eda3776ff9e9a13022e50941ab970493f1b9bb4b05505539db9f3cb32902f1b77ea28c8c91b4889d5b0519334b71c9a0af34579e01471399fdb203afba3
7
+ data.tar.gz: 2f3d85a5b14d41e56869a4bc08b541e86e857d72a8470f04b4bd4714c31843ece6e0333b89fc35feee46c840ec42188b879f43fd976f7d55f10d86b1f21ca3b9
data/README.md CHANGED
@@ -1,54 +1,95 @@
1
- <p align="center">
2
- <a href="https://sentry.io" target="_blank" align="center">
3
- <img src="https://camo.githubusercontent.com/bf0171b40f72483bc67dd4352db1d37c90a541c1/687474703a2f2f7777772e6c697a6172642e77732f776562736974652f7374617469632f696d672f6c6f676f2d736d616c6c2e706e67">
4
- </a>
5
- <br/>
6
- <h1>Lizard Fastlane Plugin</h1>
7
- </p>
8
-
9
- [![fastlane Plugin Badge](https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg)](https://rubygems.org/gems/fastlane-plugin-lizard)
10
- [![Gem Version](https://badge.fury.io/rb/fastlane-plugin-lizard.svg)](https://badge.fury.io/rb/fastlane-plugin-lizard)
11
- [![CircleCI](https://circleci.com/gh/liaogz82/fastlane-plugin-lizard.svg?style=svg&circle-token=6d2bc552098ad6c8955ddecc9b058827e91e25cf)](https://circleci.com/gh/liaogz82/fastlane-plugin-lizard)
1
+ # fastlane-plugin-lizard
2
+
3
+ [![fastlane Plugin Badge][1]][2]
4
+ [![Gem Version][3]][4]
5
+ [![CircleCI][5]][6]
6
+ [![codecov][7]][8]
12
7
 
13
8
  ## Getting Started
14
9
 
15
- This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To get started with `fastlane-plugin-lizard`, add it to your project by running:
10
+ This project is a [_fastlane_][9] plugin. To get started with
11
+ `fastlane-plugin-lizard`, add it to your project by running:
16
12
 
17
13
  ```bash
18
14
  fastlane add_plugin lizard
19
15
  ```
20
16
 
21
- ## About lizard
17
+ ## About Lizard
18
+
19
+ Lizard is an extensible Cyclomatic Complexity Analyzer for many imperative programming
20
+ languages including C/C++ (doesn't require all the header files or Java imports).
22
21
 
23
- 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).
22
+ For more information check out the [GitHub repository][10]
24
23
 
25
- For more information check out the [Github repository](https://github.com/terryyin/lizard)
24
+ ![Lizard][11]
26
25
 
27
26
  ## Lizard Actions
28
27
 
29
28
  Lizard has only one action so far
30
29
 
31
- ```
30
+ ```ruby
32
31
  lizard(
33
- source_folder: "foo",
34
- language: "swift",
35
- export_type: "csv",
36
- report_file: "bar.csv"
32
+ source_folder: 'foo',
33
+ language: 'swift',
34
+ export_type: 'csv',
35
+ report_file: 'bar.csv'
37
36
  )
38
37
  ```
39
38
 
39
+ ### Options
40
+
41
+ #### Multiple languages
42
+
43
+ ```ruby
44
+ language: 'swift,objectivec'
45
+ ```
46
+
47
+ #### XML reports
48
+
49
+ ```ruby
50
+ export_type: 'xml'
51
+ ```
52
+
53
+ ## Sonar Swift Usage
54
+
55
+ In the default configuration, the [Backelite sonar-swift plugin][15] for SonarQube
56
+ expects an xml report located at `sonar-reports/lizard-report.xml`:
57
+
58
+ ```ruby
59
+ lizard(source_folder: 'foo', export_type: 'xml', report_file: 'sonar-reports/lizard-report.xml')
60
+ ```
61
+
40
62
  ## Issues and Feedback
41
63
 
42
64
  For any other issues and feedback about this plugin, please submit it to this repository.
43
65
 
44
66
  ## Troubleshooting
45
67
 
46
- If you have trouble using plugins, check out the [Plugins Troubleshooting](https://docs.fastlane.tools/plugins/plugins-troubleshooting/) guide.
68
+ If you have trouble using plugins, check out the [Plugins Troubleshooting][12]
69
+ guide.
47
70
 
48
71
  ## Using _fastlane_ Plugins
49
72
 
50
- For more information about how the `fastlane` plugin system works, check out the [Plugins documentation](https://docs.fastlane.tools/plugins/create-plugin/).
73
+ For more information about how the `fastlane` plugin system works, check out the
74
+ [Plugins documentation][13].
51
75
 
52
76
  ## About _fastlane_
53
77
 
54
- _fastlane_ is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out [fastlane.tools](https://fastlane.tools).
78
+ _fastlane_ is the easiest way to automate beta deployments and releases for your
79
+ iOS and Android apps. To learn more, check out [fastlane.tools][14].
80
+
81
+ [1]: https://rawcdn.githack.com/fastlane/fastlane/master/fastlane/assets/plugin-badge.svg
82
+ [2]: https://rubygems.org/gems/fastlane-plugin-lizard
83
+ [3]: https://badge.fury.io/rb/fastlane-plugin-lizard.svg
84
+ [4]: https://badge.fury.io/rb/fastlane-plugin-lizard
85
+ [5]: https://circleci.com/gh/liaogz82/fastlane-plugin-lizard.svg?style=svg&circle-token=6d2bc552098ad6c8955ddecc9b058827e91e25cf
86
+ [6]: https://circleci.com/gh/liaogz82/fastlane-plugin-lizard
87
+ [7]: https://codecov.io/gh/liaogz82/fastlane-plugin-lizard/branch/master/graph/badge.svg
88
+ [8]: https://codecov.io/gh/liaogz82/fastlane-plugin-lizard
89
+ [9]: https://github.com/fastlane/fastlane
90
+ [10]: https://github.com/terryyin/lizard
91
+ [11]: https://camo.githubusercontent.com/bf0171b40f72483bc67dd4352db1d37c90a541c1/687474703a2f2f7777772e6c697a6172642e77732f776562736974652f7374617469632f696d672f6c6f676f2d736d616c6c2e706e67
92
+ [12]: https://docs.fastlane.tools/plugins/plugins-troubleshooting/
93
+ [13]: https://docs.fastlane.tools/plugins/create-plugin/
94
+ [14]: https://fastlane.tools
95
+ [15]: https://github.com/Backelite/sonar-swift
@@ -10,6 +10,12 @@ module Fastlane
10
10
  UI.user_error!("The custom executable at '#{params[:executable]}' does not exist.")
11
11
  end
12
12
 
13
+ lizard_cli_version = Gem::Version.new(`lizard --version`.scan(/(?:\d+\.?){3}/).first)
14
+ required_version = Gem::Version.new(Fastlane::Lizard::CLI_VERSION)
15
+ if lizard_cli_version < required_version
16
+ UI.user_error!("Your lizard version is outdated, please upgrade to at least version #{Fastlane::Lizard::CLI_VERSION} and start your lane again!")
17
+ end
18
+
13
19
  command = forming_command(params)
14
20
 
15
21
  if params[:show_warnings]
@@ -90,7 +96,7 @@ module Fastlane
90
96
  optional: true),
91
97
  FastlaneCore::ConfigItem.new(key: :export_type,
92
98
  env_name: "FL_LIZARD_EXPORT_TYPE",
93
- description: "The file extension of your export. E.g. xml, csv",
99
+ description: "The file extension of your export. E.g. xml, csv, html",
94
100
  optional: true),
95
101
  FastlaneCore::ConfigItem.new(key: :ccn,
96
102
  env_name: "FL_LIZARD_CCN",
@@ -1,5 +1,6 @@
1
1
  module Fastlane
2
2
  module Lizard
3
- VERSION = "1.0.2"
3
+ VERSION = "1.1.0"
4
+ CLI_VERSION = "1.14.10"
4
5
  end
5
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastlane-plugin-lizard
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Moses Liao
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-19 00:00:00.000000000 Z
11
+ date: 2018-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -154,7 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
154
  version: '0'
155
155
  requirements: []
156
156
  rubyforge_project:
157
- rubygems_version: 2.6.13
157
+ rubygems_version: 2.7.6
158
158
  signing_key:
159
159
  specification_version: 4
160
160
  summary: Run swift code complexity analytics using Lizard