-
Notifications
You must be signed in to change notification settings - Fork 4
/
.rubocop.yml
78 lines (58 loc) · 1.3 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
require:
- rubocop-rspec
- rubocop-rails
#inherit_from: .rubocop_todo.yml
AllCops:
TargetRubyVersion: 2.4
Exclude:
- bin/**/*
- db/**/*
- vendor/**/*
- log/**/*
Rails:
Enabled: true
# I don't understand it
Style/ExpandPathArguments:
Enabled: false
# Ruby 3.0 feature related stuff, will see later
Style/FrozenStringLiteralComment:
EnforcedStyle: never
Style/BlockComments:
Exclude:
- 'spec/spec_helper.rb'
Style/BlockDelimiters:
Exclude:
- 'lib/tasks/watch.rake'
- 'lib/tasks/local_watch.rake'
Style/BracesAroundHashParameters:
Exclude:
- 'spec/models/call_result_spec.rb'
Style/ClassAndModuleChildren:
Enabled: false
# Do not force documentation at the top of classes
Documentation:
Enabled: false
# Buggy... empty lines are not accepted sometimes...
Layout/EmptyLinesAroundArguments:
Exclude:
- 'app/models/endpoint.rb'
Layout/MultilineOperationIndentation:
Exclude:
- 'config/deploy.rb'
Metrics/AbcSize:
Max: 25
Metrics/LineLength:
Enabled: false
Metrics/BlockLength:
Enabled: false
RSpec/MultipleExpectations:
Max: 5
RSpec/AnyInstance:
Enabled: false
# We don't use spies
RSpec/MessageSpies:
EnforcedStyle: receive
RSpec/DescribeClass:
Exclude:
- 'spec/tasks/watch_spec.rb'
- 'spec/tasks/refill_database_spec.rb'