Merge pull request #15849 from razvanazamfirei/sharding-audit
cask/audit: audit for appropriate sharding directory
This commit is contained in:
commit
1a8f1be34b
@ -717,6 +717,17 @@ module Cask
|
|||||||
strict: strict?)
|
strict: strict?)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
sig { void }
|
||||||
|
def audit_cask_path
|
||||||
|
return if cask.tap != "homebrew/cask"
|
||||||
|
|
||||||
|
expected_path = cask.tap.new_cask_path(cask.token)
|
||||||
|
|
||||||
|
return if cask.sourcefile_path.to_s.end_with?(expected_path)
|
||||||
|
|
||||||
|
add_error "Cask should be located in '#{expected_path}'"
|
||||||
|
end
|
||||||
|
|
||||||
# sig {
|
# sig {
|
||||||
# params(url_to_check: T.any(String, URL), url_type: String, cask_token: String, tap: Tap,
|
# params(url_to_check: T.any(String, URL), url_type: String, cask_token: String, tap: Tap,
|
||||||
# options: T.untyped).void
|
# options: T.untyped).void
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user