Skip to content

Commit ff23de4

Browse files
issyl0ZhongRuoyu
andauthoredFeb 20, 2024
Formatting and cope with more modern RSpec config changes
Co-authored-by: Ruoyu Zhong <zhongruoyu@outlook.com>
1 parent 33c33b5 commit ff23de4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎Library/Homebrew/rubocops/resource_requires_dependencies.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def audit_formula(_node, _class_node, _parent_class_node, body_node)
2424
return if dependencies.include?("libxml2") && dependencies.include?("libxslt")
2525

2626
offending_node(lxml)
27-
problem "Add `uses_from_macos` lines above for \"libxml2\"` and \"libxslt\"."
27+
problem "Add `uses_from_macos` lines above for `\"libxml2\"` and `\"libxslt\"`."
2828
end
2929
end
3030
end

‎Library/Homebrew/test/rubocops/resource_requires_dependencies_spec.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
require "rubocops/resource_requires_dependencies"
44

5-
describe RuboCop::Cop::FormulaAudit::ResourceRequiresDependencies do
5+
RSpec.describe RuboCop::Cop::FormulaAudit::ResourceRequiresDependencies do
66
subject(:cop) { described_class.new }
77

88
context "when a formula does not have the lxml resource" do
@@ -51,7 +51,7 @@ class Foo < Formula
5151
uses_from_macos "not_libxml2"
5252
5353
resource "lxml" do
54-
^^^^^^^^^^^^^^^ FormulaAudit/ResourceRequiresDependencies: Add `uses_from_macos` lines above for "libxml2"` and "libxslt".
54+
^^^^^^^^^^^^^^^ FormulaAudit/ResourceRequiresDependencies: Add `uses_from_macos` lines above for `"libxml2"` and `"libxslt"`.
5555
url "blah"
5656
sha256 "blah"
5757
end

0 commit comments

Comments
 (0)
Please sign in to comment.