fastlane-plugin-lizard 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +18 -17
- data/lib/fastlane/plugin/lizard/actions/lizard_action.rb +5 -6
- data/lib/fastlane/plugin/lizard/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8cce2c0a09ca220573e841ddcc1218e8b7e4a51
|
4
|
+
data.tar.gz: 1dd2c70726a6cab1837913de31b0785902421f43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 133155f0d4235daed3a4a5436d070f60c8f3fa51d7ca18312f9a65bf23acd7ab7f553aa621f045f1097c7df36ef2fabc0db2df17cd4ae28d0d78533066e163f9
|
7
|
+
data.tar.gz: 05d245a77e46c2edc0169d2fd326f7e484cb96bb825854264f2a4404ce38786874e9fdc8f94850085c120bde83daa7b3ad20a7e6f3419db6b92501a50cec9ff0
|
data/README.md
CHANGED
@@ -1,6 +1,13 @@
|
|
1
|
-
|
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>
|
2
8
|
|
3
9
|
[](https://rubygems.org/gems/fastlane-plugin-lizard)
|
10
|
+
[](https://badge.fury.io/rb/fastlane-plugin-lizard)
|
4
11
|
|
5
12
|
## Getting Started
|
6
13
|
|
@@ -12,27 +19,21 @@ fastlane add_plugin lizard
|
|
12
19
|
|
13
20
|
## About lizard
|
14
21
|
|
15
|
-
|
22
|
+
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).
|
16
23
|
|
17
|
-
|
24
|
+
For more information check out the [Github repository](https://github.com/terryyin/lizard)
|
18
25
|
|
19
|
-
##
|
26
|
+
## Lizard Actions
|
20
27
|
|
21
|
-
|
28
|
+
Lizard has only one action so far
|
22
29
|
|
23
|
-
**Note to author:** Please set up a sample project to make it easy for users to explore what your plugin does. Provide everything that is necessary to try out the plugin in this project (including a sample Xcode/Android project if necessary)
|
24
|
-
|
25
|
-
## Run tests for this plugin
|
26
|
-
|
27
|
-
To run both the tests, and code style validation, run
|
28
|
-
|
29
|
-
```
|
30
|
-
rake
|
31
|
-
```
|
32
|
-
|
33
|
-
To automatically fix many of the styling issues, use
|
34
30
|
```
|
35
|
-
|
31
|
+
lizard(
|
32
|
+
source_folder: "foo",
|
33
|
+
language: "swift",
|
34
|
+
export_type: "csv",
|
35
|
+
report_file: "bar.csv"
|
36
|
+
)
|
36
37
|
```
|
37
38
|
|
38
39
|
## Issues and Feedback
|
@@ -2,7 +2,6 @@ module Fastlane
|
|
2
2
|
module Actions
|
3
3
|
class LizardAction < Action
|
4
4
|
def self.run(params)
|
5
|
-
puts params[:source_folder]
|
6
5
|
command = ["lizard #{params[:source_folder]}"]
|
7
6
|
command << "-l #{params[:language]}" if params[:language]
|
8
7
|
command << "--#{params[:export_type]}" if params[:export_type]
|
@@ -19,13 +18,12 @@ module Fastlane
|
|
19
18
|
|
20
19
|
if params[:show_warnings]
|
21
20
|
Fastlane::Actions.sh_control_output("lizard #{params[:source_folder]} | sed -n -e '/^$/,$p'", print_command: true, print_command_output: true)
|
22
|
-
else
|
23
|
-
Fastlane::Actions.sh_control_output(command.join(" "), print_command: false, print_command_output: false)
|
24
21
|
end
|
22
|
+
Fastlane::Actions.sh_control_output(command.join(" "), print_command: false, print_command_output: false)
|
25
23
|
end
|
26
24
|
|
27
25
|
def self.description
|
28
|
-
"Lizard is an extensible Cyclomatic Complexity Analyzer for many imperative programming languages including C/C++
|
26
|
+
"Lizard is an extensible Cyclomatic Complexity Analyzer for many imperative programming languages including C/C++"
|
29
27
|
end
|
30
28
|
|
31
29
|
def self.authors
|
@@ -69,7 +67,7 @@ module Fastlane
|
|
69
67
|
optional: true),
|
70
68
|
FastlaneCore::ConfigItem.new(key: :exclude,
|
71
69
|
env_name: "FL_LIZARD_EXCLUDE",
|
72
|
-
description: "Exclude files that match this pattern. * matches everything, ? matches any single character, \"./folder/*\" exclude everything in the folder recursively. Multiple patterns can be specified. Don't forget to add "" around the pattern",
|
70
|
+
description: "Exclude files that match this pattern. * matches everything, ? matches any single character, \"./folder/*\" exclude everything in the folder recursively. Multiple patterns can be specified. Don't forget to add \"\" around the pattern",
|
73
71
|
optional: true),
|
74
72
|
FastlaneCore::ConfigItem.new(key: :working_threads,
|
75
73
|
env_name: "FL_LIZARD_WORKING_THREADS",
|
@@ -93,7 +91,8 @@ module Fastlane
|
|
93
91
|
description: "The folder/file which lizard output to"),
|
94
92
|
FastlaneCore::ConfigItem.new(key: :show_warnings,
|
95
93
|
env_name: "FL_LIZARD_SHOW_WARNINGS",
|
96
|
-
description: "Show lizard warnings on console",
|
94
|
+
description: "Show lizard warnings on console, on code that is too complex",
|
95
|
+
is_string: false,
|
97
96
|
default_value: false)
|
98
97
|
]
|
99
98
|
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: 0.1.
|
4
|
+
version: 0.1.1
|
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-01-
|
11
|
+
date: 2018-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -84,16 +84,16 @@ dependencies:
|
|
84
84
|
name: rubocop
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0
|
89
|
+
version: '0'
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: 0
|
96
|
+
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: simplecov
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -114,14 +114,14 @@ dependencies:
|
|
114
114
|
requirements:
|
115
115
|
- - ">="
|
116
116
|
- !ruby/object:Gem::Version
|
117
|
-
version:
|
117
|
+
version: '0'
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
121
121
|
requirements:
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version:
|
124
|
+
version: '0'
|
125
125
|
description:
|
126
126
|
email: moses.liao.sd@gmail.com
|
127
127
|
executables: []
|