0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Unable to find gem rubocop-discourse; is the gem installed? Gem::MissingSpecError

Posted at

背景

Railsプロジェクトの下にCloud Run Functionsのコードを置いておくことにした。そうしたら、rubocopを走らせる時に、以下のエラーが発生した

 rubocop .
Unable to find gem rubocop-discourse; is the gem installed? Gem::MissingSpecError

問題

Cloud Run Functionsの下のvendorをrubocopの対象から外さないと↑のエラーが発生するようです。

対応

vim .rubocop.yml
AllCops:
   TargetRubyVersion: 3.2
   Exclude:
     - cloud_run_functions/function_name/vendor/**/*
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?