-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.rubocop.yml
87 lines (71 loc) · 2.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
80
81
82
83
84
85
86
87
inherit_from: .rubocop_todo.yml
AllCops:
TargetRubyVersion: 2.2
Exclude:
- 'lib/tasks/bbgem.rake'
- 'db/schema.rb'
- 'old_cap/*'
Style/StringLiterals:
EnforcedStyle: single_quotes
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
# SupportedStyles: outdent, indent
Style/AccessModifierIndentation:
EnforcedStyle: indent
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
# SupportedStyles: special_inside_parentheses, consistent, align_brackets
Style/IndentArray:
EnforcedStyle: consistent
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
# SupportedStyles: special_inside_parentheses, consistent, align_braces
Style/IndentHash:
EnforcedStyle: consistent
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: normal, rails
Style/IndentationConsistency:
EnforcedStyle: normal
Exclude:
- 'db/migrate/*'
- 'config/initializers/normalise_blank_values.rb'
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: symmetrical, new_line, same_line
Style/MultilineArrayBraceLayout:
EnforcedStyle: symmetrical
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: symmetrical, new_line, same_line
Style/MultilineHashBraceLayout:
EnforcedStyle: symmetrical
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: always, conditionals
Style/AndOr:
Exclude:
- 'db/migrate/*'
# Offense count: 551
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, SupportedStyles.
# SupportedStyles: leading, trailing
Style/DotPosition:
EnforcedStyle: trailing
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
Style/ExtraSpacing:
AllowForAlignment: true
Exclude:
- 'db/migrate/*'
# Configuration parameters: EnforcedStyle, SupportedStyles, IndentationWidth.
# SupportedStyles: consistent, special_for_inner_method_call, special_for_inner_method_call_in_parentheses
Style/FirstParameterIndentation:
Enabled: true
# Configuration parameters: Width.
Style/IndentationWidth:
Exclude:
- 'db/migrate/*'
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles.
# SupportedStyles: space, no_space
Style/SpaceInsideHashLiteralBraces:
EnforcedStyle: space
EnforcedStyleForEmptyBraces: no_space
# Configuration parameters: AllowForAlignment.
Style/SpaceAroundOperators:
AllowForAlignment: true
# Configuration parameters: AllowIfMethodIsEmpty.
Style/SingleLineMethods:
AllowIfMethodIsEmpty: true