无法解析 Rubymine 2019.3 中的 RuboCop 响应
Unable to parse RuboCop response in Rubymine 2019.3
Rubymine 报告它无法解析我项目中 rubocop 的输出。
当我点击详细信息 link 时,显示如下:
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 或更高版本,它就会修复。我自己测试过,可以确认。
Rubymine 报告它无法解析我项目中 rubocop 的输出。
当我点击详细信息 link 时,显示如下:
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 或更高版本,它就会修复。我自己测试过,可以确认。