Patch #31509 » 0001-Add-Rubocop-and-enable-the-following-cops.patch
| .rubocop.yml | ||
|---|---|---|
| 1 |
AllCops: |
|
| 2 |
TargetRubyVersion: 2.3 |
|
| 3 |
TargetRailsVersion: 5.2 |
|
| 4 |
# RuboCop has a bunch of cops enabled by default. This setting tells RuboCop |
|
| 5 |
# to ignore them, so only the ones explicitly set in this file are enabled. |
|
| 6 |
DisabledByDefault: true |
|
| 7 |
Exclude: |
|
| 8 |
- '**/vendor/**/*' |
|
| 9 |
- '**/tmp/**/*' |
|
| 10 |
- '**/bin/**/*' |
|
| 11 |
- '**/plugins/**/*' |
|
| 12 |
- '**/extra/**/*' |
|
| 13 |
- '**/lib/generators/**/templates/*' |
|
| 14 |
- '**/lib/tasks/**/*' |
|
| 15 |
- '**/files/**/*' |
|
| 16 | ||
| 17 |
Rails: |
|
| 18 |
Enabled: true |
|
| 19 | ||
| 20 |
# No trailing whitespace. |
|
| 21 |
Layout/TrailingWhitespace: |
|
| 22 |
Enabled: true |
|
| 23 | ||
| 24 |
Style/FrozenStringLiteralComment: |
|
| 25 |
Enabled: true |
|
| 26 |
EnforcedStyle: always |
|
| 27 |
Exclude: |
|
| 28 |
- 'db/**/*.rb' |
|
| 29 |
- 'Gemfile' |
|
| 30 |
- 'Rakefile' |
|
| 31 |
- 'config.ru' |
|
| Gemfile | ||
|---|---|---|
| 84 | 84 |
gem 'puma', '~> 3.7' |
| 85 | 85 |
gem "capybara", '~> 2.13' |
| 86 | 86 |
gem "selenium-webdriver" |
| 87 |
# Rubocop |
|
| 88 |
gem 'rubocop', '~> 0.71.0' |
|
| 87 | 89 |
end |
| 88 | 90 | |
| 89 | 91 |
local_gemfile = File.join(File.dirname(__FILE__), "Gemfile.local") |