Skip to content

Commit

Permalink
Runs 👮 - excluding content tag to tag rule
Browse files Browse the repository at this point in the history
  • Loading branch information
cdmo committed Jul 9, 2020
1 parent 6c4963a commit 90ba02f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 7 deletions.
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ AllCops:
- 'node_modules/**/*'
- 'tmp/**/*'
- 'vendor/**/*'
NewCops: enable

Metrics/BlockLength:
Exclude:
Expand Down
22 changes: 18 additions & 4 deletions .rubocop_todo.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,39 @@
# This configuration was generated by
# `rubocop --auto-gen-config`
# on 2020-06-16 23:44:45 -0400 using RuboCop version 0.83.0.
# on 2020-07-09 03:11:59 UTC using RuboCop version 0.87.1.
# The point is for the user to remove these configuration records
# one by one as the offenses are removed from the code base.
# Note that changes in the inspected code, or installation of new
# versions of RuboCop, may require this file to be generated again.

# Offense count: 1
# Configuration parameters: CountComments, ExcludedMethods.
# Cop supports --auto-correct.
# Configuration parameters: TreatCommentsAsGroupSeparators, ConsiderPunctuation, Include.
# Include: **/*.gemfile, **/Gemfile, **/gems.rb
Bundler/OrderedGems:
Exclude:
- 'Gemfile'

# Offense count: 1
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods.
# ExcludedMethods: refine
Metrics/BlockLength:
Max: 32

# Offense count: 1
# Configuration parameters: CountComments.
# Configuration parameters: CountComments, CountAsOne.
Metrics/ClassLength:
Max: 263
Max: 261

# Offense count: 3
# Cop supports --auto-correct.
RSpec/ExpectActual:
Exclude:
- 'spec/routing/**/*'
- 'spec/controllers/catalog_controller_spec.rb'

# Offense count: 11
# Cop supports --auto-correct.
Rails/ContentTag:
Exclude:
- 'app/helpers/catalog_helper.rb'
6 changes: 3 additions & 3 deletions config/puma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
# 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.
#
threads_count = ENV.fetch('RAILS_MAX_THREADS') { 5 }
threads_count = fetch 'RAILS_MAX_THREADS', 5
threads threads_count, 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.
#
environment ENV.fetch('RAILS_ENV') { 'development' }
environment ENV.fetch 'RAILS_ENV', 'development'

# Specifies the number of `workers` to boot in clustered mode.
# Workers are forked webserver processes. If using threads and workers together
Expand Down

0 comments on commit 90ba02f

Please sign in to comment.