-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.rubocop.yml
97 lines (83 loc) · 2.07 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
86
87
88
89
90
91
92
93
94
95
96
97
# Common configuration.
AllCops:
# Include gemspec and Rakefile
Include:
- '**/*.gemspec'
- '**/Rakefile'
- '**/*.rake'
- '**/Gemfile'
Exclude:
- 'vendor/**'
- 'spec/fixtures/**'
RunRailsCops: true
# Indent private/protected/public as deep as method definitions
AccessModifierIndentation:
EnforcedStyle: outdent
SupportedStyles:
- outdent
- indent
# Indentation of `when`.
CaseIndentation:
IndentWhenRelativeTo: end
SupportedStyles:
- case
- end
IndentOneStep: false
ClassLength:
CountComments: false # count full line comments?
Max: 200
# Align ends correctly.
EndAlignment:
# The value `keyword` means that `end` should be aligned with the matching
# keyword (if, while, etc.).
# The value `variable` means that in assignments, `end` should be aligned
# with the start of the variable on the left hand side of `=`. In all other
# situations, `end` should still be aligned with the keyword.
AlignWith: variable
SupportedStyles:
- keyword
- variable
# Built-in global variables are allowed by default.
GlobalVars:
AllowedVariables: ['$1', '$2', '$3', '$4', '$5', '$6']
LineLength:
Max: 120
MethodLength:
CountComments: false # count full line comments?
Max: 20
NumericLiterals:
MinDigits: 10
SignalException:
EnforcedStyle: only_raise
SupportedStyles:
- only_raise
- only_fail
- semantic
SpaceBeforeBlockBraces:
EnforcedStyle: no_space
SupportedStyles:
- space
- no_space
SpaceInsideBlockBraces:
EnforcedStyle: no_space
SupportedStyles:
- space
- no_space
# Valid values are: space, no_space
EnforcedStyleForEmptyBraces: no_space
# Space between { and |. Overrides EnforcedStyle if there is a conflict.
SpaceBeforeBlockParameters: false
SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
EnforcedStyleForEmptyBraces: no_space
SupportedStyles:
- space
- no_space
# Checks whether the source file has a utf-8 encoding comment or not
Encoding:
EnforcedStyle: when_needed
SupportedStyles:
- when_needed
- always
WordArray:
MinSize: 0