-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
105 lines (87 loc) · 2.71 KB
/
.rubocop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
inherit_from: .rubocop_todo.yml
require:
- rubocop-rspec
- rubocop-rails
Rails:
Enabled: true
AllCops:
NewCops: enable
TargetRubyVersion: 2.6.6
Exclude:
- bin/bundle
- bin/rails
- bin/rake
- bin/setup
- bin/spring
- bin/webpack
- bin/webpack-dev-server
- bin/yarn
- config/boot.rb
- config/spring.rb
- config/puma.rb
- config/environment.rb
- config/environments/development.rb
- config/environments/production.rb
- config/environments/test.rb
- config/initializers/wrap_parameters.rb
- 'db/schema.rb'
- 'vendor/**/*'
- 'node_modules/**/*'
- config.ru
- Gemfile
- Rakefile
# https://rubocop.readthedocs.io/en/latest/cops_style/#styleasciicomments
Style/AsciiComments:
Enabled: false
# https://rubocop.readthedocs.io/en/latest/cops_style/#stylehasheachmethods
Style/HashEachMethods:
Enabled: true
# https://rubocop.readthedocs.io/en/latest/cops_style/#stylehashtransformkeys
Style/HashTransformKeys:
Enabled: true
# https://rubocop.readthedocs.io/en/latest/cops_style/#stylehashtransformvalues
Style/HashTransformValues:
Enabled: true
# https://rubocop.readthedocs.io/en/latest/cops_style/#styleclassandmodulechildren
Style/ClassAndModuleChildren:
Exclude:
- 'test/channels/application_cable/connection_test.rb'
- 'test/test_helper.rb'
# https://rubocop.readthedocs.io/en/latest/cops_style/#styledocumentation
Style/Documentation:
Enabled: false
# https://rubocop.readthedocs.io/en/latest/cops_style/#stylestringliterals
Style/StringLiterals:
Exclude:
- 'test/application_system_test_case.rb'
- 'test/channels/application_cable/connection_test.rb'
- spec/rails_helper.rb
# https://rubocop.readthedocs.io/en/latest/cops_layout/#layoutlinelength
Layout/LineLength:
Max: 120
# https://rubocop.readthedocs.io/en/latest/cops_style/#stylefrozenstringliteralcomment
Style/FrozenStringLiteralComment:
Exclude:
- config/initializers/assets.rb
- config/initializers/**/*
# https://rubocop.readthedocs.io/en/latest/cops_style/#styleblockcomments
Style/BlockComments:
Exclude:
- spec/spec_helper.rb
# https://rubocop.readthedocs.io/en/latest/cops_style/#stylesymbolarray
# Use EnforcedStyle: brackets
Style/SymbolArray:
Enabled: false
# https://rubocop.readthedocs.io/en/latest/cops_metrics/#metricsblocklength
Metrics/BlockLength:
Exclude:
- 'spec/**/*'
# https://rubocop-rspec.readthedocs.io/en/latest/cops_rspec/#rspecnestedgroups
RSpec/NestedGroups:
Max: 5
# https://rubocop-rspec.readthedocs.io/en/latest/cops_rspec/#rspecmultipleexpectations
RSpec/MultipleExpectations:
Max: 4
# https://rubocop-rspec.readthedocs.io/en/latest/cops_rspec/#rspecinstancevariable
RSpec/InstanceVariable:
Enabled: false