-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.rubocop.yml
69 lines (54 loc) · 1.15 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
require:
- rubocop-factory_bot
- rubocop-rails
- rubocop-rspec
- rubocop-rspec_rails
inherit_from:
- .rubocop_todo.yml
AllCops:
NewCops: enable
TargetRubyVersion: 3.1
Exclude:
- "spec/internal/db/schema.rb"
- 'node_modules/**/*'
- 'vendor/**/*'
Metrics/AbcSize:
Exclude:
- "db/migrate/*"
- "lib/rails/generators/**/*_generator.rb"
Metrics/BlockLength:
Exclude:
- "*.gemspec"
- "**/*_spec.rb"
- "**/*.builder"
- "config/routes.rb"
- "spec/factories/**/*.rb"
- "spec/rails_helper.rb"
Metrics/ClassLength:
Exclude:
- "db/migrate/*"
Metrics/MethodLength:
Exclude:
- "db/migrate/*"
- "lib/rails/generators/**/*_generator.rb"
Style/AsciiComments:
Enabled: false
Style/Documentation:
Enabled: false
Style/FormatStringToken:
Exclude:
- "config/routes.rb"
Style/OptionalBooleanParameter:
Exclude:
- "lib/localizable_model/instance_methods.rb"
Style/StringLiterals:
EnforcedStyle: double_quotes
Layout/LineLength:
AutoCorrect: true
Max: 80
Layout/MultilineOperationIndentation:
EnforcedStyle: aligned
Rails:
Enabled: true
Rails/ApplicationRecord:
Enabled: false