From e6ddf8c958853b90f22ee875cf4c930eb3412202 Mon Sep 17 00:00:00 2001 From: Douglas Eichelberger Date: Mon, 27 Feb 2023 08:51:21 -0800 Subject: [PATCH] Enable Style/OpenStructUse cop --- Library/.rubocop.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Library/.rubocop.yml b/Library/.rubocop.yml index 78dd2c2e74..2904a7fa9f 100644 --- a/Library/.rubocop.yml +++ b/Library/.rubocop.yml @@ -425,9 +425,16 @@ Style/NumericLiterals: Exclude: - "**/Brewfile" -# OpenStruct is a nice helper. +# TODO: These are pre-existing violations and should be fixed. Style/OpenStructUse: - Enabled: false + Exclude: + - "Homebrew/cli/args.rb" + - "Homebrew/cmd/uses.rb" + - "Homebrew/completions.rb" + - "Homebrew/manpages.rb" + - "Homebrew/tab.rb" + - "Homebrew/test/api/cask_spec.rb" + - "Homebrew/test/api_spec.rb" # Rescuing `StandardError` is an understood default. Style/RescueStandardError: