Skip to content

Commit

Permalink
Add erb-lint gem and configuration file for linting ERB files (#264)
Browse files Browse the repository at this point in the history
Co-authored-by: JENNIFER <jc.russell@yahoo.com>
  • Loading branch information
jrussell416 and jrussell416 authored Jan 22, 2025
1 parent 3604148 commit 51e3408
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .erb_lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
EnableDefaultLinters: true
linters:
ErbSafety:
enabled: true
better_html_config: .better-html.yml
Rubocop:
enabled: true
rubocop_config:
inherit_from:
- .rubocop.yml
5 changes: 5 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,8 @@ end
# bug deprecate gems not longer in ruby standard warning
gem 'drb', '~> 2.2.1'
gem 'mutex_m', '~> 0.2.0'

# add erb-lint gem
gem 'erb_lint', require: false


16 changes: 16 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,13 @@ GEM
ast (2.4.2)
base64 (0.2.0)
bcrypt (3.1.20)
better_html (2.1.1)
actionview (>= 6.0)
activesupport (>= 6.0)
ast (~> 2.0)
erubi (~> 1.4)
parser (>= 2.4)
smart_properties
bigdecimal (3.1.8)
bindex (0.8.1)
bootsnap (1.18.4)
Expand Down Expand Up @@ -121,6 +128,13 @@ GEM
warden (~> 1.2.3)
diff-lcs (1.5.1)
drb (2.2.1)
erb_lint (0.8.0)
activesupport
better_html (>= 2.0.1)
parser (>= 2.7.1.4)
rainbow
rubocop (>= 1)
smart_properties
erubi (1.13.0)
factory_bot (6.4.6)
activesupport (>= 5.0.0)
Expand Down Expand Up @@ -377,6 +391,7 @@ GEM
gli
hashie
websocket-driver
smart_properties (1.17.0)
sprockets (4.2.1)
concurrent-ruby (~> 1.0)
rack (>= 2.2.4, < 4)
Expand Down Expand Up @@ -430,6 +445,7 @@ DEPENDENCIES
debug (~> 1.7.1)
devise (~> 4.9.2)
drb (~> 2.2.1)
erb_lint
factory_bot_rails (~> 6.4.3)
faker (~> 2.18.0)
google_drive!
Expand Down
4 changes: 1 addition & 3 deletions yarn.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 51e3408

Please sign in to comment.