Lint: Style/LineEndConcatenation

I've come around to where I don't mind the backslash.
This commit is contained in:
Jared Beck 2018-03-27 18:35:00 -04:00
parent c0633be405
commit e05eef6ae7
3 changed files with 3 additions and 12 deletions

View File

@ -135,15 +135,6 @@ Style/GuardClause:
Style/IfUnlessModifier:
Enabled: false
# The Ruby Style Guide says:
#
# > Use \ instead of + or << to concatenate two string literals at line end.
#
# but in my experience the `\` style is rarely used and less readable. Please
# concatenate multiline strings with `+` or use a HEREDOC.
Style/LineEndConcatenation:
Enabled: false
# Using `module_function` instead of `extend self` would make the instance
# methods in these modules private. That would be a breaking change, so these
# modules are excluded. See discussion in:

View File

@ -648,7 +648,7 @@ module PaperTrail
def log_version_errors(version, action)
version.logger&.warn(
"Unable to create version for #{action} of #{@record.class.name}" +
"Unable to create version for #{action} of #{@record.class.name}" \
"##{@record.id}: " + version.errors.full_messages.join(", ")
)
end

View File

@ -6,6 +6,6 @@
# If you change this key, all old signed cookies will become invalid!
# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
Dummy::Application.config.secret_token = "99c0312cf416079a8c7ccc63acb1e9f4f" +
"17741398ec8022a2f4fb509c57f55b72486573e9816a026f507efbcd452a9e954d45c93c" +
Dummy::Application.config.secret_token = "99c0312cf416079a8c7ccc63acb1e9f4f" \
"17741398ec8022a2f4fb509c57f55b72486573e9816a026f507efbcd452a9e954d45c93c" \
"95d5bacd87e664ad6805d3f"