Skip to content

Commit

Permalink
Fix invalid rubocop errors (#1896)
Browse files Browse the repository at this point in the history
When running ViewComponent in VSCode I started getting a ton of errors
from Rubocop despite the project using standardrb and requiring it in
the rubocop config.

This fixes the issue by using the `inherit_gem` option in the rubocop
config.
  • Loading branch information
BlakeWilliams authored Nov 10, 2023
1 parent 0820ce8 commit 13a4722
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require:
- standard
- "rubocop-md"
inherit_gem:
standard: config/base.yml
5 changes: 1 addition & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,6 @@ DEPENDENCIES
jbuilder (~> 2)
m (~> 1)
minitest (~> 5.18)
net-imap
net-pop
net-smtp
pry (~> 0.13)
puma (~> 6)
rails (~> 7.0.0)
Expand All @@ -353,4 +350,4 @@ DEPENDENCIES
yard-activesupport-concern (~> 0.0.1)

BUNDLED WITH
2.2.33
2.3.7

0 comments on commit 13a4722

Please sign in to comment.