-
Notifications
You must be signed in to change notification settings - Fork 16
/
.rubocop.yml
34 lines (27 loc) · 1.08 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
# Several files use longer than 80char line length.
Metrics/LineLength:
Enabled: false
# Remove offenses related to not having file-level comments.
Documentation:
Enabled: false
# This is purely aesthetic and in many cases makes code more difficult to follow.
Style/GuardClause:
Enabled: false
# This should be returned to default eventually
Metrics/MethodLength:
Enabled: false
Metrics/BlockLength:
Enabled: false
Metrics/ClassLength:
Enabled: false
# An if statement (or unless or ?:) increases the complexity by one. An else branch does
# not, since it doesn't add a decision point. The && operator (or keyword and) can be
# converted to a nested if statement, and ||/or is shorthand for a sequence of ifs, so
# they also add one. Loops can be said to have an exit condition, so they add one.
Metrics/CyclomaticComplexity:
Enabled: false
# This cop checks that the ABC size of methods is not higher than the
# configured maximum. The ABC size is based on assignments, branches
# (method calls), and conditions. See http://c2.com/cgi/wiki?AbcMetric
Metrics/AbcSize:
Enabled: false