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