Skip to content

Commit 089787a

Browse files
Copilotpavera
authored andcommitted
Fix rubocop lint: remove unnecessary Metrics/AbcSize and Metrics/MethodLength disable directives
Co-authored-by: pavera <660677+pavera@users.noreply.github.com>
1 parent d25c3b0 commit 089787a

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

npm_and_yarn/lib/dependabot/npm_and_yarn/package_manager.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,9 +216,7 @@ def find_engine_constraints_as_requirement(name)
216216
end
217217

218218
# rubocop:disable Metrics/CyclomaticComplexity
219-
# rubocop:disable Metrics/AbcSize
220219
# rubocop:disable Metrics/PerceivedComplexity
221-
# rubocop:disable Metrics/MethodLength
222220
sig { params(name: String).returns(T.nilable(T.any(Integer, String))) }
223221
def setup(name)
224222
# we prioritize version mentioned in "packageManager" instead of "engines"
@@ -261,9 +259,7 @@ def setup(name)
261259
version
262260
end
263261
# rubocop:enable Metrics/CyclomaticComplexity
264-
# rubocop:enable Metrics/AbcSize
265262
# rubocop:enable Metrics/PerceivedComplexity
266-
# rubocop:enable Metrics/MethodLength
267263

268264
sig { params(name: String).returns(T.nilable(String)) }
269265
def detect_version(name)

0 commit comments

Comments
 (0)