Fix haml-lint InstanceVariables
rule for relationships/account (#27342)
This commit is contained in:
parent
f1ae72ba46
commit
d7a8f6b658
3 changed files with 5 additions and 6 deletions
|
@ -1,13 +1,13 @@
|
|||
# This configuration was generated by
|
||||
# `haml-lint --auto-gen-config`
|
||||
# on 2023-10-11 10:00:39 -0400 using Haml-Lint version 0.51.0.
|
||||
# on 2023-10-11 10:49:10 -0400 using Haml-Lint version 0.51.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
|
||||
# versions of Haml-Lint, may require this file to be generated again.
|
||||
|
||||
linters:
|
||||
# Offense count: 945
|
||||
# Offense count: 946
|
||||
LineLength:
|
||||
enabled: false
|
||||
|
||||
|
@ -26,11 +26,10 @@ linters:
|
|||
- 'app/views/admin/reports/show.html.haml'
|
||||
- 'app/views/disputes/strikes/show.html.haml'
|
||||
|
||||
# Offense count: 2
|
||||
# Offense count: 1
|
||||
InstanceVariables:
|
||||
exclude:
|
||||
- 'app/views/auth/sessions/two_factor/_otp_authentication_form.html.haml'
|
||||
- 'app/views/relationships/_account.html.haml'
|
||||
|
||||
# Offense count: 2
|
||||
IdNames:
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
%tbody
|
||||
%tr
|
||||
%td.accounts-table__interrelationships
|
||||
= interrelationships_icon(@relationships, account.id)
|
||||
= interrelationships_icon(relationships, account.id)
|
||||
%td= account_link_to account
|
||||
%td.accounts-table__count.optional
|
||||
= friendly_number_to_human account.statuses_count
|
||||
|
|
|
@ -53,6 +53,6 @@
|
|||
- if @accounts.empty?
|
||||
= nothing_here 'nothing-here--under-tabs'
|
||||
- else
|
||||
= render partial: 'account', collection: @accounts, locals: { f: f }
|
||||
= render partial: 'account', collection: @accounts, locals: { f: f, relationships: @relationships }
|
||||
|
||||
= paginate @accounts
|
||||
|
|
Loading…
Reference in a new issue