From 27053cdcbc947293da201250cf1fc95f0ead84da Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Thu, 13 Jun 2024 12:08:23 +0000 Subject: [PATCH 1/6] .mdl_ruleset.rb: update to match main configuration --- docs/.mdl_ruleset.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/docs/.mdl_ruleset.rb b/docs/.mdl_ruleset.rb index a32f752d2e6..7cf80606d77 100644 --- a/docs/.mdl_ruleset.rb +++ b/docs/.mdl_ruleset.rb @@ -1,6 +1,9 @@ -rule 'HB034', 'Bare unstyled URL used' do +# typed: true +# frozen_string_literal: true + +rule "HB034", "Bare unstyled URL used" do tags :links, :url - aliases 'no-bare-unstyled-urls' + aliases "no-bare-unstyled-urls" check do |doc| doc.matching_text_element_lines(%r{(?<=\s)https?://}) end From f6a6d4f394f29a57c6b4c89db3bf4d07cda6759e Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Thu, 13 Jun 2024 12:08:24 +0000 Subject: [PATCH 2/6] .mdl_style.rb: update to match main configuration --- docs/.mdl_style.rb | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/docs/.mdl_style.rb b/docs/.mdl_style.rb index d7a297fede2..dda5902a4e8 100644 --- a/docs/.mdl_style.rb +++ b/docs/.mdl_style.rb @@ -1,8 +1,11 @@ +# typed: true +# frozen_string_literal: true + all -rule 'MD007', indent: 2 # Unordered list indentation -rule 'MD026', punctuation: ',;:' # Trailing punctuation in header -exclude_rule 'MD013' # Line length -exclude_rule 'MD029' # Ordered list item prefix -exclude_rule 'MD033' # Inline HTML -exclude_rule 'MD034' # Bare URL used (replaced by HB034) -exclude_rule 'MD046' # Code block style +rule "MD007", indent: 2 # Unordered list indentation +rule "MD026", punctuation: ",;:" # Trailing punctuation in header +exclude_rule "MD013" # Line length +exclude_rule "MD029" # Ordered list item prefix +exclude_rule "MD033" # Inline HTML +exclude_rule "MD034" # Bare URL used (replaced by HB034) +exclude_rule "MD046" # Code block style From 75884737330f22eba97b4c55c8a7813cb9b795e4 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Thu, 13 Jun 2024 12:08:25 +0000 Subject: [PATCH 3/6] .rubocop.yml: update to match main configuration --- docs/.rubocop.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/docs/.rubocop.yml b/docs/.rubocop.yml index e5a8df064ec..1c984c707e2 100644 --- a/docs/.rubocop.yml +++ b/docs/.rubocop.yml @@ -2,12 +2,9 @@ inherit_from: ../Library/.rubocop.yml AllCops: Exclude: - - Gemfile - - ".mdl*.rb" - - Rakefile - - "_site/**/*" - - Manpage.md - - "vendor/**/*" + - "**/_site/**/*" + - "**/Manpage.md" + - "**/vendor/**/*" # These are included in docs deliberately to show what # `brew create` does and what the user should replace. @@ -22,7 +19,7 @@ FormulaAudit/Homepage: Layout/LineLength: Exclude: - - Bottles.md # The bottle block line length is long in its full form. + - "**/Bottles.md" # The bottle block line length is long in its full form. # Apparently Casks are allowed to have constant definitions in blocks and we document this. Lint/ConstantDefinitionInBlock: From 6c8b52a0b748a522ad101b3df512ee26b61f7cb0 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Thu, 13 Jun 2024 12:08:25 +0000 Subject: [PATCH 4/6] Gemfile: update to match main configuration --- docs/Gemfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/Gemfile b/docs/Gemfile index f45f45b95f0..12ef85fa975 100644 --- a/docs/Gemfile +++ b/docs/Gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + source "https://rubygems.org" ruby file: ".ruby-version" From 0a3c869d0807536ba495bbfb81251f5ea3825b55 Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Thu, 13 Jun 2024 12:08:25 +0000 Subject: [PATCH 5/6] Rakefile: update to match main configuration --- docs/Rakefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/Rakefile b/docs/Rakefile index e3a39f805d1..4d76f69297f 100644 --- a/docs/Rakefile +++ b/docs/Rakefile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require "rake" task default: :build From 2a4abc974735dd8614c62364979a30c35f6a3e7e Mon Sep 17 00:00:00 2001 From: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com> Date: Thu, 13 Jun 2024 12:08:26 +0000 Subject: [PATCH 6/6] docs_rubocop_style.yml: update to match main configuration --- docs/docs_rubocop_style.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 docs/docs_rubocop_style.yml diff --git a/docs/docs_rubocop_style.yml b/docs/docs_rubocop_style.yml new file mode 100644 index 00000000000..1c984c707e2 --- /dev/null +++ b/docs/docs_rubocop_style.yml @@ -0,0 +1,34 @@ +inherit_from: ../Library/.rubocop.yml + +AllCops: + Exclude: + - "**/_site/**/*" + - "**/Manpage.md" + - "**/vendor/**/*" + +# These are included in docs deliberately to show what +# `brew create` does and what the user should replace. +FormulaAudit/Comments: + Enabled: false + +# This forces us to use dummy descriptions/homepages in example formulae which we don't need to clutter the docs with. +FormulaAudit/Desc: + Enabled: false +FormulaAudit/Homepage: + Enabled: false + +Layout/LineLength: + Exclude: + - "**/Bottles.md" # The bottle block line length is long in its full form. + +# Apparently Casks are allowed to have constant definitions in blocks and we document this. +Lint/ConstantDefinitionInBlock: + Enabled: false + +# A fake regexp is deliberately documented for `inreplace` in the Formula Cookbook. +Style/RedundantRegexpArgument: + Enabled: false + +# Want to be able to display partial formulae in the docs. +Style/TopLevelMethodDefinition: + Enabled: false