From 8fa89c2db17bc2404aadc3fda3fa6d22db0d015e Mon Sep 17 00:00:00 2001
From: Matt Jankowski <matt@jankowski.online>
Date: Wed, 11 Dec 2024 10:50:56 -0500
Subject: [PATCH] Remove `app/views` rubocop rule exception for haml-lint
 (#33270)

---
 .rubocop/style.yml     | 4 ++++
 app/views/.rubocop.yml | 5 -----
 2 files changed, 4 insertions(+), 5 deletions(-)
 delete mode 100644 app/views/.rubocop.yml

diff --git a/.rubocop/style.yml b/.rubocop/style.yml
index ee3ce3993..7dd4299c3 100644
--- a/.rubocop/style.yml
+++ b/.rubocop/style.yml
@@ -22,6 +22,10 @@ Style/HashSyntax:
   EnforcedShorthandSyntax: either
   EnforcedStyle: ruby19_no_mixed_keys
 
+Style/IfUnlessModifier:
+  Exclude:
+    - '**/*.haml'
+
 Style/KeywordArgumentsMerging:
   Enabled: false
 
diff --git a/app/views/.rubocop.yml b/app/views/.rubocop.yml
deleted file mode 100644
index 4e268848c..000000000
--- a/app/views/.rubocop.yml
+++ /dev/null
@@ -1,5 +0,0 @@
-inherit_from: ../../.rubocop.yml
-
-# Disable for the `Rubocop` lints in haml-lint
-Style/IfUnlessModifier:
-  Enabled: false