Merge pull request #13282 from cyrillefr/FixRubocopNamingHeredocDelimiterNaming

Fixes Rubocop HeredocDelimiterNaming offense
This commit is contained in:
Maikel
2025-04-29 12:44:58 +10:00
committed by GitHub
2 changed files with 2 additions and 9 deletions

View File

@@ -221,13 +221,6 @@ Metrics/PerceivedComplexity:
- 'app/models/spree/ability.rb'
- 'app/models/spree/order/checkout.rb'
# Offense count: 1
# Configuration parameters: ForbiddenDelimiters.
# ForbiddenDelimiters: (?i-mx:(^|\s)(EO[A-Z]{1}|END)(\s|$))
Naming/HeredocDelimiterNaming:
Exclude:
- 'app/models/content_configuration.rb'
# Offense count: 5
# This cop supports unsafe autocorrection (--autocorrect-all).
# Configuration parameters: EnforcedStyleForLeadingUnderscores.

View File

@@ -74,13 +74,13 @@ class ContentConfiguration < Spree::Preferences::Configuration
preference :footer_pinterest_url, :string, default: ""
preference :footer_email, :string, default: "hello@openfoodnetwork.org"
preference :community_forum_url, :string, default: "http://community.openfoodnetwork.org"
preference :footer_links_md, :text, default: <<~EOS
preference :footer_links_md, :text, default: <<~FOOTERSTR
[Newsletter sign-up](/)
[News](/)
[Calendar](/)
EOS
FOOTERSTR
preference :footer_about_url, :string, default: "http://www.openfoodnetwork.org/ofn-local/open-food-network-australia/"