Project

General

Profile

Patch #31509 » 0001-Add-Rubocop-and-enable-the-following-cops.patch

Marius BĂLTEANU, 2019-06-06 10:16

View differences:

.rubocop.yml
AllCops:
TargetRubyVersion: 2.3
TargetRailsVersion: 5.2
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop
# to ignore them, so only the ones explicitly set in this file are enabled.
DisabledByDefault: true
Exclude:
- '**/vendor/**/*'
- '**/tmp/**/*'
- '**/bin/**/*'
- '**/plugins/**/*'
- '**/extra/**/*'
- '**/lib/generators/**/templates/*'
- '**/lib/tasks/**/*'
- '**/files/**/*'
Rails:
Enabled: true
# No trailing whitespace.
Layout/TrailingWhitespace:
Enabled: true
Style/FrozenStringLiteralComment:
Enabled: true
EnforcedStyle: always
Exclude:
- 'db/**/*.rb'
- 'Gemfile'
- 'Rakefile'
- 'config.ru'
Gemfile
gem 'puma', '~> 3.7'
gem "capybara", '~> 2.13'
gem "selenium-webdriver"
# Rubocop
gem 'rubocop', '~> 0.71.0'
end
local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local")
(1-1/4)