Groovy Syntax checking for Groovy

78 views
Skip to first unread message

POOJA MANE

unread,
Jul 20, 2018, 2:39:53 PM7/20/18
to Ajax.org Cloud9 Editor (Ace)
Hello,

I am trying to introduce syntax checking for Groovy; as JSHINT is used in Javascript. I came across a static analysis tool for syntax checking in Groovy.. How do I use it with Ace editor

Harutyun Amirjanyan

unread,
Jul 23, 2018, 5:50:06 PM7/23/18
to ace-d...@googlegroups.com
Hi
if the tool can run in browser, you need to write a function similar to https://github.com/ajaxorg/ace/blob/master/lib/ace/mode/lua_worker.js#L47 to convert errors into the format that ace can use.

POOJA MANE

unread,
Jul 24, 2018, 12:37:27 PM7/24/18
to ace-d...@googlegroups.com
Hello Harutyun,

Thank you for your reply.

According to my understanding, first I will need a syntax checker for groovy (similar to luaparse used in the code in the above link). Please correct me if I am wrong.

Appreciate your help.

Regards,
Pooja

On 23 July 2018 at 17:49, Harutyun Amirjanyan <amirj...@gmail.com> wrote:
Hi
if the tool can run in browser, you need to write a function similar to https://github.com/ajaxorg/ace/blob/master/lib/ace/mode/lua_worker.js#L47 to convert errors into the format that ace can use.

--
You received this message because you are subscribed to the Google Groups "Ajax.org Cloud9 Editor (Ace)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ace-discuss+unsubscribe@googlegroups.com.
To post to this group, send email to ace-d...@googlegroups.com.
Visit this group at https://groups.google.com/group/ace-discuss.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages