forked from sparklemotion/nokogiri
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.rubocop.yml
40 lines (33 loc) · 873 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
require:
- rubocop-minitest
- rubocop-performance
- rubocop-rake
inherit_gem:
rubocop-shopify: rubocop.yml
inherit_from: .rubocop_todo.yml
AllCops:
NewCops: enable
Exclude:
- 'lib/nokogiri/css/parser.rb' # generated by racc
- 'lib/nokogiri/css/tokenizer.rb' # generated by rex
- 'lib/nokogiri/jruby/nokogiri_jars.rb' # generated by jar-dependencies
- 'test/_test_pattern_matching.rb' # until TargetRubyVersion >= 3.0
TargetRubyVersion: "2.7"
Metrics/BlockNesting:
Exclude:
- ext/nokogiri/extconf.rb
- scripts/**
- test/html5/test_tree_construction.rb
Metrics/CollectionLiteralLength:
Exclude:
- nokogiri.gemspec
Minitest/EmptyLineBeforeAssertionMethods:
Enabled: false
Naming/FileName:
Exclude:
- rakelib/**
Naming/MethodName:
Enabled: false
Performance/CollectionLiteralInLoop:
Exclude:
- test/**/*