This repository has been archived by the owner on Oct 9, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
.rubocop.yml
79 lines (55 loc) · 1.54 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
AllCops:
RunRailsCops: true # automatically run rails cops
# Include:
# - app/views/**/*.rabl
Style/LineLength:
Max: 120
Style/MethodLength:
Description: 'Avoid methods longer than 30 lines of code.'
Max: 30
Rails/ActionFilter:
Enabled: false # Rails 4.0 check
Rails/ScopeArgs:
Enabled: false # don't force usage of lambdas for scopes
Style/AlignParameters:
EnforcedStyle: with_fixed_indentation
Style/Documentation:
Enabled: false # don't require documentation
Style/DotPosition:
EnforcedStyle: trailing
Style/EachWithObject:
Enabled: false # people can use inject
Style/Encoding:
Enabled: false # don't require utf-8 encoding on every file
Style/FileName:
Exclude: ['script/**'] # scripts are hyphened case
Style/FormatString:
Enabled: false # we use % for i18n
Style/GuardClause:
Enabled: false # don't enforce this
Style/HashSyntax:
EnforcedStyle: hash_rockets
Style/IfUnlessModifier:
Enabled: false
Style/Lambda:
Enabled: false # don't require -> for single line lambdas
Style/MethodCalledOnDoEndBlock:
Enabled: true
Style/Next:
Enabled: false # don't enforce next in loops over if/unless
Style/RescueModifier:
Enabled: false
Style/SingleLineBlockParams:
Enabled: false
Style/SpaceInsideHashLiteralBraces:
EnforcedStyle: space
# i guess this comes from a newer version of rubocop
#
# Style/SymbolProc:
# Enabled: false # don't force usage of symbol procs
Style/WordArray:
Enabled: false # don't force usage of %w()
Style/ClassLength:
Enabled: false
Style/CyclomaticComplexity:
Max: 25