From 5ac9af96184e8c38f09a684f2853fa4abfc66600 Mon Sep 17 00:00:00 2001 From: Jeff King Date: Thu, 27 Oct 2022 15:52:30 -0400 Subject: rubocop: turn off Rails/ContentTag This cop suggests (and even autocorrects!) an instance of: tag("img", options) to change into: tag.img(options) But as discussed in https://github.com/git/git-scm.com/pull/1742, this actually breaks the call! I'm still puzzled about why this is. But I find that I don't care enough to investigate deeply, and it would be useful to have CI on "main" actually pass, so unrelated pull requests aren't confused into thinking they broke something. So let's just disable the cop for now. --- .rubocop.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.rubocop.yml b/.rubocop.yml index ec1ae45b..a7d05a71 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -73,3 +73,6 @@ Lint/EmptyBlock: Exclude: - spec/**/* - test/**/* + +Rails/ContentTag: + Enabled: false -- cgit v1.2.3