Skip to content

Commit a8913fc

Browse files
committed
add customized rubocop rules
1 parent 31fcfd1 commit a8913fc

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.rubocop.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# default rule used by hound
2+
# @see https://github.com/houndci/hound/blob/master/.rubocop.yml
3+
require: rubocop-rspec
4+
5+
AllCops:
6+
Exclude:
7+
- spec/spec_helper.rb
8+
- vendor/**/*
9+
- fcm.gemspec
10+
- Gemfile
11+
- Rakefile
12+
- lib/fcm.rb
13+
14+
Metrics/LineLength:
15+
Description: 'Limit lines to 85 characters.'
16+
StyleGuide: '#80-character-limits'
17+
Max: 85
18+
Enabled: true
19+
20+
Metrics/MethodLength:
21+
Description: 'Avoid methods longer than 25 lines of code.'
22+
StyleGuide: '#short-methods'
23+
Max: 25
24+
Enabled: true
25+
26+
Metrics/BlockLength:
27+
Exclude:
28+
- spec/fcm_spec.rb
29+
30+
RSpec/MultipleMemoizedHelpers:
31+
Max: 10
32+
33+
RSpec/ExampleLength:
34+
Max: 15
35+
36+
RSpec/MultipleMemoizedHelpers:
37+
Max: 15

0 commit comments

Comments
 (0)