From b9dcd95c000c03237807ff3c7bf09ca48765a0fa Mon Sep 17 00:00:00 2001 From: Daniel O'Connor Date: Thu, 23 Apr 2026 12:27:06 +0000 Subject: [PATCH] Rubocop: Layout/TrailingWhitespace --- .rubocop_todo.yml | 8 -------- Gemfile | 2 +- app/helpers/crops_helper.rb | 2 +- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index f26330c28..696eeaba9 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -141,14 +141,6 @@ Layout/LineLength: - 'db/seeds.rb' - 'spec/requests/api/v1/activities_request_spec.rb' -# Offense count: 2 -# This cop supports safe autocorrection (--autocorrect). -# Configuration parameters: AllowInHeredoc. -Layout/TrailingWhitespace: - Exclude: - - 'Gemfile' - - 'app/helpers/crops_helper.rb' - # Offense count: 1 # This cop supports safe autocorrection (--autocorrect). Lint/AmbiguousOperatorPrecedence: diff --git a/Gemfile b/Gemfile index 42a4ad2be..bd85d4a44 100644 --- a/Gemfile +++ b/Gemfile @@ -139,7 +139,7 @@ gem "msgpack" # Pinned due to RAILS_ENV=production bundle exec rake assets:precompile failing with ArgumentError: wrong number of arguments (given 1, expected 0) (ArgumentError) # /tmp/build_8301a541/vendor/bundle/ruby/3.3.0/gems/connection_pool-3.0.2/lib/connection_pool.rb:48:in `initialize' # /tmp/build_8301a541/vendor/bundle/ruby/3.3.0/gems/activesupport-7.2.3/lib/active_support/cache/mem_cache_store.rb:63:in `new' -gem "connection_pool", "< 3" +gem "connection_pool", "< 3" group :production do gem 'bonsai-elasticsearch-rails' # Integration with Bonsa-Elasticsearch on heroku diff --git a/app/helpers/crops_helper.rb b/app/helpers/crops_helper.rb index 85cdc11fd..a313408ce 100644 --- a/app/helpers/crops_helper.rb +++ b/app/helpers/crops_helper.rb @@ -62,7 +62,7 @@ module CropsHelper '@type': 'Person', name: post.author.login_name }, - 'datePublished': post.created_at + 'datePublished': post.created_at } end