Skip to content

Commit 05fb0c6

Browse files
committed
Fix rubocop violation (shadowing var)
1 parent 9b9fab2 commit 05fb0c6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

lib/fastlane/plugin/wpmreleasetoolkit/actions/ios/ios_lint_localizations.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,17 @@ def self.run_linter(params)
2222
install_path: resolve_path(params[:install_path]),
2323
version: params[:version]
2424
)
25-
violations = helper.run(
25+
all_violations = helper.run(
2626
input_dir: resolve_path(params[:input_dir]),
2727
base_lang: params[:base_lang],
2828
only_langs: params[:only_langs]
2929
)
3030

31-
violations.each do |lang, violations|
32-
UI.error "Inconsistencies found between '#{params[:base_lang]}' and '#{lang}':\n\n#{violations.join("\n")}\n"
31+
all_violations.each do |lang, lang_violations|
32+
UI.error "Inconsistencies found between '#{params[:base_lang]}' and '#{lang}':\n\n#{lang_violations.join("\n")}\n"
3333
end
3434

35-
violations
35+
all_violations
3636
end
3737

3838
RETRY_MESSAGE = <<~MSG
@@ -148,15 +148,15 @@ def self.output
148148
end
149149

150150
def self.return_type
151-
:hash_of_strings
151+
:hash
152152
end
153153

154154
def self.return_value
155-
'A hash, keyed by language code, whose values are the diff found for said language'
155+
'A hash, keyed by language code, whose values are arrays of violations found for that language'
156156
end
157157

158158
def self.authors
159-
['AliSoftware']
159+
['Automattic']
160160
end
161161

162162
def self.is_supported?(platform)

0 commit comments

Comments
 (0)