File tree Expand file tree Collapse file tree 4 files changed +9
-17
lines changed
lib/fastlane/plugin/wpmreleasetoolkit/actions Expand file tree Collapse file tree 4 files changed +9
-17
lines changed Original file line number Diff line number Diff line change @@ -320,14 +320,6 @@ Style/SymbolProc:
320
320
- ' lib/fastlane/plugin/wpmreleasetoolkit/helper/ios/ios_version_helper.rb'
321
321
- ' lib/fastlane/plugin/wpmreleasetoolkit/models/configuration.rb'
322
322
323
- # Offense count: 3
324
- # This cop supports safe autocorrection (--autocorrect).
325
- Style/UnlessElse :
326
- Exclude :
327
- - ' lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_completecodefreeze_prechecks.rb'
328
- - ' lib/fastlane/plugin/wpmreleasetoolkit/actions/common/promo_screenshots_action.rb'
329
- - ' lib/fastlane/plugin/wpmreleasetoolkit/actions/configure/configure_download_action.rb'
330
-
331
323
# Offense count: 4
332
324
# This cop supports unsafe autocorrection (--autocorrect-all).
333
325
Style/ZeroLengthPredicate :
Original file line number Diff line number Diff line change @@ -13,10 +13,10 @@ def self.run(params)
13
13
14
14
version = Fastlane ::Helper ::Android ::VersionHelper . get_public_version
15
15
message = "Completing code freeze for: #{ version } \n "
16
- unless params [ :skip_confirm ]
17
- UI . user_error! ( 'Aborted by user request' ) unless UI . confirm ( "#{ message } Do you want to continue?" )
18
- else
16
+ if params [ :skip_confirm ]
19
17
UI . message ( message )
18
+ else
19
+ UI . user_error! ( 'Aborted by user request' ) unless UI . confirm ( "#{ message } Do you want to continue?" )
20
20
end
21
21
22
22
# Check local repo status
Original file line number Diff line number Diff line change @@ -18,11 +18,11 @@ def self.run(params)
18
18
translationDirectories = subdirectories_for_path ( params [ :metadata_folder ] )
19
19
imageDirectories = subdirectories_for_path ( params [ :orig_folder ] )
20
20
21
- unless helper . can_resolve_path ( params [ :output_folder ] )
21
+ if helper . can_resolve_path ( params [ :output_folder ] )
22
+ UI . message "#{ self . check_path ( params [ :output_folder ] ) } Output Folder: #{ params [ :output_folder ] } "
23
+ else
22
24
UI . message "✅ Created Output Folder: #{ params [ :output_folder ] } "
23
25
FileUtils . mkdir_p ( params [ :output_folder ] )
24
- else
25
- UI . message "#{ self . check_path ( params [ :output_folder ] ) } Output Folder: #{ params [ :output_folder ] } "
26
26
end
27
27
28
28
outputDirectory = helper . resolve_path ( params [ :output_folder ] )
Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ def self.run(params = {})
9
9
UI . message 'Running Configure Download'
10
10
11
11
# If the `~/.mobile-secrets` repository doesn't exist
12
- unless File . directory? ( secrets_dir )
13
- UI . user_error! ( "The local secrets store does not exist. Please clone it to #{ secrets_dir } before continuing." )
14
- else
12
+ if File . directory? ( secrets_dir )
15
13
update_repository # If the repo already exists, just update it
14
+ else
15
+ UI . user_error! ( "The local secrets store does not exist. Please clone it to #{ secrets_dir } before continuing." )
16
16
end
17
17
end
18
18
You can’t perform that action at this time.
0 commit comments