forked from sparklemotion/nokogiri
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.rubocop.yml
45 lines (37 loc) · 961 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
require:
- rubocop-minitest
- rubocop-packaging
- 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: "3.0"
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/**/*
Performance/StringIdentifierArgument:
Exclude:
- test/**/*