|
Hi,
Please help resolve my questions. I have read almost all of the wiki and did a small search in the mailing list, but I am still unsure. My two questions: 1) How so I add more reports to sonar? For example, if I analyze some code with a javascript or ruby lint tool, how do I add the report to sonar? I can even convert the report to checkstyle's xml format if necessary. I have been looking for something similar to "sonar.phpCodesniffer.reportFileName=". For example: sonar.checkStyleFormat.reportFileName = [ "javscriptLint.convertedToCheckstyleFormat.xml", "javscriptIntegrationTest.convertedToCheckstyleFormat.xml", "rubyUnitTest.convertedToCheckstyleFormat.xml" ] Of course, a better solution is always appreciated. 2) How do I handle diverged builds of the same project? Developers will be creating builds for the same project, but one developer's code may not yet include the other developer's code because the developers are working simultaneously. Eventually, their code will be merged into the main repository. But, until then, their code mutually omits one another's code. Do I have to create a new project for each build? --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
Hi Adam,
How so I add more reports to sonar? For example, if I analyze some Regarding JavaScript, you should use the Sonar JavaScript Plugin and report any valuable checks that would not be implemented or implement them with XPath.
If you want to import violations from a Ruby Lint report, you need to implement your own plugin. How do I handle diverged builds of the same project? Developers will I guess that you're using an SCM to store your source code.
So there should be only one project to analyze with Sonar from this SCM. If you're working in a Java factory, to check local changes (before committing them), your developers could use the Sonar Eclipse Plugin.
If you're not working in a Java factory, you should ask your developers to commit frequently, so that they can check their code through the Sonar analysis that retrieve code from your SCM. You can also vote for the following JIRA ticket: http://jira.codehaus.org/browse/SONARIDE-101
Regards,
David RACODON | SonarSource
Senior Consultant On 4 August 2012 10:30, adam k <[hidden email]> wrote: Hi, |
|
Alternately, assuming each of your developers is working in a separate SCM branch & actually checking in already, you could differentiate their analyses using the sonar.branch analysis property (
http://docs.codehaus.org/display/SONAR/Analysis+Parameters )
--- G. Ann Campbell
Sr. Systems Engineer, IS Production Systems - Shop Floor Systems Shaw Industries Inc, 201 S. Hamilton St. Dalton Ga 30720 On Mon, Aug 6, 2012 at 4:24 AM, David Racodon <[hidden email]> wrote: Hi Adam, ****************************** Privileged and/or confidential information may be contained in this message. If you are not the addressee indicated in this message (or are not responsible for delivery of this message to that person) , you may not copy or deliver this message to anyone. In such case, you should destroy this message and notify the sender by reply e-mail. If you or your employer do not consent to Internet e-mail for messages of this kind, please advise the sender. Shaw Industries does not provide or endorse any opinions, conclusions or other information in this message that do not relate to the official business of the company or its subsidiaries. ****************************** |
|
Does the branch property have any special attributes? Or, is it just
another project? Would Sonar be capable of parsing defined reports from outside sources besides plugins? Users would define a parser which connects coding rules to their result in a report file. For example, a user defines a parser called "Javascript.Jasmine". The user chooses the XML format for the parser to parse. Then, the user creates a coding rule called "An Empty Function" with xpath expressions to the needed values in an XML report file: (The data xpath expressions would be entered into an input field of course) main object: //results/emptyFunction violation message: //results/emptyFunction/message violation lines: //results/emptyFunction/lines The XML report file is set in the sonar runner config: sonar.parserFormat.Javascript.Jasmine.reportFileName = "jasmineTesting.xml" After Jasmine finishes, sonar runner is triggered and reads the report including the report in the results. Parsing defined reports will allow much simpler and flexible integration with testing or any software that provides information about the code. On Mon, Aug 6, 2012 at 5:40 AM, Ann Campbell <[hidden email]> wrote: > Alternately, assuming each of your developers is working in a separate SCM > branch & actually checking in already, you could differentiate their > analyses using the sonar.branch analysis property ( > http://docs.codehaus.org/display/SONAR/Analysis+Parameters ) > > > --- > G. Ann Campbell > Sr. Systems Engineer, IS Production Systems - Shop Floor Systems > Shaw Industries Inc, > 201 S. Hamilton St. > Dalton Ga 30720 > > > > On Mon, Aug 6, 2012 at 4:24 AM, David Racodon > <[hidden email]> wrote: >> >> Hi Adam, >> >>> How so I add more reports to sonar? For example, if I analyze some >>> code with a javascript or ruby lint tool, how do I add the report to >>> sonar? >> >> >> Regarding JavaScript, you should use the Sonar JavaScript Plugin and >> report any valuable checks that would not be implemented or implement them >> with XPath. >> If you want to import violations from a Ruby Lint report, you need to >> implement your own plugin. >> >> >> >>> How do I handle diverged builds of the same project? Developers will >>> be creating builds for the same project, but one developer's code may >>> not yet include the other developer's code because the developers are >>> working simultaneously. Eventually, their code will be merged into the >>> main repository. But, until then, their code mutually omits one >>> another's code. Do I have to create a new project for each build? >> >> >> I guess that you're using an SCM to store your source code. >> So there should be only one project to analyze with Sonar from this SCM. >> >> If you're working in a Java factory, to check local changes (before >> committing them), your developers could use the Sonar Eclipse Plugin. >> If you're not working in a Java factory, you should ask your developers to >> commit frequently, so that they can check their code through the Sonar >> analysis that retrieve code from your SCM. You can also vote for the >> following JIRA ticket: http://jira.codehaus.org/browse/SONARIDE-101 >> >> Regards, >> >> David RACODON | SonarSource >> Senior Consultant >> http://sonarsource.com >> >> >> >> On 4 August 2012 10:30, adam k <[hidden email]> wrote: >>> >>> Hi, >>> >>> Please help resolve my questions. I have read almost all of the wiki >>> and did a small search in the mailing list, but I am still unsure. >>> >>> My two questions: >>> >>> 1) >>> How so I add more reports to sonar? For example, if I analyze some >>> code with a javascript or ruby lint tool, how do I add the report to >>> sonar? I can even convert the report to checkstyle's xml format if >>> necessary. I have been looking for something similar to >>> "sonar.phpCodesniffer.reportFileName=". For example: >>> >>> sonar.checkStyleFormat.reportFileName = [ >>> "javscriptLint.convertedToCheckstyleFormat.xml", >>> "javscriptIntegrationTest.convertedToCheckstyleFormat.xml", >>> "rubyUnitTest.convertedToCheckstyleFormat.xml" ] >>> >>> Of course, a better solution is always appreciated. >>> >>> 2) >>> How do I handle diverged builds of the same project? Developers will >>> be creating builds for the same project, but one developer's code may >>> not yet include the other developer's code because the developers are >>> working simultaneously. Eventually, their code will be merged into the >>> main repository. But, until then, their code mutually omits one >>> another's code. Do I have to create a new project for each build? >>> >>> --------------------------------------------------------------------- >>> To unsubscribe from this list, please visit: >>> >>> http://xircles.codehaus.org/manage_email >>> >>> >> > > > ********************************************************** > Privileged and/or confidential information may be contained in this message. > If you are not the addressee indicated in this message (or are not > responsible for delivery of this message to that person) , you may not copy > or deliver this message to anyone. In such case, you should destroy this > message and notify the sender by reply e-mail. > If you or your employer do not consent to Internet e-mail for messages of > this kind, please advise the sender. > Shaw Industries does not provide or endorse any opinions, conclusions or > other information in this message that do not relate to the official > business of the company or its subsidiaries. > ********************************************************** > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
Hi Adam,
Does the branch property have any special attributes? Or, is it just It just adds its value to the project key. So it's just another project. Parsing defined reports will allow much simpler and flexible Everything is feasible. But our motto is to avoid the usage of third-party tools whenever it's possible. So it is very unlikely that the plugin will go this way (not to say it will never go this way).
Why would you need such a feature? What would be missing in the plugin to make you get rid of third-party tools? Thank you Regards,
David RACODON | SonarSource
Senior Consultant On 8 August 2012 02:14, adam k <[hidden email]> wrote: Does the branch property have any special attributes? Or, is it just |
|
Sonar is already are utilizing 3rd party tools, like php_depends, ant,
maven, and php_unit. Sonar is integrating them through a plugin which is awesome. However, writing a plugin for every language and testing tool users wish to use with sonar is improbably and impracticable. So, sonar should serve as a parser, like, of XML, YAML, and JSON, to parse results from other tools where no plugin exists. Sonar may define the minimum required coding rules and allow the users to add more coding rules. This implementation of connecting coding rules to parsed results opens Sonar to almost every tool that is able to output it's results to a file. On Wed, Aug 8, 2012 at 2:33 AM, David Racodon <[hidden email]> wrote: > Hi Adam, > >> Does the branch property have any special attributes? Or, is it just >> another project? > > > It just adds its value to the project key. So it's just another project. > > >> Parsing defined reports will allow much simpler and flexible >> integration with testing or any software that provides information >> about the code. > > > Everything is feasible. > But our motto is to avoid the usage of third-party tools whenever it's > possible. So it is very unlikely that the plugin will go this way (not to > say it will never go this way). > > Why would you need such a feature? What would be missing in the plugin to > make you get rid of third-party tools? > > Thank you > > Regards, > > David RACODON | SonarSource > Senior Consultant > http://sonarsource.com > > > > On 8 August 2012 02:14, adam k <[hidden email]> wrote: >> >> Does the branch property have any special attributes? Or, is it just >> another project? >> >> Would Sonar be capable of parsing defined reports from outside sources >> besides plugins? >> >> Users would define a parser which connects coding rules to their >> result in a report file. For example, a user defines a parser called >> "Javascript.Jasmine". The user chooses the XML format for the parser >> to parse. Then, the user creates a coding rule called "An Empty >> Function" with xpath expressions to the needed values in an XML report >> file: >> >> (The data xpath expressions would be entered into an input field of >> course) >> main object: //results/emptyFunction >> violation message: //results/emptyFunction/message >> violation lines: //results/emptyFunction/lines >> >> The XML report file is set in the sonar runner config: >> sonar.parserFormat.Javascript.Jasmine.reportFileName = >> "jasmineTesting.xml" >> >> After Jasmine finishes, sonar runner is triggered and reads the >> report including the report in the results. >> >> Parsing defined reports will allow much simpler and flexible >> integration with testing or any software that provides information >> about the code. >> >> On Mon, Aug 6, 2012 at 5:40 AM, Ann Campbell <[hidden email]> >> wrote: >> > Alternately, assuming each of your developers is working in a separate >> > SCM >> > branch & actually checking in already, you could differentiate their >> > analyses using the sonar.branch analysis property ( >> > http://docs.codehaus.org/display/SONAR/Analysis+Parameters ) >> > >> > >> > --- >> > G. Ann Campbell >> > Sr. Systems Engineer, IS Production Systems - Shop Floor Systems >> > Shaw Industries Inc, >> > 201 S. Hamilton St. >> > Dalton Ga 30720 >> > >> > >> > >> > On Mon, Aug 6, 2012 at 4:24 AM, David Racodon >> > <[hidden email]> wrote: >> >> >> >> Hi Adam, >> >> >> >>> How so I add more reports to sonar? For example, if I analyze some >> >>> code with a javascript or ruby lint tool, how do I add the report to >> >>> sonar? >> >> >> >> >> >> Regarding JavaScript, you should use the Sonar JavaScript Plugin and >> >> report any valuable checks that would not be implemented or implement >> >> them >> >> with XPath. >> >> If you want to import violations from a Ruby Lint report, you need to >> >> implement your own plugin. >> >> >> >> >> >> >> >>> How do I handle diverged builds of the same project? Developers will >> >>> be creating builds for the same project, but one developer's code may >> >>> not yet include the other developer's code because the developers are >> >>> working simultaneously. Eventually, their code will be merged into the >> >>> main repository. But, until then, their code mutually omits one >> >>> another's code. Do I have to create a new project for each build? >> >> >> >> >> >> I guess that you're using an SCM to store your source code. >> >> So there should be only one project to analyze with Sonar from this >> >> SCM. >> >> >> >> If you're working in a Java factory, to check local changes (before >> >> committing them), your developers could use the Sonar Eclipse Plugin. >> >> If you're not working in a Java factory, you should ask your developers >> >> to >> >> commit frequently, so that they can check their code through the Sonar >> >> analysis that retrieve code from your SCM. You can also vote for the >> >> following JIRA ticket: http://jira.codehaus.org/browse/SONARIDE-101 >> >> >> >> Regards, >> >> >> >> David RACODON | SonarSource >> >> Senior Consultant >> >> http://sonarsource.com >> >> >> >> >> >> >> >> On 4 August 2012 10:30, adam k <[hidden email]> wrote: >> >>> >> >>> Hi, >> >>> >> >>> Please help resolve my questions. I have read almost all of the wiki >> >>> and did a small search in the mailing list, but I am still unsure. >> >>> >> >>> My two questions: >> >>> >> >>> 1) >> >>> How so I add more reports to sonar? For example, if I analyze some >> >>> code with a javascript or ruby lint tool, how do I add the report to >> >>> sonar? I can even convert the report to checkstyle's xml format if >> >>> necessary. I have been looking for something similar to >> >>> "sonar.phpCodesniffer.reportFileName=". For example: >> >>> >> >>> sonar.checkStyleFormat.reportFileName = [ >> >>> "javscriptLint.convertedToCheckstyleFormat.xml", >> >>> "javscriptIntegrationTest.convertedToCheckstyleFormat.xml", >> >>> "rubyUnitTest.convertedToCheckstyleFormat.xml" ] >> >>> >> >>> Of course, a better solution is always appreciated. >> >>> >> >>> 2) >> >>> How do I handle diverged builds of the same project? Developers will >> >>> be creating builds for the same project, but one developer's code may >> >>> not yet include the other developer's code because the developers are >> >>> working simultaneously. Eventually, their code will be merged into the >> >>> main repository. But, until then, their code mutually omits one >> >>> another's code. Do I have to create a new project for each build? >> >>> >> >>> --------------------------------------------------------------------- >> >>> To unsubscribe from this list, please visit: >> >>> >> >>> http://xircles.codehaus.org/manage_email >> >>> >> >>> >> >> >> > >> > >> > ********************************************************** >> > Privileged and/or confidential information may be contained in this >> > message. >> > If you are not the addressee indicated in this message (or are not >> > responsible for delivery of this message to that person) , you may not >> > copy >> > or deliver this message to anyone. In such case, you should destroy this >> > message and notify the sender by reply e-mail. >> > If you or your employer do not consent to Internet e-mail for messages >> > of >> > this kind, please advise the sender. >> > Shaw Industries does not provide or endorse any opinions, conclusions or >> > other information in this message that do not relate to the official >> > business of the company or its subsidiaries. >> > ********************************************************** >> > >> >> --------------------------------------------------------------------- >> To unsubscribe from this list, please visit: >> >> http://xircles.codehaus.org/manage_email >> >> > --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Powered by Nabble | Edit this page |
