diff --git a/.rubocop.yml b/.rubocop.yml index 665c815b..322c0309 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -29,21 +29,11 @@ Layout/LineLength: - db/**/* Layout/SpaceBeforeFirstArg: - Exclude: - - app/views/api/**/**/* + AllowForAlignment: true Lint/AmbiguousBlockAssociation: AllowedMethods: change -Lint/BinaryOperatorWithIdenticalOperands: - Enabled: false - -Lint/DeprecatedOpenSSLConstant: - Enabled: false - -Lint/RaiseException: - Enabled: false - Metrics/AbcSize: Max: 15 Exclude: @@ -73,9 +63,6 @@ Metrics/ModuleLength: Metrics/PerceivedComplexity: Max: 12 -Rails/FilePath: - Enabled: false - Rails/SaveBang: Enabled: true @@ -88,11 +75,9 @@ RSpec/MultipleExpectations: RSpec/NamedSubject: Enabled: false -Style/ArrayCoercion: - Enabled: true - Style/BlockDelimiters: - EnforcedStyle: braces_for_chaining + Exclude: + - spec/**/* Style/Documentation: Enabled: false @@ -103,35 +88,14 @@ Style/ExpandPathArguments: Style/GlobalStdStream: Enabled: false -Style/HashEachMethods: - Enabled: false - Style/HashLikeCase: MinBranchesCount: 4 -Style/HashTransformKeys: - Enabled: false - -Style/HashTransformValues: - Enabled: false - Style/ModuleFunction: Enabled: false -Style/RedundantFetchBlock: - Enabled: false - -Style/RedundantFileExtensionInRequire: - Enabled: false - -Style/RedundantRegexpCharacterClass: - Enabled: false - Style/ReturnNil: Enabled: true -Style/SlicingWithRange: - Enabled: false - Style/StringConcatenation: Enabled: false diff --git a/config/puma.rb b/config/puma.rb index 7e40db22..9534e8d8 100644 --- a/config/puma.rb +++ b/config/puma.rb @@ -6,7 +6,7 @@ # 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 @@ -17,14 +17,14 @@ # 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. # -environment ENV.fetch('RAILS_ENV') { 'development' } +environment ENV.fetch('RAILS_ENV', 'development') # Specifies the `pidfile` that Puma will use. -pidfile ENV.fetch('PIDFILE') { 'tmp/pids/server.pid' } +pidfile ENV.fetch('PIDFILE', 'tmp/pids/server.pid') # Specifies the number of `workers` to boot in clustered mode. # Workers are forked web server processes. If using threads and workers together