From c95cf764d2e80525e5ac7592271500b984fe3ab1 Mon Sep 17 00:00:00 2001 From: Peter Yates Date: Fri, 5 Jan 2024 14:11:42 +0000 Subject: [PATCH] Upgrade to rubocop-govuk 4.13.0 Fixes #491 --- .rubocop.yml | 1 + app/components/govuk_component/accordion_component.rb | 2 +- govuk-components.gemspec | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index ad58c20e..e21e2b98 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -9,6 +9,7 @@ AllCops: Exclude: - govuk_design_system_formbuilder.gemspec - spec/dummy/**/* + - guide/node_modules/**/* Security/Eval: Exclude: - guide/lib/helpers/formatters.rb diff --git a/app/components/govuk_component/accordion_component.rb b/app/components/govuk_component/accordion_component.rb index 9e573b96..d8f2fbdd 100644 --- a/app/components/govuk_component/accordion_component.rb +++ b/app/components/govuk_component/accordion_component.rb @@ -3,7 +3,7 @@ class GovukComponent::AccordionComponent < GovukComponent::Base GovukComponent::AccordionComponent::SectionComponent.new( classes: classes, expanded: expanded, - heading_level: heading_level, # set once at parent level, passed to all children + heading_level: heading_level, # set once at parent level, passed to all children html_attributes: html_attributes, summary_text: summary_text, heading_text: heading_text, diff --git a/govuk-components.gemspec b/govuk-components.gemspec index 39f3c0c4..50815864 100644 --- a/govuk-components.gemspec +++ b/govuk-components.gemspec @@ -30,7 +30,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency "pry-byebug" spec.add_development_dependency "rspec-html-matchers", "~> 0.9" spec.add_development_dependency "rspec-rails" - spec.add_development_dependency "rubocop-govuk", "= 4.12.0" + spec.add_development_dependency "rubocop-govuk", "= 4.13.0" spec.add_development_dependency "sassc-rails" spec.add_development_dependency("simplecov", "~> 0.20") spec.add_development_dependency "sqlite3"