1

Rubocop を実行すると、config フォルダーの下にあるすべての yml ファイルでこのエラーが発生します。

例:

config/database.yml:1:8: E: unexpected token tCOLON
(Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
default: &default
       ^
config/database.yml:2:10: E: unexpected token tCOLON
(Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
  adapter: postgresql
         ^
config/database.yml:3:11: E: unexpected token tCOLON
(Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
  encoding: unicode
          ^
config/database.yml:4:7: E: unexpected token tCOLON
(Using Ruby 2.1 parser; configure using TargetRubyVersion parameter, under AllCops)
  pool: 5
      ^

これは私のdatabase.ymlファイルです:

default: &default
  adapter: postgresql
  encoding: unicode
  pool: 5

development:
  <<: *default
  database: otimicar_development

test:
  <<: *default
  database: otimicar_test

どういう意味ですか?secrets.yml のような他のファイルも同じ種類のエラーを生成しています...

4

0 に答える 0