-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.rubocop.yml
45 lines (35 loc) · 818 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
40
41
42
43
44
45
# merge the default 'Exclude' key with ours
inherit_mode:
merge:
- Exclude
require:
- rubocop-minitest
- rubocop-performance
- rubocop-rake
AllCops:
NewCops: enable
StyleGuideBaseURL: https://rubystyle.guide
TargetRubyVersion: 2.7
SuggestExtensions: false
Exclude:
- bin/**/*
- tmp/**/*
Bundler/OrderedGems:
Include:
- '*.gemspec'
# Enforce single quotes in the gem
Style/StringLiterals:
Enabled: true
EnforcedStyle: single_quotes
Style/HashSyntax:
EnforcedStyle: no_mixed_keys # consistent hash syntax
EnforcedShorthandSyntax: consistent # enforce explicit hash syntax
# Project maximum code line length
Layout/LineLength:
Max: 120
# Exclude test files from BlockComments check
Style/BlockComments:
Exclude:
- 'test/**/*'
Metrics/MethodLength:
Max: 100