From: ko1@... Date: 2018-07-26T06:25:47+00:00 Subject: [ruby-core:88118] [Ruby trunk Feature#14938] Provide API to get same result as ruby -wc Issue #14938 has been updated by ko1 (Koichi Sasada). Good idea. Do you have an idea about API and implementation? Maybe parse.y should be modified (== difficult). ---------------------------------------- Feature #14938: Provide API to get same result as ruby -wc https://bugs.ruby-lang.org/issues/14938#change-73140 * Author: mtsmfm (Fumiaki Matsushima) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- I'm the author of an implementation of Ruby Language Server. Currently, it uses `RubyVM::InstructionSequence.compile` to get the result of `ruby -wc` and parses message and location by regexp. https://github.com/mtsmfm/language_server-ruby/blob/v0.11.0/lib/language_server/linter/ruby_wc.rb#L30 Do you have any plan to provide API? -- https://bugs.ruby-lang.org/ Unsubscribe: