gearheads
/
mastodon
Archived
2
0
Fork 0

Fix haml-lint rubocop style negation cops (#26057)

gh/dev
Matt Jankowski 2023-07-18 11:02:02 -04:00 committed by GitHub
parent b8931311a0
commit b3f48089e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
# This configuration was generated by # This configuration was generated by
# `haml-lint --auto-gen-config` # `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 # The point is for the user to remove these configuration records
# one by one as the lints are removed from the code base. # one by one as the lints are removed from the code base.
# Note that changes in the inspected code, or installation of new # Note that changes in the inspected code, or installation of new
@ -15,7 +15,7 @@ linters:
UnnecessaryStringOutput: UnnecessaryStringOutput:
enabled: false enabled: false
# Offense count: 67 # Offense count: 65
RuboCop: RuboCop:
enabled: false enabled: false

View File

@ -32,7 +32,7 @@
.fields-group .fields-group
= text_area_tag :text, nil, placeholder: t('admin.reports.summary.warning_placeholder') = text_area_tag :text, nil, placeholder: t('admin.reports.summary.warning_placeholder')
- if !@report.other? - unless @report.other?
%p %p
%strong= t('user_mailer.warning.reason') %strong= t('user_mailer.warning.reason')
= t("user_mailer.warning.categories.#{@report.category}") = t("user_mailer.warning.categories.#{@report.category}")

View File

@ -92,7 +92,7 @@
= t('simple_form.yes') = t('simple_form.yes')
- else - else
= t('simple_form.no') = 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
.report-header__details__item__header .report-header__details__item__header
%strong= t('admin.reports.action_taken_by') %strong= t('admin.reports.action_taken_by')