Skip to content

Commit cc08aa1

Browse files
chore: disable unnecessary linter rules for sorbet manifests (#35)
1 parent 63603b3 commit cc08aa1

File tree

3 files changed

+24
-2
lines changed

3 files changed

+24
-2
lines changed

.rubocop.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,12 @@ Lint/UnusedMethodArgument:
8383
Metrics/AbcSize:
8484
Enabled: false
8585

86+
Metrics/BlockLength:
87+
AllowedPatterns:
88+
- assert_pattern
89+
Exclude:
90+
- "**/*.rbi"
91+
8692
Metrics/ClassLength:
8793
Enabled: false
8894

@@ -92,6 +98,10 @@ Metrics/CyclomaticComplexity:
9298
Metrics/MethodLength:
9399
Enabled: false
94100

101+
Metrics/ModuleLength:
102+
Exclude:
103+
- "**/*.rbi"
104+
95105
Metrics/ParameterLists:
96106
Enabled: false
97107

@@ -102,10 +112,18 @@ Naming/BlockForwarding:
102112
Exclude:
103113
- "**/*.rbi"
104114

115+
Naming/ClassAndModuleCamelCase:
116+
Exclude:
117+
- "**/*.rbi"
118+
105119
Naming/MethodParameterName:
106120
Exclude:
107121
- "**/*.rbi"
108122

123+
Naming/PredicateName:
124+
Exclude:
125+
- "**/*.rbi"
126+
109127
Naming/VariableNumber:
110128
Enabled: false
111129

sig/openai/models/chat/chat_completion_store_message.rbs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ module OpenAI
77
type chat_completion_store_message = { id: String }
88

99
class ChatCompletionStoreMessage < OpenAI::Models::Chat::ChatCompletionMessage
10-
attr_accessor id: String
10+
def id: -> String
11+
12+
def id=: (String _) -> String
1113

1214
def initialize:
1315
(id: String) -> void

sig/openai/models/responses/response_function_tool_call_item.rbs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@ module OpenAI
44
type response_function_tool_call_item = { id: String }
55

66
class ResponseFunctionToolCallItem < OpenAI::Models::Responses::ResponseFunctionToolCall
7-
attr_accessor id: String
7+
def id: -> String
8+
9+
def id=: (String _) -> String
810

911
def initialize:
1012
(id: String) -> void

0 commit comments

Comments
 (0)