-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy path.rubocop.yml
82 lines (64 loc) · 1.71 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
# Omakase Ruby styling for Rails
inherit_gem: { rubocop-rails-omakase: rubocop.yml }
# Overwrite or add rules to create your own house style
#
# # Use `[a, [b, c]]` not `[ a, [ b, c ] ]`
# Layout/SpaceInsideArrayLiteralBrackets:
# Enabled: false
AllCops:
DisplayCopNames: true
NewCops: enable
Exclude:
- db/**/*
- script/**/*
- bin/**/*
- tmp/**/*
- config/initializers/**/*
- config/environments/**/*
- config/application.rb
- test/**/*
- spec/**/*
- lib/tasks/**/*
- node_modules/**/*
# # Commonly used screens these days easily fit more than 80 characters.
# Layout/LineLength:
# Max: 120
# # Relax the Assignment Branch Condition rule a bit
# Metrics/AbcSize:
# Max: 60
# # Too short methods lead to extraction of single-use methods, which can make
# # the code easier to read (by naming things), but can also clutter the class
# Metrics/MethodLength:
# Max: 40
# # The guiding principle of classes is SRP, SRP can't be accurately measured by LoC
# Metrics/ClassLength:
# Max: 1500
# Style/Documentation:
# Include:
# - app/models/**/*
# - lib/**/*
# # I don't see a benefit to forcing empty methods onto one line
# Style/EmptyMethod:
# Exclude:
# - app/**/*
# # Pending Cops:
# Layout/EmptyLinesAroundAttributeAccessor:
# Enabled: true
# Layout/SpaceAroundMethodCallOperator:
# Enabled: true
# Lint/RaiseException:
# Enabled: true
# Lint/StructNewOverride:
# Enabled: true
# Style/ExponentialNotation:
# Enabled: false
# Style/HashEachMethods:
# Enabled: true
# Style/HashTransformKeys:
# Enabled: true
# Style/HashTransformValues:
# Enabled: true
# Style/SlicingWithRange:
# Enabled: true
# Style/StringConcatenation:
# Enabled: false