rails newしたサンプルアプリで
bundle exec rubocop --auto-correct
した際に
297 files inspected, 758 offenses detected, 2 offenses corrected
Infinite loop detected in /Users/*******と出てしまい、先に進めません。
[バージョン]
ruby 2.4.1
Rails 5.1.3
Rubocop 0.59.0
アプリのルートには
.rubocop.yml
.rubocop_todo.yml(なにも記載なし)
yml
1inherit_from: .rubocop_todo.yml 2 3AllCops: 4 Exclude: 5 - db/**/* 6 7# classやmoduleの先頭コメント 8Documentation: 9 Enabled: false 10 11# 行長 12Metrics/LineLength: 13 Max: 120 14 15# ブロック内の行数 16Metrics/BlockLength: 17 Exclude: 18 - spec/**/* 19 - config/**/* 20 21# 日本語でのコメント 22Style/AsciiComments: 23 Enabled: false 24
と記載してあります。
gemfileは
# frozen_string_literal: true source 'https://rubygems.org' git_source(:github) do |repo_name| repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?('/') "https://github.com/#{repo_name}.git" end # base gem 'rails', '5.1.3' gem 'therubyracer', platforms: :ruby, github: 'cowboyd/therubyracer' # database gem 'mysql2', '>= 0.3.18', '< 0.5' # server gem 'puma', '~> 3.7' # view gem 'bootstrap', '~> 4.0.0.beta' gem 'jquery-rails' gem 'popper_js', '~> 1.11.1' gem 'sass-rails', '~> 5.0' gem 'tether-rails' gem 'turbolinks', '~> 5' gem 'uglifier', '>= 1.3.0' group :development, :test do gem 'byebug', platforms: %i[mri mingw x64_mingw] end group :test do gem 'database_cleaner' gem 'factory_girl_rails' gem 'rspec-rails' end group :development do # Access an IRB console on exception pages or by using <%= console %> anywhere in the code. gem 'annotate' gem 'better_errors' gem 'binding_of_caller' gem 'listen', '>= 3.0.5', '< 3.2' gem 'overcommit' gem 'pry-byebug' gem 'pry-rails' gem 'rubocop' gem 'spring' gem 'spring-watcher-listen', '~> 2.0.0' gem 'web-console', '>= 3.3.0' end # Windows does not include zoneinfo files, so bundle the tzinfo-data gem gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby]
です。
解決方法をご教示頂ければ幸いです。
それでは宜しくお願いいたします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/09/26 00:01 編集
2018/09/26 00:15