From 617a4ad17273e691326fd7f0f36ac750b2e0cb0a Mon Sep 17 00:00:00 2001 From: Michael Ball Date: Wed, 24 Mar 2021 13:54:20 -0700 Subject: [PATCH] Control some lints --- .haml-lint_todo.yml | 11 +++++------ app/views/admin/registrations/index.html.haml | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.haml-lint_todo.yml b/.haml-lint_todo.yml index 7bcb33d4..02f1ac56 100644 --- a/.haml-lint_todo.yml +++ b/.haml-lint_todo.yml @@ -248,6 +248,11 @@ linters: - "app/views/users/edit.html.haml" - "app/views/users/show.html.haml" + ConsecutiveComments: + exclude: + # This one seems like a bug in haml-lint. + - "app/views/admin/conferences/show.html.haml" + # Offense count: 24 ConsecutiveSilentScripts: exclude: @@ -605,11 +610,6 @@ linters: - "app/views/admin/registrations/index.csv.haml" - "app/views/layouts/_admin.html.haml" - # Offense count: 1 - ImplicitDiv: - exclude: - - "app/views/admin/registrations/index.html.haml" - # Offense count: 9 MultilinePipe: exclude: @@ -637,7 +637,6 @@ linters: - "app/views/devise/passwords/new.html.haml" - "app/views/payments/new.html.haml" - # Offense count: 13 ViewLength: exclude: diff --git a/app/views/admin/registrations/index.html.haml b/app/views/admin/registrations/index.html.haml index 09f674e9..70a50b46 100644 --- a/app/views/admin/registrations/index.html.haml +++ b/app/views/admin/registrations/index.html.haml @@ -20,7 +20,7 @@ combined_data: @registration_distribution .row .col-md-12 - %div.margin-event-table + .margin-event-table %table.datatable#registrations{ data: { source: admin_conference_registrations_path(conference_id: @conference, format: :json) } } %thead %tr