-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
60 lines (48 loc) · 994 Bytes
/
.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
require:
- rubocop-rails
- rubocop-performance
- rubocop-rspec
AllCops:
TargetRubyVersion: 3.1
DisplayCopNames: true
NewCops: enable
Include:
- '**/Rakefile'
- '**/config.ru'
- 'Gemfile'
- '**/*.rb'
Exclude:
- 'bin/**/*'
- 'config/**/*'
- 'db/schema.rb'
- 'db/migrate/20201210121539_create_active_storage_tables.active_storage.rb'
- 'node_modules/**/*'
- 'vendor/**/*'
Layout/LineLength:
Max: 100
Lint/AmbiguousBlockAssociation:
Exclude:
- "spec/**/*"
Metrics/BlockLength:
Exclude:
- 'spec/**/*'
- 'app/**/concerns/*'
- 'app/views/student_edas/student_eda.xml.builder'
Metrics/MethodLength:
Exclude:
- 'db/migrate/*'
Rails:
Enabled: true
RSpec/NestedGroups:
Max: 4
Style/Documentation:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/StringLiterals:
EnforcedStyle: double_quotes
RSpec/ExampleLength:
Exclude:
- 'spec/**/*'
RSpec/MultipleExpectations:
Max: 5