Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[rubocop] Step 5 #214

Merged
merged 37 commits into from
Feb 24, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
9a604f2
[rubocop] fix Style/AndOr
AliSoftware Feb 18, 2021
3c24919
[rubocop] fix Style/BarePercentLiterals
AliSoftware Feb 18, 2021
604b017
[rubocop] fix Style/BlockDelimiters
AliSoftware Feb 18, 2021
70c7b6e
[rubocop] fix Style/BracesAroundHashParameters
AliSoftware Feb 18, 2021
75c9583
[rubocop] fix Style/ClassAndModuleChildren
AliSoftware Feb 18, 2021
a9d818d
[rubocop] fix Style/ClassCheck
AliSoftware Feb 18, 2021
3bb7aed
[rubocop] fix Style/ConditionalAssignment
AliSoftware Feb 18, 2021
bfb40c9
[rubocop] fix Style/DefWithParentheses
AliSoftware Feb 18, 2021
bda5e57
[rubocop] fix Style/EmptyLiteral
AliSoftware Feb 18, 2021
2a93320
[rubocop] configure Style/EmptyMethod
AliSoftware Feb 18, 2021
9c77eca
[rubocop] fix Style/Encoding
AliSoftware Feb 18, 2021
9f2c690
[rubocop] fix Style/ExpandPathArguments
AliSoftware Feb 18, 2021
4a56484
[rubocop] fix Style/FormatString
AliSoftware Feb 18, 2021
191e9e5
[rubocop] disable Style/FrozenStringLiteralComment
AliSoftware Feb 18, 2021
5830fc7
[rubocop] fix Style/HashSyntax
AliSoftware Feb 18, 2021
a882be7
[rubocop] fix Style/IfUnlessModifier
AliSoftware Feb 18, 2021
7fe4b1a
[rubocop] fix Style/InverseMethods
AliSoftware Feb 18, 2021
4cb320a
[rubocop] fix Style/ParenthesesAroundCondition
AliSoftware Feb 18, 2021
0250763
[rubocop] fix Style/MultilineIfThen
AliSoftware Feb 18, 2021
3750c49
[rubocop] fix Style/NegatedIf
AliSoftware Feb 18, 2021
0bc24dc
[rubocop] fix Style/NegatedUnless
AliSoftware Feb 18, 2021
79995c3
[rubocop] fix Style/NilComparison
AliSoftware Feb 18, 2021
6de7f59
[rubocop] fix Style/NonNilCheck (safe-auto-correct)
AliSoftware Feb 18, 2021
b7691b6
[rubocop] fix Style/NonNilCheck (manual fixes) ⚠️
AliSoftware Feb 18, 2021
f84285d
[rubocop] ⚠️ Manual fix of Metrics/AbcSize
AliSoftware Feb 18, 2021
27fd9d1
[rubocop] fix Style/Not
AliSoftware Feb 18, 2021
7976a90
[rubocop] fix Style/NumericLiteralPrefix
AliSoftware Feb 18, 2021
9d47d7d
[rubocop] fix Style/PercentLiteralDelimiters
AliSoftware Feb 18, 2021
461eb41
[rubocop] fix Style/RegexpLiteral
AliSoftware Feb 18, 2021
16a9ecb
[rubocop] fix Style/Semicolon
AliSoftware Feb 18, 2021
dc044c3
[rubocop] fix Style/StringLiteralsInInterpolation
AliSoftware Feb 18, 2021
9c5080d
[rubocop] fix Style/TrailingCommaInArguments
AliSoftware Feb 18, 2021
3b6252c
[rubocop] fix Style/TrailingCommaInArrayLiteral
AliSoftware Feb 18, 2021
17b1e76
[rubocop] fix Style/TrailingCommaInHashLiteral
AliSoftware Feb 18, 2021
4492cc7
Add comment about octal notation for chmod-like flags
AliSoftware Feb 24, 2021
f6499f7
[rubocop] fix Style/TrailingCommaInArrayLiteral
AliSoftware Feb 24, 2021
fd8d9bd
build_entries doesn't need the whole config Hash
AliSoftware Feb 24, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -464,13 +464,6 @@ Style/TernaryParentheses:
- 'lib/fastlane/plugin/wpmreleasetoolkit/actions/common/extract_release_notes_for_version_action.rb'
- 'lib/fastlane/plugin/wpmreleasetoolkit/helper/configure_helper.rb'

# Offense count: 20
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleForMultiline.
# SupportedStylesForMultiline: comma, consistent_comma, no_comma
Style/TrailingCommaInArrayLiteral:
AliSoftware marked this conversation as resolved.
Show resolved Hide resolved
Enabled: false

