fastlane-plugin-swiftformat 0.2.0 → 0.3.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
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 875e93c49638063b7d16e8746ca235700221575b290564538c0a6dba5d4c71be
|
4
|
+
data.tar.gz: 38b5f41d83b9ef713b80f2f3238770110a8397800832889d247a65df66f53e61
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11773b0c9f871eccfb60ba2f3d9d567aaee1e4e94eb80ec4a6c0e9335569ea55d90aa5ff253d2aa44f9b1de5aba875807e4424df41eaa0cf672a6d8ced7b5c81
|
7
|
+
data.tar.gz: 87ef90086ef0fd625efa4e830942ccd1c92357ed94a3be8022beb4733a4d4b294278acbc4420dbe6e27efbdf40f6b63d045bbcfb7f93266e111a5550b0c97402
|
data/README.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
# fastlane-plugin-swiftformat
|
2
2
|
|
3
|
-
[![
|
3
|
+
[![Version shield](https://img.shields.io/gem/v/fastlane-plugin-swiftformat)](https://rubygems.org/gems/fastlane-plugin-swiftformat) [![Total downloads shield](https://img.shields.io/gem/dt/fastlane-plugin-swiftformat)](https://rubygems.org/gems/fastlane-plugin-swiftformat)
|
4
|
+
|
4
5
|
|
5
6
|
## Getting Started
|
6
7
|
|
@@ -24,6 +25,7 @@ swiftformat(
|
|
24
25
|
enable: "isEmpty", # Specify rules to enable (optional)
|
25
26
|
swiftversion: "5.1" # Specify swift version (optional)
|
26
27
|
config: "path/to/configuration/.swiftformat" # Path to configuration file (optional)
|
28
|
+
header: "{file}\nCopyright (c) 2022 Foobar Industries" # Strip or replace the header comments in every file with the given template (optional)
|
27
29
|
dryrun: false, # Run in dry mode (without actually changing any files) (optional)
|
28
30
|
lint: true # Like `--dryrun`, but returns an error if formatting is needed (optional)
|
29
31
|
)
|
@@ -28,6 +28,7 @@ module Fastlane
|
|
28
28
|
|
29
29
|
command << " --swiftversion #{params[:swiftversion].shellescape}" if params[:swiftversion]
|
30
30
|
command << " --config #{params[:config].shellescape}" if params[:config]
|
31
|
+
command << ' --header "' + params[:header] + '"' if params[:header]
|
31
32
|
|
32
33
|
command << " --dryrun" if params[:dryrun]
|
33
34
|
command << " --lint" if params[:lint]
|
@@ -93,6 +94,11 @@ module Fastlane
|
|
93
94
|
verify_block: proc do |value|
|
94
95
|
UI.user_error!("Couldn't find path '#{File.expand_path(value)}'") unless File.exist?(value) || Helper.test?
|
95
96
|
end),
|
97
|
+
FastlaneCore::ConfigItem.new(key: :header,
|
98
|
+
env_name: "SWIFTFORMAT_HEADER",
|
99
|
+
description: "Strip or replace the header comments in every file with the given template",
|
100
|
+
is_string: true,
|
101
|
+
optional: true),
|
96
102
|
FastlaneCore::ConfigItem.new(key: :dryrun,
|
97
103
|
env_name: "SWIFTFORMAT_DRYRUN",
|
98
104
|
description: "Run in dry mode (without actually changing any files)",
|
@@ -130,6 +136,7 @@ module Fastlane
|
|
130
136
|
enable: "isEmpty", # Specify rules to enable (optional)
|
131
137
|
swiftversion: "5.1" # Specify swift version (optional)
|
132
138
|
config: "path/to/configuration/.swiftformat" # Path to configuration file (optional)
|
139
|
+
header: "{file}\nCopyright (c) 2022 Foobar Industries" # Strip or replace the header comments in every file with the given template (optional)
|
133
140
|
dryrun: false, # Run in dry mode (without actually changing any files) (optional)
|
134
141
|
lint: true # Like `--dryrun`, but returns an error if formatting is needed (optional)
|
135
142
|
)'
|
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.3.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: 2022-
|
11
|
+
date: 2022-07-15 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,8 +167,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
167
|
- !ruby/object:Gem::Version
|
168
168
|
version: '0'
|
169
169
|
requirements: []
|
170
|
-
rubygems_version: 3.1
|
171
|
-
signing_key:
|
170
|
+
rubygems_version: 3.0.3.1
|
171
|
+
signing_key:
|
172
172
|
specification_version: 4
|
173
173
|
summary: Run swift code formatting using SwiftFormat
|
174
174
|
test_files: []
|