Skip to content

Commit

Permalink
Comply with haml-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian-Hirt committed Jun 23, 2024
1 parent 52b0aa4 commit 6e8a2f5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,11 @@ Naming/VariableNumber:
Exclude:
- 'app/views/**/*'

Layout/SpaceInsideParens:
# This cop seems broken for multiline hashes in HAML
Exclude:
- 'app/views/**/*'

Style/IfUnlessModifier:
# Disable this cop in the haml files
Exclude:
Expand Down
2 changes: 1 addition & 1 deletion app/views/admin/home/dashboard.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@
.text-white.bg-info.p-2
= icon %i[fas fa-fw fa-user-clock]
.text-muted.fw-normal.mt-0= _('Admin|Shop|New users in the last week')
%h3.mt-3.mb-3= User.where('created_at >= ?', 7.days.ago).count
%h3.mt-3.mb-3= User.where(created_at: 7.days.ago..).count

0 comments on commit 6e8a2f5

Please sign in to comment.