sonarqube

sonarqube missing project dashboard

柔情痞子 提交于 2019-12-09 16:18:01
问题 I have SonarQube 6.1. When I click on a project entry from the main dashboards projects widget, I get to a project home page where it says "quality gate passed" and where some issues are listed ('Bugs', 'Vulnerabilities', 'Code smells' and 'Duplications'). On the left side, close to the top, below the project name, there is a "home" icon and to the right it says 'Issuses', 'Measures', 'Code' and 'Administration'. When I tried to get to a project dashboard - similar to the main dashboard, but

Is there something equivalent to Sonar for Perl? [closed]

↘锁芯ラ 提交于 2019-12-09 15:58:59
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Is there something equivalent to Sonar for Perl ? 回答1: Smolder is a continuous integration framework that runs smoke tests and produces coverage reports, stats, and nice graphs. It accepts TAP input, so anything that can provide this can be plugged in. You can use the various TAP modules to provide integration

Sonar complaining about logging and rethrowing the exception

落爺英雄遲暮 提交于 2019-12-09 14:45:39
问题 I have the following piece of code in my program and I am running SonarQube 5 for code quality check on it after integrating it with Maven. However, Sonar is complaining that I should Either log or rethrow this exception . What am I missing here? Am I not already logging the exception? private boolean authenticate(User user) { boolean validUser = false; int validUserCount = 0; try { DataSource dataSource = (DataSource) getServletContext().getAttribute("dataSource"); validUserCount = new

Sonar Maven Plugin: How do I exclude test source directories?

送分小仙女□ 提交于 2019-12-09 14:33:02
问题 I have a Maven project with Java sources and Scala test sources. I generate code coverage using Jacoco during the verify stage. When I try to run the sonar goal either during the verify phase by adding an execution, or by running mvn verify sonar:sonar , I end up with the test directory being added twice by Sonar: [INFO] [11:15:34.756] Test directories: [INFO] [11:15:34.756] /Users/xxx/Documents/workspace/misc/xxx/src/test/scala [INFO] [11:15:34.756] /Users/xxx/Documents/workspace/misc/xxx

SONARQUBE lcov import error - Could not resolve 1 file paths

北城余情 提交于 2019-12-09 12:58:18
问题 I am getting the below error whenever I try to import lcov report in to SONAR 15:00:17.230 WARN: Could not resolve 1 file paths in [/opt/app/workload/jenkins_25172/data/jobs/DEV02/workspace/coverage/lcov.info], first unresolved path: /opt/app/workload/jenkins_25172/data/jobs/DEV02/workspace/common/actions/actionCreators.js SONAR properties: sonar.login=** sonar.password=** sonar.verbose=true sonar.language=js sonar.sources=. sonar.projectBaseDir=/opt/app/workload/jenkins_25172/data/jobs/DEV02

sonarqube 搭建

安稳与你 提交于 2019-12-09 12:21:41
docker run --name postgresql -p 5432:5432 -e POSTGRES_USER=sonar -e POSTGRES_PASSWORD=sonar -e POSTGRE_DB=sonar -d 587aa1d0e586 docker run --name sonarqube --link postgresql -e SONARQUBE_JDBC_URL=jdbc:postgresql://postgresql:5432/sonar -p 9000:9000 -d -v /Users/edz/Documents/workspace:/opt/sonarqube/data -v /Users/edz/Documents/sonarqube/extensions:/opt/sonarqube/extensions -d bea2d9d54918 来源: oschina 链接: https://my.oschina.net/linland/blog/3139153

Sonar integration with SVN

情到浓时终转凉″ 提交于 2019-12-09 10:43:51
问题 I am using SVN as a version management tool for my project, and am planning to use sonar for project analysis. How do I make sonar project analysis run every time code is checked into SVN? 回答1: Do not do complex stuff as a pre-commit hook! When a user does a commit, control does not return to the user until after the pre-commit hook has completed. Since Sonar has to compile your code, your users will have to wait on every commit for the following: Checking out the code Compiling the code

Can someone show me what a good dependency matrix looks like and specify why?

廉价感情. 提交于 2019-12-09 09:23:40
问题 I would like to start using DSM, but not sure how to get started. What does a good dependency matrix look like and why? How does it work? 回答1: On this blog post Identify Code Structure Patterns with No Effort it is explained how to use a Dependency Structure Matrix to identify Code Structure Patterns. The screenshots are done with the Dependency Structure Matrix of the tool NDepend. Here are a few patterns: Layered code (code with no cycle, certainly the coolest thing that a DSM can show you

Sonar / JaCoCo4sbt / Jenkins

浪子不回头ぞ 提交于 2019-12-09 07:18:38
问题 I would like to know whats the easiest way to plug JaCoCo4sbt's data into Sonar, In Jenkins I have installed Sonar & JaCoCo's plugins. I have also installed JaCoCo's plugin in Sonar. My sonar-project.properties file contains : sonar.jacoco.reportPath=target/jacoco/jacoco.exec And Jenkins's job execute these commands : sbt jacoco:cover /opt/sonar-runner/bin/sonar-runner SBT_OPTS="-Dsbt.log.noformat=true" sbt clean update compile test doc For now I don't get any code coverage data into Sonar

How to setup dashboard with all projects view/widget?

こ雲淡風輕ζ 提交于 2019-12-09 06:15:33
问题 I have installed a sonar web site, a jenkins web site( CI machine). While CI server build projects and send info to sonar server as sonar client. There are lots of projects in my sonar server. I need a way to setup dashboard with all projects view or widget. Just like timeline in sonar demo site But when I configure my own sonar dashboard, I think there are only treemap and list which hava filter . ( with filter I can get analysis of all projects ) How did sonar demo web site do this? (Sonar