# Offense count: 1
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyleForMultiline.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def self.available_options
env_name: 'CHECK_LIBS_DIFF_URL',
description: 'The url of the diff to check',
optional: true,
is_string: true),
is_string: true)
]
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def self.available_options
env_name: 'FL_ANDROID_BUILD_PRECHECKS_FINAL_BUILD',
description: 'True if this is for a final build',
is_string: false,
default_value: false),
default_value: false)
]
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def self.available_options
FastlaneCore::ConfigItem.new(key: :locales,
env_name: 'FL_DOWNLOAD_METADATA_LOCALES',
description: 'The hash with the GLotPress locale and the project locale association',
is_string: false),
is_string: false)
]
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def self.available_options
env_name: 'AMTS_STRING_FOLDER',
description: 'The folder that contains all the translations',
optional: false,
type: String),
type: String)
]
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def self.available_options
env_name: 'GHHELPER_MILESTONE',
description: 'The GitHub milestone',
optional: false,
type: String),
type: String)
]
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def self.available_options
description: 'True if the app needs to be submitted',
optional: true,
is_string: false,
default_value: false),
default_value: false)
]
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ def self.available_options
description: 'True if this is a pre-release',
optional: true,
default_value: false,
is_string: false),
is_string: false)
]
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def self.available_options
env_name: 'GHHELPER_EXTRACT_NOTES_EXTRACTED_FILE_PATH',
description: 'The path to the file that will contain the extracted release notes',
optional: true,
is_string: true),
is_string: true)
]
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ def self.available_options
description: 'Overwrite existing promo screenshots without asking first?',
optional: true,
is_string: false,
default_value: false),
default_value: false)
]
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def self.available_options
description: 'Overwrite copied files without confirmation',
optional: true,
default_value: false,
is_string: false),
is_string: false)
]
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def self.validate_that_branches_match

UI.user_error!([
'The branch specified in `.configure` is not the currently checked out branch in the secrets repository.',
"To fix this issue, switch back to the `#{file_branch_name}` branch in the mobile secrets repository.",
"To fix this issue, switch back to the `#{file_branch_name}` branch in the mobile secrets repository."
].join("\n"))
end
end
Expand All @@ -59,7 +59,7 @@ def self.validate_that_hashes_match

UI.user_error!([
'The pinned_hash specified in `.configure` is not the currently checked out hash in the secrets repository.',
"To fix this issue, check out the `#{file_hash}` hash in the mobile secrets repository.",
"To fix this issue, check out the `#{file_hash}` hash in the mobile secrets repository."
].join("\n"))
end
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def self.available_options
is_string: true,
verify_block: proc do |value|
UI.user_error!('You must provide a team ID in `team_id`') unless value && (!value.empty?)
end),
end)
]
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def self.available_options
verify_block: proc do |value|
UI.user_error!('You must provide a team ID in `team_id`') unless value && (!value.empty?)
end
),
)
]
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def self.available_options
env_name: 'FL_IOS_CODEFREEZE_BUMP_SKIPDELIVER',
description: 'Skips Deliver key update',
is_string: false, # true: verifies the input is a string, false: every kind of value
default_value: false), # the default value if the user didn't provide one
default_value: false) # the default value if the user didn't provide one

]
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def self.available_options
FastlaneCore::ConfigItem.new(key: :podfile,
env_name: 'FL_IOS_CHECKBETADEPS_PODFILE',
description: 'Path to the Podfile to analyse',
is_string: true),
is_string: true)
]
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def self.available_options
description: "The output format used to print the result. Can be one of 'csv' or 'markdown', or nil to print nothing (raw data will always be available as the the action's return value)",
type: String,
optional: true
),
)
]
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ def self.available_options
optional: true,
default_value: false,
is_string: false # https://docs.fastlane.tools/advanced/actions/#boolean-parameters
),
)
]
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ def self.available_options
env_name: 'IMTS_STRING_FOLDER',
description: 'The folder that contains all the translations',
optional: false,
type: String),
type: String)
]
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -373,7 +373,7 @@ def resolve_path(path)
Pathname.new(path), # Absolute Path
Pathname.new(FastlaneCore::FastlaneFolder.fastfile_path).dirname + path, # Path Relative to the fastfile
Fastlane::Helper::FilesystemHelper.plugin_root + path, # Path Relative to the plugin
Fastlane::Helper::FilesystemHelper.plugin_root + 'spec/test-data/' + path, # Path Relative to the test data
Fastlane::Helper::FilesystemHelper.plugin_root + 'spec/test-data/' + path # Path Relative to the test data
]
.each do |resolved_path|
return resolved_path if !resolved_path.nil? && resolved_path.exist?
Expand Down