Skip to content

Commit 8c74521

Browse files
jessealamaclaude
andcommitted
Fix rubocop lint warnings in native_helpers.rb
- Add rubocop:disable comments for intentionally unused credentials parameters (kept for API consistency with other ecosystems) - Fix Layout/FirstMethodArgumentLineBreak in JSON.generate call 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 097d4f6 commit 8c74521

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

lean/lib/dependabot/lean/native_helpers.rb

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ module NativeHelpers
1717
credentials: T::Array[Dependabot::Credential]
1818
).returns(T::Hash[String, T.untyped])
1919
end
20-
def self.run_lake_update(directory:, credentials:)
20+
def self.run_lake_update(directory:, credentials:) # rubocop:disable Lint/UnusedMethodArgument
2121
run_helper(
2222
function: "update_all",
2323
args: { directory: directory }
@@ -30,7 +30,7 @@ def self.run_lake_update(directory:, credentials:)
3030
credentials: T::Array[Dependabot::Credential]
3131
).returns(T::Hash[String, T.untyped])
3232
end
33-
def self.check_updates(directory:, credentials:)
33+
def self.check_updates(directory:, credentials:) # rubocop:disable Lint/UnusedMethodArgument
3434
run_helper(
3535
function: "check_updates",
3636
args: { directory: directory }
@@ -61,10 +61,12 @@ class << self
6161
).returns(T::Hash[String, T.untyped])
6262
end
6363
def run_helper(function:, args:)
64-
stdin_data = JSON.generate({
65-
function: function,
66-
args: args
67-
})
64+
stdin_data = JSON.generate(
65+
{
66+
function: function,
67+
args: args
68+
}
69+
)
6870

6971
stdout, stderr, status = Open3.capture3(
7072
helper_path,

0 commit comments

Comments
 (0)