From 46a0a507740b8d791d13c9f4963be665114ae6b0 Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Sun, 18 Feb 2024 15:47:51 -0800 Subject: [PATCH] Update config --- Library/.rubocop.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Library/.rubocop.yml b/Library/.rubocop.yml index e6f5e32d97..72598bc668 100644 --- a/Library/.rubocop.yml +++ b/Library/.rubocop.yml @@ -259,6 +259,10 @@ Sorbet/ConstantsFromStrings: Sorbet/FalseSigil: Enabled: false +# We generally prefer to colo rbi files with the Ruby files they describe. +Sorbet/ForbidRBIOutsideOfAllowedPaths: + Enabled: false + # T::Sig is monkey-patched into Module Sorbet/RedundantExtendTSig: Enabled: true @@ -295,6 +299,10 @@ Style/BlockDelimiters: BracesRequiredMethods: - "sig" +Style/ClassAndModuleChildren: + Exclude: + - "**/*.rbi" + # Use consistent style for better readability. Style/CollectionMethods: Enabled: true @@ -382,6 +390,7 @@ Style/OpenStructUse: # TODO: This is a pre-existing violation and should be corrected # to define methods so that call sites can be type-checked. - "Homebrew/cli/args.rb" + - "Homebrew/cli/args.rbi" # Rescuing `StandardError` is an understood default. Style/RescueStandardError: