[Gems] Add rubocop-erb

This commit is contained in:
Earlopain 2023-02-23 13:22:26 +01:00
parent f00e781b3b
commit 3553987b6d
No known key found for this signature in database
GPG Key ID: 6CFB948E15246897
4 changed files with 526 additions and 44 deletions

View File

@ -1,11 +1,14 @@
<% if ENV["CI"] %> <% if ENV["CI"] %>
inherit_from: .rubocop_todo.yml inherit_from: .rubocop_todo.yml
<% end %>
inherit_mode: inherit_mode:
merge: merge:
- Exclude - Exclude
<% end %> - Include
require: require:
- rubocop-erb
- rubocop-rails - rubocop-rails
AllCops: AllCops:
@ -13,6 +16,7 @@ AllCops:
Exclude: Exclude:
- bin/* - bin/*
- node_modules/**/* - node_modules/**/*
- lib/templates/erb/scaffold/_form.html.erb # TODO: rubocop-erb chokes on this
Bundler/OrderedGems: Bundler/OrderedGems:
Enabled: false Enabled: false

File diff suppressed because it is too large Load Diff

View File

@ -53,6 +53,7 @@ end
group :docker do group :docker do
gem "rubocop", require: false gem "rubocop", require: false
gem "rubocop-erb", require: false
gem "rubocop-rails", require: false gem "rubocop-rails", require: false
gem "solargraph", require: false gem "solargraph", require: false
end end

View File

@ -89,6 +89,13 @@ GEM
backport (1.2.0) backport (1.2.0)
bcrypt (3.1.18) bcrypt (3.1.18)
benchmark (0.2.0) benchmark (0.2.0)
better_html (2.0.1)
actionview (>= 6.0)
activesupport (>= 6.0)
ast (~> 2.0)
erubi (~> 1.4)
parser (>= 2.4)
smart_properties
bootsnap (1.13.0) bootsnap (1.13.0)
msgpack (~> 1.2) msgpack (~> 1.2)
brpoplpush-redis_script (0.1.2) brpoplpush-redis_script (0.1.2)
@ -306,6 +313,9 @@ GEM
unicode-display_width (>= 2.4.0, < 3.0) unicode-display_width (>= 2.4.0, < 3.0)
rubocop-ast (1.26.0) rubocop-ast (1.26.0)
parser (>= 3.2.1.0) parser (>= 3.2.1.0)
rubocop-erb (0.2.3)
better_html
rubocop (~> 1.45)
rubocop-rails (2.17.4) rubocop-rails (2.17.4)
activesupport (>= 4.2.0) activesupport (>= 4.2.0)
rack (>= 1.1) rack (>= 1.1)
@ -330,6 +340,7 @@ GEM
simple_form (5.1.0) simple_form (5.1.0)
actionpack (>= 5.2) actionpack (>= 5.2)
activemodel (>= 5.2) activemodel (>= 5.2)
smart_properties (1.17.0)
solargraph (0.47.2) solargraph (0.47.2)
backport (~> 1.2) backport (~> 1.2)
benchmark benchmark
@ -414,6 +425,7 @@ DEPENDENCIES
responders responders
retriable retriable
rubocop rubocop
rubocop-erb
rubocop-rails rubocop-rails
ruby-vips ruby-vips
shoulda-context shoulda-context