This repository has been archived by the owner on May 29, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
/
.rubocop.yml
84 lines (68 loc) · 1.57 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
inherit_from: .rubocop_todo.yml
AllCops:
Exclude:
- 'db/schema.rb'
- '**/vendor/cache/**/*'
- '**/vendor/bundle/**/*'
- 'engines/*/bin/*'
- 'engines/*/spec/dummy/**/*'
TargetRubyVersion: 2.1
Style/Documentation:
Enabled: false
Style/DoubleNegation:
Enabled: false
Style/EachWithObject:
Enabled: false
Style/EmptyLinesAroundClassBody:
Enabled: false
Style/EmptyLinesAroundModuleBody:
Enabled: false
Style/BracesAroundHashParameters:
EnforcedStyle: context_dependent
Style/SignalException:
Enabled: false
Style/NumericLiterals:
Enabled: false
Rails/ActionFilter:
Enabled: false
Metrics/LineLength:
Max: 100
Metrics/ModuleLength:
Exclude:
- 'spec/**/*_spec.rb'
- 'engines/*/spec/**/*_spec.rb'
Metrics/BlockLength:
Exclude:
- 'spec/**/*_spec.rb'
- 'engines/*/spec/**/*_spec.rb'
- 'engines/*/spec/factories.rb'
# This means we want:
#
# attr_reader :attr1,
# :attr2,
# :attr3,
#
# over
#
# attr_reader :attr1,
# :attr2,
# :attr3
Style/AlignParameters:
EnforcedStyle: 'with_fixed_indentation'
# This means we want:
#
# @relation = ::Chat::Message
# .joins(channel: :channel_members)
# .where(id: ids)
# .where('`chat_channel_members`.`user_id` = ?', user.id)
#
# Over:
#
# @relation = ::Chat::Message
# .joins(channel: :channel_members)
# .where(id: ids)
# .where('`chat_channel_members`.`user_id` = ?', user.id)
Style/MultilineMethodCallIndentation:
EnforcedStyle: 'indented'
Style/SingleLineMethods:
AllowIfMethodIsEmpty: true