You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Sean Busbey (JIRA)" <ji...@apache.org> on 2018/09/06 04:57:00 UTC
[jira] [Comment Edited] (HBASE-18956) ruby-lint need to be
configured to understand that we're using jruby
[ https://issues.apache.org/jira/browse/HBASE-18956?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16605267#comment-16605267 ]
Sean Busbey edited comment on HBASE-18956 at 9/6/18 4:56 AM:
-------------------------------------------------------------
ugh. looks like even though ruby-lint supports jruby it doesn't have anything to handle the jruby java bridge stuff. To do this we'd need to make a ruby-lint definition file:
http://code.yorickpeterse.com/ruby-lint/latest/file.definitions.html
and then add that definition via a {{ruby-lint.yml}} configuration file:
http://code.yorickpeterse.com/ruby-lint/latest/file.configuration.html#requires
was (Author: busbey):
ugh. looks like even though ruby-lint support jruby it doesn't have anything to handle the jruby java bridge stuff. To do this we'd need to make a ruby-lint definition file:
http://code.yorickpeterse.com/ruby-lint/latest/file.definitions.html
and then add that definition via a {{ruby-lint.yml}} configuration file:
http://code.yorickpeterse.com/ruby-lint/latest/file.configuration.html#requires
> ruby-lint need to be configured to understand that we're using jruby
> --------------------------------------------------------------------
>
> Key: HBASE-18956
> URL: https://issues.apache.org/jira/browse/HBASE-18956
> Project: HBase
> Issue Type: Sub-task
> Reporter: Guanghao Zhang
> Priority: Major
>
> In HBASE-18909, I add a new java_import for admin.rb. But the ruby-lint report "undefined method java_import".
> {code}
> /testptch/hbase/hbase-shell/src/main/ruby/hbase/admin.rb:E:22:13: undefined method java
> /testptch/hbase/hbase-shell/src/main/ruby/hbase/admin.rb:E:23:1: undefined method java_import
> /testptch/hbase/hbase-shell/src/main/ruby/hbase/admin.rb:E:49:29: undefined constant Pattern
> /testptch/hbase/hbase-shell/src/main/ruby/hbase/admin.rb:E:273:27: undefined constant Pattern
> /testptch/hbase/hbase-shell/src/main/ruby/hbase/admin.rb:E:287:17: undefined constant Pattern
> /testptch/hbase/hbase-shell/src/main/ruby/hbase/admin.rb:E:317:17: undefined constant Pattern
> /testptch/hbase/hbase-shell/src/main/ruby/hbase/admin.rb:E:1009:30: undefined constant Pattern
> /testptch/hbase/hbase-shell/src/main/ruby/hbase/admin.rb:E:1015:35: undefined constant Pattern
> /testptch/hbase/hbase-shell/src/main/ruby/hbase/admin.rb:E:1016:9: undefined constant Pattern
> /testptch/hbase/hbase-shell/src/main/ruby/hbase/admin.rb:E:1022:28: undefined constant Pattern
> /testptch/hbase/hbase-shell/src/main/ruby/hbase/admin.rb:E:1028:33: undefined constant Pattern
> /testptch/hbase/hbase-shell/src/main/ruby/hbase/admin.rb:E:1029:9: undefined constant Pattern
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)