-
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path.rubocop.yml
47 lines (38 loc) · 838 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
require:
- rubocop-rspec
- rubocop-performance
inherit_gem:
rentacop:
- rentacop.yml
- rspec.yml
# Merge `Exclude` arrays
inherit_mode:
merge:
- Exclude
AllCops:
TargetRubyVersion: 3.0
SuggestExtensions: false
Exclude:
- 'dev/**/*'
# There is a special use case that needs this
Lint/LiteralAsCondition:
Exclude:
- 'spec/**/*'
# `SVGBase#element` is a bit complex
Metrics/PerceivedComplexity:
Max: 11
# This test is allowed to use `eval`
Security/Eval:
Exclude:
- spec/victor/script_spec.rb
# Allow `include Victor` in some places
Style/MixinUsage:
Exclude:
- lib/victor/script.rb
# We use Marshal.load to test that it *can* be done. Allow it.
Security/MarshalLoad:
Exclude:
- spec/victor/svg_marshaling_spec.rb
RSpec/ExampleLength:
Exclude:
- spec/victor/svg_spec.rb