Skip to content

Commit 55d0060

Browse files
committed
Set YML config for rubocop
1 parent 3fd074e commit 55d0060

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

.rubocop.yml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
require: rubocop-rspec
2+
inherit_from: .rubocop_todo.yml

.rubocop_todo.yml

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# Offense count: 1
2+
# This cop supports safe autocorrection (--autocorrect).
3+
# Configuration parameters: AllowInHeredoc.
4+
Layout/TrailingWhitespace:
5+
Exclude:
6+
- 'spec/bank_spec.rb'
7+
8+
# Offense count: 1
9+
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes.
10+
Metrics/AbcSize:
11+
Max: 22
12+
13+
# Offense count: 1
14+
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns.
15+
Metrics/MethodLength:
16+
Max: 11
17+
18+
# Offense count: 1
19+
# Configuration parameters: AllowedConstants.
20+
Style/Documentation:
21+
Exclude:
22+
- 'spec/**/*'
23+
- 'test/**/*'
24+
25+
# Offense count: 1
26+
# This cop supports safe autocorrection (--autocorrect).
27+
# Configuration parameters: EnforcedStyle.
28+
# SupportedStyles: format, sprintf, percent
29+
# Style/FormatString:
30+
# Exclude:
31+
# - 'bank.rb'
32+
33+
Style/HashEachMethods:
34+
Enabled: true
35+
36+
Style/HashTransformKeys:
37+
Enabled: true
38+
39+
Style/HashTransformValues:
40+
Enabled: true

0 commit comments

Comments
 (0)