Gemfile
Line is too long. [112/100] Open
Open
gem 'activerecord-jsonb-associations', github: 'rokumatsumoto/activerecord-jsonb-associations', branch: 'master'
- Exclude checks
Line is too long. [117/100] Open
Open
gem 'bootsnap', '~> 1.4', '>= 1.4.5', require: false # Reduces boot times through caching; required in config/boot.rb
- Exclude checks
Line is too long. [203/100] Open
Open
gem 'hamlit-rails', '~> 0.2.0', require: false # Provides hamlit generators for Rails 4. It also enables hamlit as the templating engine and "hamlit:erb2haml" rake task that converts erb files to haml.
- Exclude checks
Line is too long. [120/100] Open
Open
gem 'omniauth-rails_csrf_protection', '~> 0.1.2' # remove once https://github.com/omniauth/omniauth/pull/809 is resolved
- Exclude checks
Line is too long. [135/100] Open
Open
gem 'webdrivers', '~> 4.1', '>= 4.1.2', require: false # Easy installation and use of selenium webdriver browsers to run system tests
- Exclude checks
Gems should be sorted in an alphabetical order within their section of the Gemfile. Gem oj
should appear before omniauth-rails_csrf_protection
. Open
Open
gem 'oj', '~> 3.9', '>= 3.9.2' # Speed up JSON processes
- Read upRead up
- Exclude checks
Gems should be alphabetically sorted within groups.
Example:
# bad
gem 'rubocop'
gem 'rspec'
# good
gem 'rspec'
gem 'rubocop'
# good
gem 'rubocop'
gem 'rspec'
# good only if TreatCommentsAsGroupSeparators is true
# For code quality
gem 'rubocop'
# For tests
gem 'rspec'
Line is too long. [108/100] Open
Open
gem 'pry-rails', '~> 0.3.9', require: false # call `rails r pry-rails` instead `rails console r pry-rails`
- Exclude checks
Line is too long. [128/100] Open
Open
gem 'web-console', '>= 3.3.0' # Access an interactive console on exception pages or by calling 'console' anywhere in the code.
- Exclude checks
Line is too long. [143/100] Open
Open
gem 'spring' # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
- Exclude checks
Avoid the use of double negation (!!
). Open
Open
gem 'bullet', '~> 5.9', require: !!ENV['ENABLE_BULLET'] # n+1 Queries
- Read upRead up
- Exclude checks
This cop checks for uses of double negation (!!) to convert something to a boolean value. As this is both cryptic and usually redundant, it should be avoided.
Example:
# bad
!!something
# good
!something.nil?
Please, note that when something is a boolean value !!something and !something.nil? are not the same thing. As you're unlikely to write code that can accept values of any type this is rarely a problem in practice.