From b3f48089e67aebcbe14696db20b51816a977f56b Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Tue, 18 Jul 2023 11:02:02 -0400 Subject: [PATCH] Fix haml-lint rubocop style negation cops (#26057) --- .haml-lint_todo.yml | 4 ++-- app/views/admin/reports/actions/preview.html.haml | 2 +- app/views/admin/reports/show.html.haml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.haml-lint_todo.yml b/.haml-lint_todo.yml index dd5e8cf7f9..602116a9b5 100644 --- a/.haml-lint_todo.yml +++ b/.haml-lint_todo.yml @@ -1,6 +1,6 @@ # This configuration was generated by # `haml-lint --auto-gen-config` -# on 2023-07-17 15:30:11 -0400 using Haml-Lint version 0.48.0. +# on 2023-07-18 09:57:52 -0400 using Haml-Lint version 0.48.0. # The point is for the user to remove these configuration records # one by one as the lints are removed from the code base. # Note that changes in the inspected code, or installation of new @@ -15,7 +15,7 @@ linters: UnnecessaryStringOutput: enabled: false - # Offense count: 67 + # Offense count: 65 RuboCop: enabled: false diff --git a/app/views/admin/reports/actions/preview.html.haml b/app/views/admin/reports/actions/preview.html.haml index 70edb48d80..eb67eebe0d 100644 --- a/app/views/admin/reports/actions/preview.html.haml +++ b/app/views/admin/reports/actions/preview.html.haml @@ -32,7 +32,7 @@ .fields-group = text_area_tag :text, nil, placeholder: t('admin.reports.summary.warning_placeholder') - - if !@report.other? + - unless @report.other? %p %strong= t('user_mailer.warning.reason') = t("user_mailer.warning.categories.#{@report.category}") diff --git a/app/views/admin/reports/show.html.haml b/app/views/admin/reports/show.html.haml index a286aaec33..2dd93d028c 100644 --- a/app/views/admin/reports/show.html.haml +++ b/app/views/admin/reports/show.html.haml @@ -92,7 +92,7 @@ = t('simple_form.yes') - else = t('simple_form.no') - - if !@report.action_taken_by_account.nil? + - if @report.action_taken_by_account.present? .report-header__details__item .report-header__details__item__header %strong= t('admin.reports.action_taken_by')