-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
79 lines (60 loc) · 1.29 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
require:
- rubocop-rails
- rubocop-rspec
- rubocop-performance
AllCops:
NewCops: enable
Metrics/BlockLength:
Exclude:
- 'spec/**/*_spec.rb'
- 'db/seeds.rb'
Metrics/MethodLength:
Exclude:
- '*'
- 'db/migrate/*.rb'
Metrics/AbcSize:
Max: 35
Rails/FilePath:
Exclude:
- 'spec/rails_helper.rb'
RSpec/NestedGroups:
Max: 4
RSpec/MultipleMemoizedHelpers:
Max: 8
Style/Documentation:
Enabled: false
Metrics/CyclomaticComplexity:
Max: 8
Naming/FileName:
Exclude:
- 'config/initializers/rswag-ui.rb'
RSpec/LetSetup:
Exclude:
- 'spec/requests/tags_spec.rb'
Rails/BulkChangeTable:
Exclude:
- 'db/migrate/20220909204735_add_profile_fields_to_users.rb'
Style/GuardClause:
Exclude:
- 'db/migrate/20220929000432_change_collation_for_tag_names.acts_as_taggable_on_engine.rb'
Style/IfUnlessModifier:
Exclude:
- 'db/migrate/20220929000433_add_missing_indexes_on_taggings.acts_as_taggable_on_engine.rb'
Layout/LineLength:
Max: 154
Rails/ApplicationRecord:
Exclude:
- 'app/models/user.rb'
RSpec/ExampleLength:
Max: 50
Exclude:
- "spec/**/*"
Metrics/BlockLength:
CountComments: false
Max: 200
Exclude:
- 'spec/**/*_spec.rb'
- 'spec/factories/*.rb'
- "spec/**/shared*setup.rb"
- "**/*.rake"
- 'config/routes.rb'