-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
.rubocop.yml
68 lines (54 loc) · 1.35 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
inherit_from: .rubocop_todo.yml
require:
# - rubocop-performance
- rubocop-rails
- rubocop-rspec
AllCops:
NewCops: enable
Exclude:
- db/**/**
- bin/**
- Guardfile
- vendor/**/*
- tmp/**/**
- client/**/**
SuggestExtensions: false
Metrics/BlockLength:
CountAsOne: ['array', 'heredoc', 'hash']
Metrics/ClassLength:
CountAsOne: ['array', 'heredoc', 'hash']
Exclude:
- app/models/service_day.rb
Metrics/MethodLength:
CountAsOne: ['array', 'heredoc', 'hash']
Exclude:
- app/controllers/api/v1/users_controller.rb
- app/controllers/api/v1/attendance_batches_controller.rb
- app/controllers/registrations_controller.rb
Metrics/ModuleLength:
CountAsOne: ['array', 'heredoc', 'hash']
Layout/LineLength:
Exclude:
- config/routes.rb
- spec/services/nebraska/daily/revenue_calculator_spec.rb
Layout/MultilineArrayLineBreaks:
Enabled: true
Layout/MultilineHashKeyLineBreaks:
Enabled: true
Layout/MultilineMethodArgumentLineBreaks:
Enabled: true
# This doesn't get called in Rspec, only in minitest
Rails/RedundantTravelBack:
Enabled: false
# Our earned revenue test needs a lot of helpers
RSpec/MultipleMemoizedHelpers:
Enabled: false
# Turn off autocorrect on focused specs
RSpec/Focus:
AutoCorrect: false
Rails/UnknownEnv:
Environments:
- production
- development
- test
- profile