Add and apply Style/RedundantRegexpArgument RuboCop rule
This rule was introduced in RuboCop 1.53.0. After adding the Style/RedundantRegexpCharacterClass rule in the previous commit, RuboCop started detecting redundant regular expression arguments. Therefore, we apply this rule to remove them and prevent future occurrences.
This commit is contained in:
@@ -781,6 +781,9 @@ Style/RedundantInterpolation:
|
|||||||
Style/RedundantParentheses:
|
Style/RedundantParentheses:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
|
Style/RedundantRegexpArgument:
|
||||||
|
Enabled: true
|
||||||
|
|
||||||
Style/RedundantRegexpCharacterClass:
|
Style/RedundantRegexpCharacterClass:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ class SignatureSheet < ApplicationRecord
|
|||||||
end
|
end
|
||||||
|
|
||||||
def parsed_required_fields_to_verify_groups
|
def parsed_required_fields_to_verify_groups
|
||||||
required_fields_to_verify.split(/;/).map { |d| d.gsub(/\s+/, "") }.map { |group| group.split(/,/) }
|
required_fields_to_verify.split(";").map { |d| d.gsub(/\s+/, "") }.map { |group| group.split(",") }
|
||||||
end
|
end
|
||||||
|
|
||||||
def signable_found
|
def signable_found
|
||||||
|
|||||||
Reference in New Issue
Block a user