From 0250b8c0bb379cc1f9d59165a97596871d8f64ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dorian=20Mari=C3=A9?= Date: Thu, 29 Aug 2024 08:39:24 +0200 Subject: [PATCH] disable Rails/Output and reformat code --- .rubocop.yml | 2 ++ bin/bundle-audit | 10 +++++++--- bin/bundler-audit | 10 +++++++--- 3 files changed, 16 insertions(+), 6 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index cf95af4..fc5e5cf 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -78,6 +78,8 @@ Rails/HelperInstanceVariable: Enabled: false Rails/NegateInclude: Enabled: false +Rails/Output: + Enabled: false Rails/Present: Enabled: false Rails/ThreeStateBooleanColumn: diff --git a/bin/bundle-audit b/bin/bundle-audit index a0e7ba0..051284f 100755 --- a/bin/bundle-audit +++ b/bin/bundle-audit @@ -13,11 +13,15 @@ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) bundle_binstub = File.expand_path("bundle", __dir__) if File.file?(bundle_binstub) - if File.read(bundle_binstub, 300).include?("This file was generated by Bundler") + if File.read(bundle_binstub, 300).include?( + "This file was generated by Bundler" + ) load(bundle_binstub) else - abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run. -Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.") + abort( + "Your `bin/bundle` was not generated by Bundler, so this binstub cannot run. +Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again." + ) end end diff --git a/bin/bundler-audit b/bin/bundler-audit index 334a737..3cc3f7d 100755 --- a/bin/bundler-audit +++ b/bin/bundler-audit @@ -13,11 +13,15 @@ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__) bundle_binstub = File.expand_path("bundle", __dir__) if File.file?(bundle_binstub) - if File.read(bundle_binstub, 300).include?("This file was generated by Bundler") + if File.read(bundle_binstub, 300).include?( + "This file was generated by Bundler" + ) load(bundle_binstub) else - abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run. -Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.") + abort( + "Your `bin/bundle` was not generated by Bundler, so this binstub cannot run. +Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again." + ) end end