Lua Plugin

297 views
Skip to first unread message

Fati Ahmadi

unread,
Jun 25, 2016, 3:38:56 AM6/25/16
to SonarQube
Hello SonarTeam,

I am starting to work on Lua  as a new extension for Sonar.  I need some information, is there some to help me with my question?

Thanks,
Fati


G. Ann Campbell

unread,
Jun 28, 2016, 9:53:44 AM6/28/16
to SonarQube
Hi Fati,

If you mean "is there a SonarQube plugin for Lua analysis?" the answer is "no" AFAIK.


Ann

G. Ann Campbell

unread,
Jun 30, 2016, 7:59:30 AM6/30/16
to Fati Ahmadi, SonarQube
Hi Fati,

Please include the group in your replies. Others may be interested in or benefit from the evolution of the conversation. :-)

To respond to your specific points: 


On Wed, Jun 29, 2016 at 4:45 PM, Fati Ahmadi <fati.a...@gmail.com> wrote:
Hello Anne, 

Thanks for response. I am building the Lua's plug-in  element base on the grammar which is built by your colleagues the link hier below:


Ah!

I was not aware of that repository, but the fact that it's in the SonarCommunity group indicates that we have no interest in maintaining it, and would welcome a member of the community taking it over.

 
 Could you pls tell me what is the procedure? Am i allowed to use this grammar  Where would i push the element in Github, to the same link where the grammar is located?

If you'd like to take over maintenance of this repository, send me your GitHub ID and we'll grant you the permissions you need. 
 

The grammar has been built 3 years a go, is there any reason that the grammar is not used to built the Plug-in  for Lua.
I am just wondering whether there is special reason that  there is nothing  happend with this grammar?. Because this is  built almost 3 years ago. Is there any reason?

At a guess, someone was bored on the weekend & played around with this, then lost interest. There's no reason for you not to build on this work if you want to.
 
If you choose to continue work on this, feel free to come back to this group with specific questions in new threads.

Thanks,

Fati


:-)
Ann

---
G. Ann CAMPBELL | SonarSource
Product Owner

Fati Ahmadi

unread,
Jul 1, 2016, 6:04:13 AM7/1/16
to G. Ann Campbell, sona...@googlegroups.com
Hi Ann,

It would be great if you could arragnge the permission for me. My git id : 
Fatiahmadi

...........................
Some other questions:). 

As template i am looking at the Sonar-python. Is there any suggestions? :)

I am also looking for  more information about difference between " lexerfulGrammarBuilder "which is used in python and "LexerlesGrammarBuilder" which is used in Lus.?
Using  lexerfulGrammarBuilder  is the reason for no tree anymore  in python?
.......................................


Thanks,
Fati

G. Ann Campbell

unread,
Jul 1, 2016, 7:34:45 AM7/1/16
to Fati Ahmadi, SonarQube
Hi Fati,




On Fri, Jul 1, 2016 at 6:04 AM, Fati Ahmadi <fati.a...@gmail.com> wrote:
Hi Ann,

It would be great if you could arragnge the permission for me. My git id : 
Fatiahmadi

requested...
 
...........................
Some other questions:). 

As template i am looking at the Sonar-python. Is there any suggestions? :)

I am also looking for  more information about difference between " lexerfulGrammarBuilder "which is used in python and "LexerlesGrammarBuilder" which is used in Lus.?
Using  lexerfulGrammarBuilder  is the reason for no tree anymore  in python?
.......................................

Your best course with these is to open new threads with specific questions.

I'll let you know when the perms have been granted.

Nicolas Peru

unread,
Jul 4, 2016, 3:28:34 AM7/4/16
to G. Ann Campbell, Fati Ahmadi, SonarQube
Hi, 

In fact, there was some experimental work done by Evgeny to have a parser of LUA done on SSLR : https://github.com/SonarQubeCommunity/sonar-lua 

You're free to take some inspiration, or reuse the code if you want. 

Cheers, 


--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/sonarqube/CAEi9rU%2BB3pkSn245LEP7QULkjOxw4g3QXTUxS%2BuqADUi5167vg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
Nicolas PERU | SonarSource
Senior Developer
http://sonarsource.com

Nicolas Peru

unread,
Jul 4, 2016, 3:29:13 AM7/4/16
to G. Ann Campbell, Fati Ahmadi, SonarQube

G. Ann Campbell

unread,
Jul 7, 2016, 9:40:47 AM7/7/16
to SonarQube, fati.a...@gmail.com
Hi Fati,

You should have these permissions now. 


:-)
Ann

Fabrice Bellingard

unread,
Jul 22, 2016, 11:23:21 AM7/22/16
to fati.a...@gmail.com, SonarQube
Hi Fati,

as you are now the maintainer of this project, do you want to manage it on SonarQube.com? (https://sonarqube.com/overview?id=org.codehaus.sonar-plugins.lua%3Alua)


Best regards,

Fabrice BELLINGARD | SonarSource
SonarQube & SonarLint Product Manager
http://sonarsource.com

--
You received this message because you are subscribed to the Google Groups "SonarQube" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sonarqube+...@googlegroups.com.

toph...@gmail.com

unread,
Oct 21, 2016, 5:46:03 PM10/21/16
to SonarQube, ann.ca...@sonarsource.com
Hello Fati,

I'm very interested in your work on the project.  I've cloned the project, and it looks like there is quite a bit done.  Do you have it working? I tried to install the plugin in Sonar 6.1, but it fails on startup with an error:  org.sonar.server.exceptions.BadRequestException: Rule template can't be activated on a Quality profile: lua:XPath.

Thanks and kind regards,
Chris Justice

Fati Ahmadi

unread,
Oct 24, 2016, 2:04:22 PM10/24/16
to SonarQube, ann.ca...@sonarsource.com, toph...@gmail.com

Hi Chris,


Thanks for the message.  The lua plugin is working fine with sonar 6.1. I have updated the git last night. Would you please try it again? If there is any installation issues? 

 

Many thanks,


 Fati


Op vrijdag 21 oktober 2016 23:46:03 UTC+2 schreef toph...@gmail.com:
Reply all
Reply to author
Forward
0 new messages