Skip to content

Commit

Permalink
Add ERB linting- 1661 errors found
Browse files Browse the repository at this point in the history
  • Loading branch information
compwron committed Aug 20, 2020
1 parent 10a0dc4 commit 3f9f729
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .erb-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
EnableDefaultLinters: true
linters:
ErbSafety:
enabled: true
Rubocop:
enabled: true
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ end

group :development do
gem "annotate" # for adding db field listings to models as comments
gem 'erb_lint', require: false
gem "letter_opener" # Opens emails in new tab for easier testing
gem "listen", ">= 3.0.5", "< 3.3"
gem "mailcatcher"
Expand Down
18 changes: 18 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,14 @@ GEM
execjs
awesome_print (1.8.0)
bcrypt (3.1.15)
better_html (1.0.15)
actionview (>= 4.0)
activesupport (>= 4.0)
ast (~> 2.0)
erubi (~> 1.4)
html_tokenizer (~> 0.0.6)
parser (>= 2.4)
smart_properties
bindex (0.8.1)
bootsnap (1.4.8)
msgpack (~> 1.0)
Expand Down Expand Up @@ -115,6 +123,13 @@ GEM
activemodel-serializers-xml (>= 1.0)
activesupport (>= 5.0)
request_store (>= 1.0)
erb_lint (0.0.34)
activesupport
better_html (~> 1.0.7)
html_tokenizer
rainbow
rubocop (~> 0.79)
smart_properties
erubi (1.9.0)
eventmachine (1.2.7)
eventmachine (1.2.7-x64-mingw32)
Expand All @@ -135,6 +150,7 @@ GEM
haml (5.1.2)
temple (>= 0.8.0)
tilt
html_tokenizer (0.0.7)
i18n (1.8.5)
concurrent-ruby (~> 1.0)
jbuilder (2.10.0)
Expand Down Expand Up @@ -320,6 +336,7 @@ GEM
skylight-core (= 4.3.1)
skylight-core (4.3.1)
activesupport (>= 4.2.0)
smart_properties (1.15.0)
spring (2.1.0)
spring-watcher-listen (2.0.1)
listen (>= 2.7, < 4.0)
Expand Down Expand Up @@ -394,6 +411,7 @@ DEPENDENCIES
devise
devise_invitable
draper
erb_lint
factory_bot_rails
faker
font-awesome-rails
Expand Down

0 comments on commit 3f9f729

Please sign in to comment.