fastlane-plugin-lizard 1.1.1 → 1.2.0
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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 27c0fb83c526e5194511cffe11703cc2d0bb509aa0da9ba49a23f77910f9c55e
|
|
4
|
+
data.tar.gz: 1a2fae21783a6ea3a94546701e706b0b25f7be32c17081df3e3c6293ff4021ed
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6ef0eb442d17ac9383e598faa71f140f2a2bc8274e6de3f3ef8dcadfc6a1364d6f5a45339dbad13b6481412c5c065116acdd3203e7b988ca17a8a1c95f14b7e9
|
|
7
|
+
data.tar.gz: 998c1bceaa8e48c1a5f21853756a1fd8aa0dd14dc929cc209acc03041d97104e6c1743391e065db8ed9ab3747e469cc78bb9470f2b46f06f070b3c7b8471ca01
|
data/README.md
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
[![Gem Version][3]][4]
|
|
5
5
|
[![CircleCI][5]][6]
|
|
6
6
|
[![codecov][7]][8]
|
|
7
|
+
[![Maintainability][16]][17]
|
|
7
8
|
|
|
8
9
|
## Getting Started
|
|
9
10
|
|
|
@@ -93,3 +94,5 @@ iOS and Android apps. To learn more, check out [fastlane.tools][14].
|
|
|
93
94
|
[13]: https://docs.fastlane.tools/plugins/create-plugin/
|
|
94
95
|
[14]: https://fastlane.tools
|
|
95
96
|
[15]: https://github.com/Backelite/sonar-swift
|
|
97
|
+
[16]: https://api.codeclimate.com/v1/badges/c241884a5177ca46c672/maintainability
|
|
98
|
+
[17]: https://codeclimate.com/github/liaogz82/fastlane-plugin-lizard/maintainability
|
|
@@ -6,8 +6,12 @@ module Fastlane
|
|
|
6
6
|
UI.user_error!("You have to install lizard using `[sudo] pip install lizard` or specify the executable path with the `:executable` option.")
|
|
7
7
|
end
|
|
8
8
|
|
|
9
|
-
if params[:executable]
|
|
10
|
-
|
|
9
|
+
if params[:executable]
|
|
10
|
+
if !File.exist?(params[:executable])
|
|
11
|
+
UI.user_error!("The custom executable at '#{params[:executable]}' does not exist.")
|
|
12
|
+
elsif !File.file?(params[:executable])
|
|
13
|
+
UI.user_error!("You need to point to the executable to lizard.py file!")
|
|
14
|
+
end
|
|
11
15
|
end
|
|
12
16
|
|
|
13
17
|
lizard_command = params[:executable].nil? ? "lizard" : "python #{params[:executable]}"
|
|
@@ -20,10 +24,6 @@ module Fastlane
|
|
|
20
24
|
|
|
21
25
|
command = forming_command(lizard_command, params)
|
|
22
26
|
|
|
23
|
-
if params[:show_warnings]
|
|
24
|
-
Fastlane::Actions.sh_control_output("#{lizard_command} #{params[:source_folder]} | sed -n -e '/^$/,$p'", print_command: true, print_command_output: true)
|
|
25
|
-
end
|
|
26
|
-
|
|
27
27
|
begin
|
|
28
28
|
Actions.sh(command.join(" "), log: false)
|
|
29
29
|
rescue StandardError => e
|
|
@@ -149,11 +149,6 @@ module Fastlane
|
|
|
149
149
|
default_value: false,
|
|
150
150
|
is_string: false,
|
|
151
151
|
optional: true),
|
|
152
|
-
FastlaneCore::ConfigItem.new(key: :show_warnings,
|
|
153
|
-
env_name: "FL_LIZARD_SHOW_WARNINGS",
|
|
154
|
-
description: "Show lizard warnings on console, on code that is too complex",
|
|
155
|
-
is_string: false,
|
|
156
|
-
default_value: false),
|
|
157
152
|
FastlaneCore::ConfigItem.new(key: :executable,
|
|
158
153
|
description: "Path to the `lizard.py` executable on your machine",
|
|
159
154
|
is_string: true,
|
|
@@ -4,9 +4,9 @@ module Fastlane
|
|
|
4
4
|
# class methods that you define here become available in your action
|
|
5
5
|
# as `Helper::LizardHelper.your_method`
|
|
6
6
|
#
|
|
7
|
-
def self.show_message
|
|
8
|
-
|
|
9
|
-
end
|
|
7
|
+
# def self.show_message
|
|
8
|
+
# UI.message("Hello from the lizard plugin helper!")
|
|
9
|
+
# end
|
|
10
10
|
end
|
|
11
11
|
end
|
|
12
12
|
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.
|
|
4
|
+
version: 1.2.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-
|
|
11
|
+
date: 2018-12-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|