Rubymine报告说,它无法解析我项目中rubocop的输出。
当我单击详细信息链接时,它显示的是:
Error:Bundle complete! 13 Gemfile dependencies, 68 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
{"metadata":{"rubocop_version":"0.80.1","ruby_engine":"ruby","ruby_version":"2.6.3","ruby_patchlevel":"62","ruby_platform":"x86_64-darwin18"},"files":[{"path":"db/seeds.rb","offenses":[{"severity":"convention","message":"Missing frozen string literal comment.","cop_name":"Style/FrozenStringLiteralComment","corrected":false,"correctable":true,"location":{"start_line":1,"start_column":1,"last_line":1,"last_column":1,"length":1,"line":1,"column":1}},{"severity":"convention","message":"Line is too long. [103/80]","cop_name":"Layout/LineLength","corrected":false,"correctable":true,"location":{"start_line":1,"start_column":81,"last_line":1,"last_column":103,"length":23,"line":1,"column":81}},{"severity":"convention","message":"Line is too long. [111/80]","cop_name":"Layout/LineLength","corrected":false,"correctable":true,"location":{"start_line":2,"start_column":81,"last_line":2 ...
我假设问题与JSON之外还与解析的额外捆绑程序输出有关。关于如何解决此问题的任何想法?
有人说,如果将Rubocop升级到0.88或更高版本,它会修复。我对自己进行了测试,可以确认。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句