Sonar - reporting on most actively edited files? - sonarqube

I'd like to create a report in Sonar for the most actively edited files. I've looked around but can't find a plugin to do this. Any suggestions would be appreciated.
If relevant, my team uses AccuRev for SCM, and Sonar v2.14
Thanks in advance

Unfortunately, there's currently no plugin that meets your need (at least none that I'm aware of).
I could have suggested you to develop your own plugin based on the metrics generated by the SCM Activity Plugin, but Accurev is not supported so you would have to start from scratch :-/

Related

tslint-eslint-rules with SonarQube?

I am quite new with tslint-eslint-rules and I am planning to use this in my project . But moving forward I have to use this as a plugin in SonarQube(which is also quite new to me) as well . I know that Sonar provides TS plugin but is it possible to use tslint-eslint-rules(or any linting) instead of using Sonar provided plugin?
I have gone through this link and it says I can create my own plugin like this. I am scratching my head as I am not sure if this is the solution I am looking for.
Can someone please help me out here.
I'm using https://github.com/SonarSource/SonarTS and I can recommend it for 100%. Nice think is you don't have to install sonar, you just add it as plugin to tslint.

How to look like Sonar Online Dashboard?

I see a big difference in the look & feel between the online dashboard (https://sonarqube.com/projects or https://sonarqube.com/governance?id=MASTER_PROJECT) and the one that we see by default on our local installation of sonar (v5.6.3).
I'm wondering about whether the online look & feel can in someway be easily applied to a local installation. It's just a matter of css/js or behind we have also a completely different HTML structure?
Any information about this will be much appreciated.
I think I've found the answer to my question. The nice-looking online demo is based on an Enterprise Grade deployment of sonar with the governance plugin.
https://www.sonarsource.com/why-us/products/plugins/governance.html
https://www.sonarsource.com/solutions/deployments/enterprise-grade/
Can't you update your install to the latest version? There have been UI changes in both version 6.0 and 6.1
http://www.sonarqube.org/sonarqube-6-0-in-screenshots/
http://www.sonarqube.org/sonarqube-6-1-in-screenshots/

Sum of metrics over all Sonar projects ?

Is there any way to aggregate metrics over all projects in Sonar ? For instance, is it possible to get the total number of SLOC ?
It seems that it should be a basic feature of Sonar.
I know about the Views plugin, but I'm looking for something free. And I don't need all the features of this plugin, only aggregates over all projects, not custom views.
Since I haven't been able to find anything, I have developed a very simple Sonar plugin that does the trick using the API provided by the Sonar server. Turned out to be pretty simple.
The plugin is available here, but it has been only tested on one Sonar instance.

Eclipse sonar plugin vs findbugs+pmd+checkstyle eclipe plugins

We are trying to install a CI Platform with (Jenkins,sonar,eclipse ...).
So that every developer can make analysis on his code before commit, I'm wondering between two alternatives :
running local analysis with the sonar plugin.
install the different plugins that sonar use (findbug,pmd,checkstyle ...) and configure them to meet the sonar configuration.
I'm not sure which alternative to use? I used to work with findbugs,pmd, checkstyle in eclipse and they look great.
Can you tell me which is the best alternative?
Thanks in advance.
Regards.
With Sonar plugin you can manage the violations like:
Create a review
Mark a violations as false positive or fixed
View the hot classes and hot violations
View yours reviews
If you use separate plugins you have to go sonar web to do that.
The great advance of sonar is the reviews.
Other question is how many projects you have and will have. I currently work with more than 70 projects and many profiles. Is more simple to me run analysis with one plugin, because I need just add the server and find the project. With other plugin you need add the link for each project in each plugin configuration.
Why not install the Sonar Eclipse plugin?
This was designed to solve the following problems:
Sonar does not support parallel analysis of the same project. This issue rules out the option of each developer running Sonar locally. (See SONAR-2761, SONAR-3306)
You don't really want developers uploading metrics and source code into the Sonar database. They could be working on an uncommitted workspace and would therefore cause both inaccuracies and confusion if Sonar is being used for code review.
Sonar is really designed to be run from a continuous integration server (like Jenkins), building code that has been submitted onto a shared codestream (or branch)
The big advantages of using the Eclipse plugin are:
True local analysis, no updates of the Sonar database
Configuration of the other tools is retrieved from the Sonar server and jars automatically downloaded.
Centralized management of Sonar quality profiles

TeamCity and JIRA?

Is it possible for TeamCity to integrate to JIRA like how Bamboo integrates to JIRA? I couldnt find any documentation on JetBrains website that talks about issue-tracker integration.
FYI: I heard that TeamCity is coming out with their own tracker called Charisma. Is that true?
TeamCity 5 EAP has support for showing issues from Jira on the tabs of your build.
EAP Release Notes
you still don't have the integration in Jira itself which I would prefer
There is this plugin
https://marketplace.atlassian.com/plugins/com.stiltsoft.jira.teamcity
TeamCity does not have extensive integration with JIRA as Bamboo does, and I am not aware of a plugin that provides it. TeamCity does however, offer a generic integration option to external sites which can be used for basic JIRA integration.
From their documentation:
TeamCity allows to map patterns in VCS change comments to arbitrary HTML pieces using regular expression search and replace patterns. One of the most common usages is to map an issue ID mentioning into a hyperlink to the issue page in the issue tracking system.
Read more here: Mapping External Links in Comments
I haven't set this up yet on our local TeamCity, so I can't testify as to how well it works.
Yes, they are comming out with their own issue tracker.
Read more in this blogpost:
first eap for jetbrains issue tracker Charisma
you can try it here Charisma
and here you can see video for some of the features
you can download the EAP version from here
Charisma EAP download
TeamCity does have a free plugin for Atlassian Confluence. Its provides a nice way to show your build status on your wiki.
You can find it in the Atlassian marketplace:
https://marketplace.atlassian.com/plugins/com.stiltsoft.confluence.extra.confluence-teamcity-plugin
TeamCity has 3 build in Issue Tracking Systems:
1.BugZilla
2.JIRA
3.YouTrack
And there's a way to install the custom plugin for other ITS.
I did an integration with FogBugz issue tracking system with TeamCity 9.x.
https://github.com/jozefizso/teamcity-fogbugz

Resources