-
Notifications
You must be signed in to change notification settings - Fork 8
/
.rubocop.yml
59 lines (49 loc) · 1023 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
require:
- rubocop-rake
- rubocop-rspec
AllCops:
Include:
- "Gemfile"
- "Guardfile"
- "Rakefile"
- "**/*.gemspec"
- "**/lib/**/*.rb"
- "**/spec/**/*.rb"
Exclude:
- "*.gemfile"
- "vendor/bundle/**/*"
- "tmp/**/*"
NewCops: enable
TargetRubyVersion: 2.7
Gemspec/RequiredRubyVersion:
Enabled: false
Layout/LineLength:
Max: 100
Metrics/AbcSize:
Exclude:
- "Rakefile"
- "**/spec/**/*_spec.rb"
Metrics/BlockLength:
Exclude:
- "**/Rakefile"
- "**/spec/**/*_spec.rb"
Metrics/MethodLength:
Exclude:
- "Rakefile"
- "**/spec/**/*_spec.rb"
Naming/FileName:
Exclude:
- "**/Guardfile"
- "**/Rakefile"
- "activerecord-ksuid/lib/activerecord-ksuid.rb"
RSpec/DescribeClass:
IgnoredMetadata:
type:
- compatibility
- integration
RSpec/ExampleLength:
Enabled: false
# Disabled because it's invalid syntax on older Rubies
# and we don't want to break compatibility before 1.0.0
Style/SlicingWithRange:
Enabled: false