-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
53 lines (47 loc) · 1.51 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
AllCops:
Exclude:
- 'db/schema.rb'
#################### Metrics ###############################
Metrics/BlockLength:
Description: 'Avoid long blocks with many lines.'
Enabled: true
CountComments: false # count full line comments?
Max: 25
ExcludedMethods:
# By default, exclude the `#refine` method, as it tends to have larger
# associated blocks.
- refine
Exclude:
- '**/*.gemspec'
- 'spec/**/*'
- 'test/**/*'
Metrics/LineLength:
Description: 'Limit lines to 120 characters.'
Enabled: true
AutoCorrect: false
Max: 120
# To make it possible to copy or click on URIs in the code, we allow lines
# containing a URI to be longer than Max.
AllowHeredoc: true
AllowURI: true
URISchemes:
- http
- https
# The IgnoreCopDirectives option causes the LineLength rule to ignore cop
# directives like '# rubocop: enable ...' when calculating a line's length.
IgnoreCopDirectives: false
# The IgnoredPatterns option is a list of !ruby/regexp and/or string
# elements. Strings will be converted to Regexp objects. A line that matches
# any regular expression listed in this option will be ignored by LineLength.
IgnoredPatterns: []
#################### Style ###############################
Style/Documentation:
Description: 'Document classes and non-namespace modules.'
Enabled: true
Exclude:
- 'app/mailers/application_mailer.rb'
- 'config/application.rb'
- 'db/migrate/*'
- 'app/models/application_record.rb'
- 'spec/**/*'
- 'test/**/*'