You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

README.md 3.9KB

13 years ago
6 years ago
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. SonarQube [![Build Status](https://travis-ci.org/SonarSource/sonarqube.svg?branch=master)](https://travis-ci.org/SonarSource/sonarqube) [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=org.sonarsource.sonarqube%3Asonarqube&metric=alert_status)](https://sonarcloud.io/dashboard?id=org.sonarsource.sonarqube%3Asonarqube)
  2. =========
  3. Continuous Inspection
  4. ---------------------
  5. SonarQube provides the capability to not only show health of an application but also to highlight issues newly introduced. With a Quality Gate in place, you can [Clean As You Code](https://blog.sonarsource.com/clean-as-you-code) and therefore improve code quality systematically.
  6. Links
  7. -----
  8. * [Website](https://www.sonarqube.org)
  9. * [Download](https://www.sonarqube.org/downloads/)
  10. * [Documentation](https://docs.sonarqube.org)
  11. * [Twitter](https://twitter.com/SonarQube)
  12. * [SonarSource](https://www.sonarsource.com), author of SonarQube
  13. * [Issue tracking](https://jira.sonarsource.com/browse/SONAR/), read-only. Only SonarSourcers can create tickets.
  14. * [Responsible Disclosure](https://community.sonarsource.com/t/responsible-vulnerability-disclosure/9317)
  15. * [Dogfood](https://next.sonarqube.com/sonarqube) instance of the next SonarQube version
  16. Have Question or Feedback?
  17. --------------------------
  18. For support questions ("How do I?", "I got this error, why?", ...), please first read the [documentation](https://docs.sonarqube.org) and then head to the [SonarSource Community](https://community.sonarsource.com/c/help/sq/10). The answer to your question has likely already been answered! 🤓
  19. Be aware that this forum is a community, so the standard pleasantries ("Hi", "Thanks", ...) are expected. And if you don't get an answer to your thread, you should sit on your hands for at least three days before bumping it. Operators are not standing by. 😄
  20. Contributing
  21. ------------
  22. If you would like to see a new feature, please create a new Community thread: ["Suggest new features"](https://community.sonarsource.com/c/suggestions/features).
  23. Please be aware that we are not actively looking for feature contributions. The truth is that it's extremely difficult for someone outside SonarSource to comply with our roadmap and expectations. Therefore, we typically only accept minor cosmetic changes and typo fixes.
  24. With that in mind, if you would like to submit a code contribution, please create a pull request for this repository. Please explain your motives to contribute this change: what problem you are trying to fix, what improvement you are trying to make.
  25. Make sure that you follow our [code style](https://github.com/SonarSource/sonar-developer-toolset#code-style) and all tests are passing (Travis build is executed for each pull request).
  26. Building
  27. --------
  28. To build sources locally follow these instructions.
  29. ### Build and Run Unit Tests
  30. Execute from project base directory:
  31. ./gradlew build
  32. The zip distribution file is generated in `sonar-application/build/distributions/`. Unzip it and start server by executing:
  33. # on linux
  34. bin/linux-x86-64/sonar.sh start
  35. # or on MacOS
  36. bin/macosx-universal-64/sonar.sh start
  37. # or on Windows
  38. bin\windows-x86-64\StartSonar.bat
  39. ### Open in IDE
  40. If the project has never been built, then build it as usual (see previous section) or use the quicker command:
  41. ./gradlew ide
  42. Then open the root file `build.gradle` as a project in Intellij or Eclipse.
  43. ### Gradle Hints
  44. | ./gradlew command | Description |
  45. |---|---|
  46. | `dependencies`| list dependencies |
  47. | `dependencyCheckAnalyze` | list vulnerable dependencies |
  48. | `dependencyUpdates` | list the dependencies that could be updated |
  49. | `licenseFormat --rerun-tasks` | fix source headers by applying HEADER.txt |
  50. | `wrapper --gradle-version 5.2.1` | upgrade wrapper |
  51. License
  52. -------
  53. Copyright 2008-2020 SonarSource.
  54. Licensed under the [GNU Lesser General Public License, Version 3.0](https://www.gnu.org/licenses/lgpl.txt)