From 794b839e36100b2115bc1bdb469e54f1bd7c82f3 Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Wed, 11 Jan 2023 18:16:43 -0800 Subject: [PATCH] Fix remaining YARD exception --- .github/workflows/docs.yml | 2 +- Library/Homebrew/extend/ENV.rb | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 64ba312816..d679576185 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -64,4 +64,4 @@ jobs: - name: Process rubydoc comments working-directory: Library/Homebrew - run: bundle exec yard doc --plugin sorbet --no-output #--fail-on-warning + run: bundle exec yard doc --plugin sorbet --no-output --fail-on-warning diff --git a/Library/Homebrew/extend/ENV.rb b/Library/Homebrew/extend/ENV.rb index 391a241305..b4c149a577 100644 --- a/Library/Homebrew/extend/ENV.rb +++ b/Library/Homebrew/extend/ENV.rb @@ -19,6 +19,10 @@ module Kernel private :superenv? end +# @!parse +# # ENV is not actually a class, but this makes `YARD` happy +# # @see https://rubydoc.info/stdlib/core/ENV ENV core documentation +# class ENV; end module EnvActivation extend T::Sig