-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.rubocop.yml
108 lines (95 loc) · 2.67 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
AllCops:
NewCops: enable
Exclude:
- 'node_modules/**/*'
- 'vendor/**/*'
- 'bin/*'
- 'log/**/*'
- 'public/**/*'
- 'tmp/**/*'
- '.git/**/*'
- 'storage/**/*'
- 'db/*schema.rb'
# Offense count: 4
# Configuration parameters: IgnoredMethods, CountRepeatedAttributes.
Metrics/AbcSize:
Max: 30
# Offense count: 3
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
# IgnoredMethods: refine
Metrics/BlockLength:
Max: 361
# Offense count: 2
# Configuration parameters: IgnoredMethods.
Metrics/CyclomaticComplexity:
Max: 9
# Offense count: 7
# Configuration parameters: CountComments, CountAsOne, ExcludedMethods, IgnoredMethods.
Metrics/MethodLength:
Max: 16
# Offense count: 2
# Configuration parameters: IgnoredMethods.
Metrics/PerceivedComplexity:
Max: 9
# Offense count: 1
# Configuration parameters: NamePrefix, ForbiddenPrefixes, AllowedMethods, MethodDefinitionMacros.
# NamePrefix: is_, has_, have_
# ForbiddenPrefixes: is_, has_, have_
# AllowedMethods: is_a?
# MethodDefinitionMacros: define_method, define_singleton_method
# Offense count: 48
Style/Documentation:
Exclude:
- 'config/**/*'
- 'app/models/**/*'
- 'app/helpers/*'
- 'app/inputs/*'
- 'app/controllers/**/*'
- 'app/decorators/**/*'
- 'test/**/*'
- 'db/reports_migrate/*'
Naming/PredicateName:
Exclude:
- 'spec/**/*'
# Offense count: 1
Lint/MissingSuper:
Exclude:
- 'config/initializers/net_http.rb'
Naming/MethodParameterName:
Exclude:
- 'app/models/currency.rb'
- 'app/models/market.rb'
Style/StringConcatenation:
Enabled: false
# Offense count: 13
# Configuration parameters: MaxUnannotatedPlaceholdersAllowed, IgnoredMethods.
# SupportedStyles: annotated, template, unannotated
Style/FormatStringToken:
Exclude:
- 'app/models/trade.rb'
# Offense count: 13
# Cop supports --auto-correct.
# Configuration parameters: AutoCorrect, AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
# URISchemes: http, https
Layout/LineLength:
Exclude:
- app/models/trade.rb
- config/initializers/simple_form_bootstrap.rb
- config/initializers/simple_form.rb
Max: 160
# Offense count: 1
Style/MissingRespondToMissing:
Exclude:
- 'app/decorators/member_decorator.rb'
# Offense count: 2
# Configuration parameters: MinBodyLength.
Style/GuardClause:
Exclude:
- 'app/models/currency.rb'
- 'app/models/order.rb'
Style/Copyright:
Notice: 'Copyright (\(c\) )?2[0-9]{3} .+'
AutocorrectNotice: "# Copyright (c) 2019 Danil Pismenny <[email protected]>\n"
Description: 'Include a copyright notice in each file before any code.'
Enabled: true
VersionAdded: '0.0.2'