SonarQube 6.2 - Export issues - sonarqube

I am using the latest SonarQube 6.2.
They have moved out the reporting module into a commercial governance module.
Now I cannot find any way to export the issues into some report, or filter the issues based on set of classes.
The File filter provided on Issues page, is not providing the full list of files, nor does it have any search option to filter the issues based on a given file name.
My basic need is to filter and view the issues for a given file. Is there any way of doing this?

Use the WS api/issues/search and give the componentKeys parameter

Related

Adding a sample Form in Kibana

I would like to create a sample Form in Kibana (version 6.3) to add data to elasticsearch. Is there an example or link which I can follow it to create my UI in first step and loading data to elasticsearch in second step?
Thanks for advance ^^
Kibana itself is not meant for data manipulation - it is a discoverability and visualisation tool. You can edit saved search objects, but even Kibana itself discourages it. The following is a copy/paste from the Search Objects interface:
Typically objects are only modified via their associated application, which is probably what you should use instead of this screen
My suggestion would be to create a simple web app using something like Flask or Padrino, depending on which language you are most comfortable with. For example, this is how to build a form in Flask. You can use the elasticsearch Python module to record data in the index.
After a lot of researchs, I found this two links 1 & 2 (the best documentation I found) to create a plugin with Forms and interaction with Elasticsearch.
Thanks :)

How can I pull the right loc information from Sonar?

Sonar reports the lines of code iformation for each language on each project's dashboard.
In order to create a report from 70+ projects, we use THE Sonar's REST API. Currently we iterate over all files of a project to retrieve each file's lines of code. Here we run into the limits issue (the result is cut off at 500 entries, there is no paging on the REST API). See SonarQube API result limit, and https://jira.sonarsource.com/browse/SONAR-2920.
Hence the pulled numbers are wrong, and we need to manually fix the report.
Now my question: Is there a way to pull the numbers shown on the project's dashboard through the REST API? Or going to the database? (Sure, not ideal, but I need to solve my problem ;-)
Thanks in advance.
Why do you want to go through each file to compute the projects' lines of code ?
Why not use the api/resources WS ?
documentation
example
HTH

Resource Filtering with Maven Site Plugin

I'm using the maven site plugin to create and deploy a site of documentation and resources. There are some javascript files that I would like to filter based on what profile is being used. Problem is, I can't figure out how to get the filtering to work. Has anyone come across this?
I'm using Maven 3 and my resources are all in /src/site/resources which automagically get copied to /target/site by the site plugin.
Thanks!
The simplest solution is to name the files you would like to filter as: filename.vm which identifies them as velocity macro files which will be filtered automatically.

Custom fields in Sonar

I've looked at Sonar for a way to include custom fields for grouping/filtering data on-the-fly, including at addon extension points, but haven't seen anything that meets my criteria.
For example, for a multi-team project where all teams share the same repository project, I'd like to be able to filter the standard reports for single teams (encoding the team data for instance in a custom java annotation).
Is this possible? If so, how?
According to this discussion on the mailinglist: http://thread.gmane.org/gmane.comp.java.sonar.general/10059 ... http://thread.gmane.org/gmane.comp.java.sonar.general/10073
It is not possibile to have group-specific dashboards/reports/views. The only thing supported right now are filters.
I'm not aware of any custom solution.

google opensearch plugin ajax drop down

I am making an opensearch plugin to be used as a search engine provider in the browser.
http://library.curtin.edu.au/services/toolbar/#searchPlugin
As there is no way to specify any ajax call in the xml file,
How do I make a drop down box populated with search suggestions?
Many thanks
Firefox supports extensions on the OpenSearch Search Engine Plugin format including the ability to indicating a type of application/x-suggestions+json which is used to specify the URL to use for fetching search suggestions.
See https://developer.mozilla.org/en/creating_opensearch_plugins_for_firefox.
For lots of examples see http://mycroft.mozdev.org/index.html.

Resources