-
-
Notifications
You must be signed in to change notification settings - Fork 517
/
.rubocop.yml
121 lines (93 loc) · 2.3 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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
# For more information about this file, see
# https://github.com/rubocop-hq/rubocop/blob/master/config/default.yml
# for detailed configuration information.
require:
- rubocop-minitest
- rubocop-rake
AllCops:
NewCops: disable
Exclude:
- "bin/**/*"
- "node_modules/**/*"
- "vendor/**/*"
- "lib/**/*"
- "test/**/*"
- "exercises/practice/gilded-rose/gilded_rose.rb" # This starting code is intended to be a mess.
Bundler/OrderedGems:
Enabled: false
Layout/ArgumentAlignment:
EnforcedStyle: with_fixed_indentation
Layout/HashAlignment:
EnforcedHashRocketStyle: key
Layout/DotPosition:
EnforcedStyle: trailing
Layout/EndOfLine:
EnforcedStyle: lf
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Layout/EmptyLinesAroundAccessModifier:
EnforcedStyle: only_before
Layout/LineLength:
Max: 125
AutoCorrect: true
Exclude:
- "exercises/**/*_test.rb"
Lint/SuppressedException:
Exclude:
- "test/**/*"
# Because we use NotImplementErrors, we should
# not care about this in exercises
Lint/UnusedMethodArgument:
Exclude:
- "exercises/**/*"
Metrics/BlockLength:
Exclude:
- "test/**/*"
Metrics/ClassLength:
Exclude:
- "test/**/*"
- "exercises/**/*_test.rb"
Metrics/AbcSize:
Exclude:
- "exercises/**/*_test.rb"
- "test/tasks/*"
Metrics/MethodLength:
# We probably want to bring this down but let's start here for now
Max: 20
Exclude:
- "test/**/*"
- "exercises/**/*_test.rb"
Naming/MethodName:
Enabled: true
Exclude:
- "exercises/practice/protein-translation/protein_translation_test.rb"
Naming/PredicateName:
Enabled: true
Exclude:
- "exercises/concept/amusement-park-improvements/attendee.rb"
Style/ConditionalAssignment:
Enabled: true
Style/StringLiterals:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/Documentation:
Enabled: false
Style/DocumentationMethod:
Enabled: false
Naming/VariableNumber:
EnforcedStyle: normalcase
Exclude:
- "exercises/**/*_test.rb"
Style/LambdaCall:
EnforcedStyle: braces
Style/BlockComments:
Enabled: false
# We use Heredoc indentation in exercises
# where variable indentation is desirable
Layout/HeredocIndentation:
Enabled: true
Style/AsciiComments:
Enabled: true
Exclude:
- "exercises/concept/moviegoer/moviegoer.rb"