-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.rubocop.yml
42 lines (33 loc) · 974 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
# See all options in these files:
# https://github.com/bbatsov/rubocop/blob/master/config/default.yml
# https://github.com/bbatsov/rubocop/blob/master/config/enabled.yml
# https://github.com/bbatsov/rubocop/blob/master/config/disabled.yml
# run bundle exec rubocop -D to see what cop is reporting
# If you want to skip the check for line length in a specific case do:
# rubocop:disable LineLength
# superlong-line-with-unavoidable-excesive-length
# rubocop:enable LineLength
AllCops:
TargetRubyVersion: 2.7
Exclude:
- bin/*
- Rakefile
Documentation:
Enabled: false
Metrics/BlockLength:
Exclude:
- test/**/*
- ./*.gemspec
Metrics/LineLength:
Max: 120
Exclude:
- test/**/*
Metrics/MethodLength:
Exclude:
- test/**/*
Style/FrozenStringLiteralComment:
Enabled: false
# Although casecmp is more performant, downcase is more readable
# 'Foo'.downcase.eql?('foo') vs 'Foo'.casecmp('foo').zero?
Performance/Casecmp:
Enabled: false