-
Notifications
You must be signed in to change notification settings - Fork 31
/
.rubocop.yml
85 lines (80 loc) · 1.79 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
85
# inherits from https://github.com/bbatsov/rubocop/blob/master/config/default.yml
AllCops:
Exclude:
- spec/support/schema.rb
- bin/**/*
- tmp/**/*
- vendor/**/*
- .bundle/**/*
Rails:
Enabled: true
DisplayCopNames: true
DisplayStyleGuide: true
Documentation:
Enabled: false
Metrics/AbcSize:
Enabled: true
Max: 40
Metrics/BlockLength:
Exclude:
- spec/**/*
Metrics/CyclomaticComplexity:
Enabled: true
Max: 12
Metrics/LineLength:
Enabled: true
Max: 140
Metrics/PerceivedComplexity:
Enabled: true
Max: 12
Metrics/ClassLength:
Enabled: true
CountComments: false
Max: 200
Metrics/ModuleLength:
CountComments: false
Max: 200
Enabled: true
Metrics/MethodLength:
StyleGuide: https://github.com/bbatsov/ruby-style-guide#short-methods
Enabled: true
CountComments: false
Max: 50
Metrics/ParameterLists:
StyleGuide: https://github.com/bbatsov/ruby-style-guide#too-many-params
Enabled: true
Max: 5
CountKeywordArgs: true
Lint/AssignmentInCondition:
StyleGuide: https://github.com/bbatsov/ruby-style-guide#safe-assignment-in-condition
Enabled: true
AllowSafeAssignment: true
Lint/UnusedBlockArgument:
Enabled: false
Style/AccessorMethodName:
Enabled: true
Style/AlignHash:
EnforcedColonStyle: key
EnforcedHashRocketStyle: key
Style/AlignParameters:
EnforcedStyle: with_fixed_indentation
Style/Alias:
StyleGuide: https://github.com/bbatsov/ruby-style-guide#alias-method
EnforcedStyle: prefer_alias_method
Style/BracesAroundHashParameters:
Exclude:
- spec/**/*
Style/CaseIndentation:
EnforcedStyle: case
SupportedStyles:
- case
- end
IndentOneStep: false
Style/IndentHash:
EnforcedStyle: consistent
Style/RaiseArgs:
Enabled: false
Style/SignalException:
Enabled: false
Style/SpecialGlobalVars:
Enabled: false