main
1require:
2 - rubocop/cop/internal_affairs
3 - rubocop-rspec
4
5AllCops:
6 Exclude:
7 - 'coverage/**/*'
8 - 'pkg/**/*'
9 - 'spec/fixtures/**/*'
10 - 'tmp/**/*'
11 - 'vendor/**/*'
12 TargetRubyVersion: 2.7
13
14Layout/BlockAlignment:
15 EnforcedStyleAlignWith: start_of_line
16 Exclude:
17 - 'lib/**/*.builder'
18 - 'spec/**/*'
19
20Layout/ClassStructure:
21 Enabled: true
22 Categories:
23 module_inclusion:
24 - include
25 - prepend
26 - extend
27 ExpectedOrder:
28 - module_inclusion
29 - constants
30 - public_class_methods
31 - initializer
32 - instance_methods
33 - protected_methods
34 - private_methods
35
36Layout/EndOfLine:
37 EnforcedStyle: lf
38
39Layout/FirstArrayElementIndentation:
40 EnforcedStyle: consistent
41
42Layout/MultilineOperationIndentation:
43 EnforcedStyle: indented
44
45Lint/AmbiguousBlockAssociation:
46 Exclude:
47 - 'spec/**/*.rb'
48
49Lint/InterpolationCheck:
50 Exclude:
51 - 'spec/**/*.rb'
52
53Metrics/AbcSize:
54 Exclude:
55 - 'lib/xml/kit/self_signed_certificate.rb'
56
57Metrics/BlockLength:
58 Exclude:
59 - '**/**/*.builder'
60 - '**/*.rake'
61 - '*.gemspec'
62 - 'Rakefile'
63 - 'spec/**/*.rb'
64
65Metrics/ModuleLength:
66 Exclude:
67 - 'spec/**/*.rb'
68
69Layout/LineLength:
70 IgnoredPatterns: ['(\A|\s)#']
71 Exclude:
72 - 'spec/**/*.rb'
73 - 'lib/xml/kit/templates/*.builder'
74
75Naming/FileName:
76 Exclude:
77 - 'lib/xml-kit.rb'
78
79Style/Documentation:
80 Enabled: false
81
82Style/EachWithObject:
83 Enabled: false
84
85Style/StringLiterals:
86 EnforcedStyle: 'single_quotes'
87
88Style/TrailingCommaInArrayLiteral:
89 Enabled: false
90
91Style/TrailingCommaInHashLiteral:
92 Enabled: false
93
94RSpec/ExampleLength:
95 Max: 80
96
97RSpec/LeakyConstantDeclaration:
98 Exclude:
99 - 'spec/xml/kit/templatable_spec.rb'
100
101RSpec/MultipleExpectations:
102 Enabled: false
103
104RSpec/MultipleMemoizedHelpers:
105 Enabled: false
106
107RSpec/NamedSubject:
108 Enabled: false
109
110RSpec/NestedGroups:
111 Max: 7
112
113RSpec/SubjectStub:
114 Enabled: false
115
116Style/DoubleNegation:
117 Exclude:
118 - 'lib/xml/kit/certificate.rb'