Skip to content

Commit d9a7ffa

Browse files
committed
Fix linting issues from updating haml-lint
1 parent 6bd54e9 commit d9a7ffa

18 files changed

Lines changed: 19 additions & 25 deletions
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
%form{ action: appliance_calculator_clear_path, method: "GET" }
22
= render CitizensAdviceComponents::Button.new(variant: :tertiary, type: :submit, attributes: attrs) do
33
Clear list
4-

app/components/appliance_calculator/last_added_appliance_component.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
= render CitizensAdviceComponents::SuccessMessage.new(message: message)
33
.last-added-appliance__dismiss-wrapper
44
%button{ dismiss_button_attrs }
5-
= render CitizensAdviceComponents::Icons::Close.new
5+
= render CitizensAdviceComponents::Icons::Close.new

app/components/appliance_calculator/usages_table_component.html.haml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,3 @@
55

66
.cads-prose
77
%p Calculated using a rate of #{formatted_unit_rate} p/kWh.
8-
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
%svg.star.star--half{ width: "17", height: "14", viewBox: "0 0 17 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true" }
2-
%use{ href:"#halfStar" }
2+
%use{ href: "#halfStar" }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
%svg.star.star--half{ width: "17", height: "14", viewBox: "0 0 17 15", fill: "none", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true" }
2-
%use{ href:"#highlightedHalfStar" }
2+
%use{ href: "#highlightedHalfStar" }

app/components/csr_table/unranked_suppliers/details_component.html.haml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
.unranked-supplier__title{ "data-testid": "unranked-supplier-details-#{supplier.name.parameterize}" }
33
= title
44
- if Feature.enabled? "FF_SMALL_SUPPLIER_STARS"
5-
-if whitelabelled?
5+
- if whitelabelled?
66
%p
77
= whitelabel_supplier_link
8-
-else
8+
- else
99
= render CsrTable::UnrankedSuppliers::StarsSummaryComponent.new(supplier)
1010

1111
= render CsrTable::DescriptionListComponent.new do |c|

app/views/appliance_calculator/daily_usage_creation/_cost_estimation.html.haml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,3 @@
1616

1717
%p
1818
The actual usage can also depend on things like your appliance’s size or the type of technology it uses.
19-

app/views/appliance_calculator/daily_usage_creation/steps/_cyclical_usage.html.haml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
= current_step.cycle_frequency_error
1414
.frequency-inputs
1515
.frequency-inputs__item
16-
= form.cads_text_field :cycles, label: "Cycles", width: :two_chars, required: true, options: { additional_attributes: { "inputmode": "numeric", id: "daily_usage_creation_steps_time_usage_base-input" } }
16+
= form.cads_text_field :cycles, label: "Cycles", width: :two_chars, required: true, options: { additional_attributes: { inputmode: "numeric", id: "daily_usage_creation_steps_time_usage_base-input" } }
1717
.frequency-inputs__item
18-
= form.cads_collection_select :frequency, label: "Frequency", required: true, collection: current_step.frequency_options, text_method: :text, value_method: :value
18+
= form.cads_collection_select :frequency, label: "Frequency", required: true, collection: current_step.frequency_options, text_method: :text, value_method: :value

app/views/appliance_calculator/daily_usage_creation/steps/_form.html.haml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
= form_with model: current_step, url: step_path, method: :patch, class: "cads-prose-direct-descendants" do |form|
2-
32
= render(current_step.key, form: form)
43

54
- if wizard.can_proceed?
@@ -8,11 +7,10 @@
87
- c.with_icon_right do
98
= render CitizensAdviceComponents::Icons::ArrowRight.new
109

11-
1210
- if wizard.previous_key
1311
= form_with model: current_step, url: step_path(wizard.previous_key), method: :get do
1412
= render CitizensAdviceComponents::Button.new(type: :submit, variant: :secondary, attributes: current_step.prev_button_attrs) do |c|
15-
= "Previous"
13+
Previous
1614
- c.with_icon_left do
1715
= render CitizensAdviceComponents::Icons::ArrowLeft.new
1816

app/views/appliance_calculator/daily_usage_creation/steps/_time_usage.html.haml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
= current_step.error
1515
.frequency-inputs
1616
.frequency-inputs__item
17-
= form.cads_text_field :hours, label: "Hours", width: :two_chars, required: true, options: { additional_attributes: { "inputmode": "numeric", id: "daily_usage_creation_steps_time_usage_base-input" } }
17+
= form.cads_text_field :hours, label: "Hours", width: :two_chars, required: true, options: { additional_attributes: { inputmode: "numeric", id: "daily_usage_creation_steps_time_usage_base-input" } }
1818
.frequency-inputs__item
19-
= form.cads_text_field :minutes, label: "Minutes", width: :two_chars, required: true, options: { additional_attributes: { "inputmode": "numeric" } }
19+
= form.cads_text_field :minutes, label: "Minutes", width: :two_chars, required: true, options: { additional_attributes: { inputmode: "numeric" } }
2020
.frequency-inputs__item
2121
= form.cads_collection_select :frequency, label: "Frequency", required: true, collection: current_step.frequency_options, text_method: :text, value_method: :value
2222

0 commit comments

Comments
 (0)