Skip to content

Commit

Permalink
Run latest RuboCop version
Browse files Browse the repository at this point in the history
  • Loading branch information
iangmaia committed Feb 7, 2024
1 parent 8b8401e commit ac0ecb5
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
10 changes: 5 additions & 5 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2023-11-08 13:49:19 UTC using RuboCop version 1.57.1.
# on 2024-02-07 17:44:01 UTC using RuboCop version 1.60.2.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
Expand Down Expand Up @@ -34,7 +34,7 @@ Naming/MethodParameterName:
- 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/an_update_metadata_source_action.rb'
- 'lib/fastlane/plugin/wpmreleasetoolkit/actions/common/gp_update_metadata_source.rb'

# Offense count: 109
# Offense count: 110
# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
# NamePrefix: is_, has_, have_
# ForbiddenPrefixes: is_, has_, have_
Expand All @@ -60,7 +60,7 @@ RSpec/ContextWording:
- 'spec/git_helper_spec.rb'
- 'spec/ios_lint_localizations_spec.rb'

# Offense count: 61
# Offense count: 62
# Configuration parameters: Include, CustomTransform, IgnoreMethods, SpecSuffixOnly.
# Include: **/*_spec*rb*, **/spec/**/*
RSpec/FilePath:
Expand All @@ -73,7 +73,7 @@ RSpec/InstanceVariable:
- 'spec/git_helper_spec.rb'
- 'spec/ios_lint_localizations_spec.rb'

# Offense count: 109
# Offense count: 122
# Configuration parameters: .
# SupportedStyles: have_received, receive
RSpec/MessageSpies:
Expand Down Expand Up @@ -116,7 +116,7 @@ Security/Open:
- 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/an_validate_lib_strings_action.rb'
- 'lib/fastlane/plugin/wpmreleasetoolkit/actions/android/android_create_xml_release_notes.rb'

# Offense count: 123
# Offense count: 124
# Configuration parameters: AllowedConstants.
Style/Documentation:
Enabled: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ def self.available_options
type: Hash,
verify_block: proc do |values|
UI.user_error!('`target_original_files` must contain at least one path to an original `.strings` file.') if values.empty?
values.each do |path, _|
values.each_key do |path|
UI.user_error!("Path `#{path}` (found in `target_original_files`) does not exist.") unless File.exist?(path)
UI.user_error! "Expected `#{path}` (found in `target_original_files`) to be a path ending in a `*.lproj/*.strings`." unless File.extname(path) == '.strings' && File.extname(File.dirname(path)) == '.lproj'
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def self.run(params)
app_thinning_plist_path = params[:app_thinning_plist_path] || File.join(File.dirname(params[:ipa_path]), 'app-thinning.plist')
if File.exist?(app_thinning_plist_path)
plist = Plist.parse_xml(app_thinning_plist_path)
plist['variants'].each do |_key, variant|
plist['variants'].each_value do |variant|
variant_descriptors = variant['variantDescriptors'] || [{ 'device' => 'Universal' }]
variant_descriptors.each do |desc|
variant_metadata = { device: desc['device'], 'OS Version': desc['os-version'] }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def self.run(params)
release_version: params[:release_version])

Action.sh("git add #{params[:po_file_path]}")
params[:source_files].each do |_key, file|
params[:source_files].each_value do |file|
Action.sh("git add #{file}")
end

Expand Down

0 comments on commit ac0ecb5

Please sign in to comment.