Skip to content

Commit 99d05aa

Browse files
Merge pull request #2325 from olleolleolle/add-haml-lint
Add haml-lint gem
2 parents 37ffcc2 + 407c136 commit 99d05aa

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

.haml-lint.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
linters:
2+
# We don't need to enforce line length in HAML files
3+
LineLength:
4+
enabled: false
5+
# We don't need to enforce length of HAML files
6+
ViewLength:
7+
enabled: false

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ gem 'public_activity'
7373
group :development do
7474
gem 'better_errors'
7575
gem 'binding_of_caller'
76+
gem 'haml_lint', require: false
7677
gem 'letter_opener'
7778
gem 'web-console', '>= 4.1.0'
7879
# Display performance information such as SQL time and flame graphs for each request in your browser.

Gemfile.lock

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,12 @@ GEM
207207
temple (>= 0.8.2)
208208
thor
209209
tilt
210+
haml_lint (0.66.0)
211+
haml (>= 5.0)
212+
parallel (~> 1.10)
213+
rainbow
214+
rubocop (>= 1.0)
215+
sysexits (~> 1.1)
210216
hashie (5.0.0)
211217
high_voltage (4.0.0)
212218
htmlentities (4.3.4)
@@ -519,6 +525,7 @@ GEM
519525
railties (>= 6.0.0)
520526
stringio (3.1.7)
521527
stripe (9.0.0)
528+
sysexits (1.2.0)
522529
temple (0.10.3)
523530
terser (1.2.6)
524531
execjs (>= 0.3.0, < 3)
@@ -583,6 +590,7 @@ DEPENDENCIES
583590
foreman
584591
friendly_id
585592
haml
593+
haml_lint
586594
high_voltage
587595
icalendar
588596
image_processing

0 commit comments

Comments
 (0)