/
.rubocop.yml
81 lines (81 loc) · 2.44 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
AllCops:
TargetRubyVersion: 2.5
Include:
- "**/*.rake"
- "**/Gemfile"
- "**/Rakefile"
- "**/Capfile"
- "**/Berksfile"
- "**/Cheffile"
Exclude:
- "vendor/**/*"
- "db/**/*"
- "tmp/**/*"
- "true/**/*"
Metrics/ClassLength:
Description: Avoid classes longer than 100 lines of code.
Enabled: false
CountComments: false
Max: 100
Metrics/LineLength:
Description: Limit lines to 100 characters.
Enabled: false
Max: 100
Metrics/BlockLength:
Exclude:
- 'spec/**/*.rb'
Metrics/MethodLength:
Description: Avoid methods longer than 10 lines of code.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#short-methods
Enabled: false
CountComments: false
Max: 10
Metrics/AbcSize:
Description: A calculated magnitude based on number of assignments, branches, and conditions.
Enabled: false
Max: 15
Metrics/CyclomaticComplexity:
Description: A complexity metric that is strongly correlated to the number of test cases needed to validate a method.
Enabled: false
Max: 6
Lint/Debugger:
Description: Warn in debugger entries
Enabled: false
Style/SymbolArray:
Description: Use %i or %I for arrays of symbols.
Enabled: false
Style/RegexpLiteral:
Description: Enforces using / or %r around regular expressions.
EnforcedStyle: percent_r
Style/AsciiComments:
# Disabling this so we can use non-breaking spaces (' ') in documentation comments, preventing browsers from collapsing multiple spaces in code blocks.
Description: This cop checks for non-ascii (non-English) characters in comments.
Enabled: false
Style/NumericLiterals:
Description: This cop checks for big numeric literals without _ between groups of digits in them.
Enabled: false
Style/Documentation:
Description: Document classes and non-namespace modules.
Enabled: false
Style/ClassAndModuleChildren:
Description: Use nested modules/class definitions instead of compact style.
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/EmptyMethod:
Enabled: false
Style/StderrPuts:
Enabled: true
Exclude:
- 'bin/**/*'
Style/BlockDelimiters:
Description: Check for uses of braces or do/end around single line or multi-line blocks.
Enabled: true
Exclude:
- 'spec/**/*.rb'
Style/RescueModifier:
Description: This cop checks for uses of rescue in its modifier form.
Enabled: false
Naming/UncommunicativeMethodParamName:
Description: This cop checks method parameter names for how descriptive they are.
Enabled: false