From: Tom Hughes Date: Wed, 24 Jun 2020 17:49:12 +0000 (+0100) Subject: Fix new rubocopy warnings X-Git-Tag: live~2233 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/bcf6eafb0d6f42dbbf3f9f97a79f5eacb0c960a7?ds=sidebyside Fix new rubocopy warnings --- diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 6a1338851..366058e7d 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -69,7 +69,7 @@ Metrics/ClassLength: # Offense count: 74 Metrics/CyclomaticComplexity: - Max: 22 + Max: 28 # Offense count: 722 # Configuration parameters: CountComments, ExcludedMethods. diff --git a/config/puma.rb b/config/puma.rb index 5ed443774..283e163b1 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -4,13 +4,13 @@ # the maximum value specified for Puma. Default is set to 5 threads for minimum # and maximum; this matches the default thread size of Active Record. # -max_threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 } +max_threads_count = ENV.fetch("RAILS_MAX_THREADS", 5) min_threads_count = ENV.fetch("RAILS_MIN_THREADS") { max_threads_count } threads min_threads_count, max_threads_count # Specifies the `port` that Puma will listen on to receive requests; default is 3000. # -port ENV.fetch("PORT") { 3000 } +port ENV.fetch("PORT", 3000) # Specifies the `environment` that Puma will run in. #