forked from khasinski/ruby_llm-responses_api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.rubocop.yml
More file actions
63 lines (49 loc) · 1.05 KB
/
.rubocop.yml
File metadata and controls
63 lines (49 loc) · 1.05 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
AllCops:
TargetRubyVersion: 3.1
NewCops: enable
SuggestExtensions: false
Exclude:
- 'vendor/**/*'
- 'ruby_llm_source/**/*'
- 'test_rails_app/**/*'
Style/Documentation:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: true
Metrics/BlockLength:
Max: 35
Exclude:
- 'spec/**/*'
Metrics/MethodLength:
Max: 30
Exclude:
- 'spec/**/*'
- 'examples/**/*'
Metrics/AbcSize:
Max: 30
Metrics/CyclomaticComplexity:
Max: 12
Metrics/PerceivedComplexity:
Max: 12
Metrics/ClassLength:
Max: 150
Exclude:
- 'spec/**/*'
Metrics/ModuleLength:
Max: 250
Layout/LineLength:
Max: 120
# The alias file intentionally uses a hyphen to match gem naming
Naming/FileName:
Exclude:
- 'lib/ruby_llm-responses_api.rb'
# Development dependencies in gemspec is fine for a gem
Gemspec/DevelopmentDependencies:
Enabled: false
# Empty block is intentional in streaming test
Lint/EmptyBlock:
Exclude:
- 'spec/**/*'
# Duplicate branches are sometimes clearer than complex conditionals
Lint/DuplicateBranch:
Enabled: false