-
Notifications
You must be signed in to change notification settings - Fork 3
/
.rubocop.yml
39 lines (35 loc) · 797 Bytes
/
.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
AllCops:
Include:
- "Gemfile"
- "Guardfile"
- "Rakefile"
- "*.gemspec"
Exclude:
- "tmp/**/*"
- "vendor/**/*"
TargetRubyVersion: 2.5
Metrics/AbcSize:
Description: A calculated magnitude based on number of assignments, branches, and
conditions.
Max: 15
Exclude:
- "Rakefile"
- "**/*.rake"
- "spec/**/*_spec.rb"
Metrics/BlockLength:
Description: Avoid long blocks with many lines.
Exclude:
- "Rakefile"
- "**/*.rake"
- "spec/**/*_spec.rb"
Metrics/LineLength:
Max: 100
Metrics/MethodLength:
Description: Avoid methods longer than 10 lines of code.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#short-methods
CountComments: false
Max: 10
Exclude:
- "Rakefile"
- "**/*.rake"
- "spec/**/*_spec.rb"