utils: Add a comment to module Kernel
to appease RuboCop
- This `Homebrew/utils.rb` file contains one `@api public` method so it's now included in `Style/Documentation`. - This method not having a comment was causing the style specs to fail because this file isn't usually failing RuboCop. - And the test description was confusing so I improved it.
This commit is contained in:
parent
32e7268596
commit
316df75da9
@ -1,6 +1,7 @@
|
|||||||
# typed: false
|
# typed: false
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
|
# Contains shorthand Homebrew utility methods like `ohai`, `opoo`, `odisabled`.
|
||||||
module Kernel
|
module Kernel
|
||||||
extend T::Sig
|
extend T::Sig
|
||||||
|
|
||||||
|
@ -40,7 +40,7 @@ describe Homebrew::Style do
|
|||||||
describe ".check_style_and_print" do
|
describe ".check_style_and_print" do
|
||||||
let(:dir) { mktmpdir }
|
let(:dir) { mktmpdir }
|
||||||
|
|
||||||
it "returns false for conforming file with only audit-level violations" do
|
it "returns true (success) for conforming file with only audit-level violations" do
|
||||||
# This file is known to use non-rocket hashes and other things that trigger audit,
|
# This file is known to use non-rocket hashes and other things that trigger audit,
|
||||||
# but not regular, cop violations
|
# but not regular, cop violations
|
||||||
target_file = HOMEBREW_LIBRARY_PATH/"utils.rb"
|
target_file = HOMEBREW_LIBRARY_PATH/"utils.rb"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user