mirror of
https://github.com/Homebrew/brew.git
synced 2025-07-14 16:09:03 +08:00
rubocop: Drop "d" from Naming/MethodParameterName
allowlist
This commit is contained in:
parent
e273c25be0
commit
a3211f4d7f
@ -183,7 +183,6 @@ Naming/MethodName:
|
||||
- '\A(fetch_)?HEAD\?\Z'
|
||||
|
||||
# allow those that are standard
|
||||
# TODO: try to remove some of these
|
||||
Naming/MethodParameterName:
|
||||
inherit_mode:
|
||||
merge:
|
||||
@ -194,7 +193,6 @@ Naming/MethodParameterName:
|
||||
"b",
|
||||
"c1",
|
||||
"c2",
|
||||
"d",
|
||||
"e",
|
||||
"f",
|
||||
"ff",
|
||||
|
@ -117,8 +117,8 @@ class Cleaner
|
||||
#
|
||||
# lib may have a large directory tree (see Erlang for instance), and
|
||||
# clean_dir applies cleaning rules to the entire tree
|
||||
def clean_dir(d)
|
||||
d.find do |path|
|
||||
def clean_dir(directory)
|
||||
directory.find do |path|
|
||||
path.extend(ObserverPathnameExtension)
|
||||
|
||||
Find.prune if @f.skip_clean? path
|
||||
|
@ -196,17 +196,17 @@ module Homebrew
|
||||
str
|
||||
end
|
||||
|
||||
def self.deps_for_dependent(d, args:, recursive: false)
|
||||
def self.deps_for_dependent(dependency, args:, recursive: false)
|
||||
includes, ignores = args_includes_ignores(args)
|
||||
|
||||
deps = d.runtime_dependencies if @use_runtime_dependencies
|
||||
deps = dependency.runtime_dependencies if @use_runtime_dependencies
|
||||
|
||||
if recursive
|
||||
deps ||= recursive_includes(Dependency, d, includes, ignores)
|
||||
reqs = recursive_includes(Requirement, d, includes, ignores)
|
||||
deps ||= recursive_includes(Dependency, dependency, includes, ignores)
|
||||
reqs = recursive_includes(Requirement, dependency, includes, ignores)
|
||||
else
|
||||
deps ||= reject_ignores(d.deps, ignores, includes)
|
||||
reqs = reject_ignores(d.requirements, ignores, includes)
|
||||
deps ||= reject_ignores(dependency.deps, ignores, includes)
|
||||
reqs = reject_ignores(dependency.requirements, ignores, includes)
|
||||
end
|
||||
|
||||
deps + reqs.to_a
|
||||
|
Loading…
x
Reference in New Issue
Block a user