fastlane-plugin-swiftformat 0.1.0 → 0.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
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: afe1e310db73da7c45eb62a95aca859f560064af391f68050a341ecc2639c013
|
|
4
|
+
data.tar.gz: b607f2eff15cde95d6ec7f45ea9adc99802ec8637481521a677f4be4a705ef68
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c48025cd991d76ae29bb3849d96cad406659a5b2739935d2960b47ffc39d1b5ecb36222ed3712b2c760b328b5ff69944e82d8f4837915c3bd932a45df86f702e
|
|
7
|
+
data.tar.gz: f456df0d2aeb4676486b5d4831bc008ac70877915cb70834a4889846ba5912c4cac5b4d0f400837bca1b4d97bb2d43f91e5b7e57bea4d137057bd020327a39f9
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
This project is a [_fastlane_](https://github.com/fastlane/fastlane) plugin. To get started with `fastlane-plugin-swiftformat`, add it to your project by running:
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
gem
|
|
10
|
+
gem 'fastlane-plugin-swiftformat'
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
## About fastlane-plugin-swiftformat
|
|
@@ -50,6 +50,7 @@ module Fastlane
|
|
|
50
50
|
def self.available_options
|
|
51
51
|
[
|
|
52
52
|
FastlaneCore::ConfigItem.new(key: :executable,
|
|
53
|
+
env_name: "SWIFTFORMAT_EXECUTABLE",
|
|
53
54
|
description: "Path to the `swiftformat` executable on your machine",
|
|
54
55
|
is_string: true,
|
|
55
56
|
optional: true,
|
|
@@ -57,6 +58,7 @@ module Fastlane
|
|
|
57
58
|
UI.user_error!("Couldn't find path '#{File.expand_path(value)}'") unless File.exist?(value) || Helper.test?
|
|
58
59
|
end),
|
|
59
60
|
FastlaneCore::ConfigItem.new(key: :path,
|
|
61
|
+
env_name: "SWIFTFORMAT_PATH",
|
|
60
62
|
description: "Path to format",
|
|
61
63
|
is_string: true,
|
|
62
64
|
optional: true,
|
|
@@ -64,22 +66,27 @@ module Fastlane
|
|
|
64
66
|
UI.user_error!("Couldn't find path '#{File.expand_path(value)}'") unless File.exist?(value) || Helper.test?
|
|
65
67
|
end),
|
|
66
68
|
FastlaneCore::ConfigItem.new(key: :rules,
|
|
69
|
+
env_name: "SWIFTFORMAT_RULES",
|
|
67
70
|
description: "Specify a whitelist of rules",
|
|
68
71
|
is_string: false,
|
|
69
72
|
optional: true),
|
|
70
73
|
FastlaneCore::ConfigItem.new(key: :disable,
|
|
74
|
+
env_name: "SWIFTFORMAT_DISABLE",
|
|
71
75
|
description: "Specify rules to disable",
|
|
72
76
|
is_string: false,
|
|
73
77
|
optional: true),
|
|
74
78
|
FastlaneCore::ConfigItem.new(key: :enable,
|
|
79
|
+
env_name: "SWIFTFORMAT_ENABLE",
|
|
75
80
|
description: "Specify rules to enable",
|
|
76
81
|
is_string: false,
|
|
77
82
|
optional: true),
|
|
78
83
|
FastlaneCore::ConfigItem.new(key: :swiftversion,
|
|
84
|
+
env_name: "SWIFTFORMAT_SWIFTVERSION",
|
|
79
85
|
description: "Specify swift version",
|
|
80
86
|
is_string: false,
|
|
81
87
|
optional: true),
|
|
82
88
|
FastlaneCore::ConfigItem.new(key: :config,
|
|
89
|
+
env_name: "SWIFTFORMAT_CONFIG",
|
|
83
90
|
description: "Path to configuration file",
|
|
84
91
|
is_string: true,
|
|
85
92
|
optional: true,
|
|
@@ -87,10 +94,12 @@ module Fastlane
|
|
|
87
94
|
UI.user_error!("Couldn't find path '#{File.expand_path(value)}'") unless File.exist?(value) || Helper.test?
|
|
88
95
|
end),
|
|
89
96
|
FastlaneCore::ConfigItem.new(key: :dryrun,
|
|
97
|
+
env_name: "SWIFTFORMAT_DRYRUN",
|
|
90
98
|
description: "Run in dry mode (without actually changing any files)",
|
|
91
99
|
is_string: false,
|
|
92
100
|
optional: true),
|
|
93
101
|
FastlaneCore::ConfigItem.new(key: :lint,
|
|
102
|
+
env_name: "SWIFTFORMAT_LINT",
|
|
94
103
|
description: "Like `--dryrun`, but returns an error if formatting is needed",
|
|
95
104
|
is_string: false,
|
|
96
105
|
optional: true)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: fastlane-plugin-swiftformat
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Felix Mau
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-01-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: pry
|
|
@@ -136,7 +136,7 @@ dependencies:
|
|
|
136
136
|
- - ">="
|
|
137
137
|
- !ruby/object:Gem::Version
|
|
138
138
|
version: 2.141.0
|
|
139
|
-
description:
|
|
139
|
+
description:
|
|
140
140
|
email: me@felix.hamburg
|
|
141
141
|
executables: []
|
|
142
142
|
extensions: []
|
|
@@ -152,7 +152,7 @@ homepage: https://github.com/fxm90/fastlane-plugin-swiftformat
|
|
|
152
152
|
licenses:
|
|
153
153
|
- MIT
|
|
154
154
|
metadata: {}
|
|
155
|
-
post_install_message:
|
|
155
|
+
post_install_message:
|
|
156
156
|
rdoc_options: []
|
|
157
157
|
require_paths:
|
|
158
158
|
- lib
|
|
@@ -167,9 +167,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
167
167
|
- !ruby/object:Gem::Version
|
|
168
168
|
version: '0'
|
|
169
169
|
requirements: []
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
signing_key:
|
|
170
|
+
rubygems_version: 3.1.2
|
|
171
|
+
signing_key:
|
|
173
172
|
specification_version: 4
|
|
174
173
|
summary: Run swift code formatting using SwiftFormat
|
|
175
174
|
test_files: []
|