Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I'm writing a small Sonar Plugin for Abap Code. I alread have presented metrics in Sonar, and also have the source Code of some Abap Files in the Sonar Database (i checked it with a sql client). But now I really have no clue how could I present this source code with sonar. I already looked through the sonar source code and some sonar plugins (like the CXXPlugin https://github.com/SonarCommunity/sonar-cxx which also have the Function to output the source Code), but I didn't get smarter. Is there an easy way how to present source code with the sonar api? Is there any kind of SourceViewer part of the Sonar Core (https://github.com/SonarSource/sonar).

Best Regards and thanks in advanced

share|improve this question
Sorry I can'T help you with your Sonar issue - but I'm curious: What is it you're trying to accomplish at all? – vwegert Apr 23 at 6:36

1 Answer

You can take a look at some of our open-source language plugins that we develop for Sonar. For instance, you can go and see the Javascript plugin - which is probably a better option that the CXX plugin that is not developed by us and there that may not fully comply with our conventions and coding best-practices & guidelines.

To sum up:

share|improve this answer
thanks a lot, this propably will help me a lot. the sourceimporter is already part of my plugin but I will take a closer look to the colorizer plugin now. – Veilchen4ever Apr 23 at 8:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.