-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
106 lines (91 loc) · 2.21 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
106
inherit_from: .rubocop_todo.yml
require:
- rubocop-performance
- rubocop-rails
- rubocop-rspec
AllCops:
NewCops: enable
TargetRubyVersion: 2.7
Exclude:
- '**/helpers/dry_crud/**/*.rb'
- '**/helpers/actions_helper*.rb'
- '**/helpers/form_helper*.rb'
- '**/helpers/format_helper*.rb'
- '**/helpers/i18n_helper*.rb'
- '**/helpers/table_helper*.rb'
- '**/helpers/utility_helper*.rb'
- app/controllers/dry_crud/*.rb
- app/controllers/crud_controller.rb
- bin/**
- db/schema.rb
- node_modules/**/*
- spec/support/crud_*.rb
- spec/controllers/crud_test_models_controller_spec.rb
- vendor/**/*
DisplayCopNames: true
Layout/LineLength:
Max: 90
Enabled: true
AllowHeredoc: true
AllowURI: true
Exclude:
- Gemfile
- bin/**/*
- config/**/*
- db/**/*
- lib/tasks/dbdata.rake
- spec/*_helper.rb
- app/controllers/events_controller.rb
- app/controllers/reservations_controller.rb
- app/lib/breadcrumb_builder.rb
- lib/action_view/helpers/sanitize_helper.rb
Lint/UnusedMethodArgument:
Exclude:
- app/inputs/*array_input.rb
Metrics/AbcSize:
Enabled: true
Exclude:
- db/migrate/*.rb
- app/decorators/*_decorator.rb
- app/controllers/events_controller.rb
- app/controllers/reservations_controller.rb
- app/inputs/array_input.rb
- app/models/event.rb
- app/lib/breadcrumb_builder.rb
Metrics/BlockLength:
Enabled: true
Exclude:
- app/views/api/v1/events/list.json.jbuilder
- lib/tasks/*.rake
- spec/**/*_spec.rb
Metrics/ClassLength:
Enabled: true
Exclude:
- app/models/reservation.rb
- app/controllers/reservations_controller.rb
Metrics/MethodLength:
Max: 15
Enabled: true
Exclude:
- app/schemas/*
- db/**/*
- spec/*_helper.rb
- app/controllers/events_controller.rb
- app/controllers/reservations_controller.rb
- app/decorators/*.rb
Metrics/ModuleLength:
Exclude:
- app/schemas/reservation_schema.rb
Rails:
Enabled: true
Rails/ApplicationController:
Enabled: false
Rails/Output:
Exclude:
- config/unicorn.rb
Style/ClassAndModuleChildren:
Enabled: false
Style/Documentation:
Enabled: false
Style/ModuleFunction:
Enabled: false