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 4.2KB

13 years ago
6 years ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. # SonarQube [![Build Status](https://app.travis-ci.com/SonarSource/sonarqube.svg?branch=master)](https://app.travis-ci.com/SonarSource/sonarqube) [![Quality Gate Status](https://next.sonarqube.com/sonarqube/api/project_badges/measure?project=sonarqube&metric=alert_status&token=d95182127dd5583f57578d769b511660601a8547)](https://next.sonarqube.com/sonarqube/dashboard?id=sonarqube)
  2. ## Continuous Inspection
  3. 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://www.sonarsource.com/blog/clean-as-you-code/) and therefore improve code quality systematically.
  4. ## Links
  5. - [Website](https://www.sonarqube.org)
  6. - [Download](https://www.sonarqube.org/downloads/)
  7. - [Documentation](https://docs.sonarsource.com/sonarqube)
  8. - [Twitter](https://twitter.com/SonarQube)
  9. - [SonarSource](https://www.sonarsource.com), author of SonarQube
  10. - [Issue tracking](https://jira.sonarsource.com/browse/SONAR/), read-only. Only SonarSourcers can create tickets.
  11. - [Responsible Disclosure](https://community.sonarsource.com/t/responsible-vulnerability-disclosure/9317)
  12. - [Next](https://next.sonarqube.com/sonarqube) instance of the next SonarQube version
  13. ## Have Question or Feedback?
  14. For support questions ("How do I?", "I got this error, why?", ...), please first read the [documentation](https://docs.sonarsource.com/sonarqube) 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! 🤓
  15. 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. 😄
  16. ## Contributing
  17. 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).
  18. 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.
  19. 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.
  20. 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).
  21. Willing to contribute to SonarSource products? We are looking for smart, passionate, and skilled people to help us build world-class code quality solutions. Have a look at our current [job offers here](https://www.sonarsource.com/company/jobs/)!
  22. ## Building
  23. To build sources locally follow these instructions.
  24. ### Build and Run Unit Tests
  25. Execute from project base directory:
  26. ./gradlew build
  27. The zip distribution file is generated in `sonar-application/build/distributions/`. Unzip it and start server by executing:
  28. # on linux
  29. bin/linux-x86-64/sonar.sh start
  30. # or on MacOS
  31. bin/macosx-universal-64/sonar.sh start
  32. # or on Windows
  33. bin\windows-x86-64\StartSonar.bat
  34. ### Open in IDE
  35. If the project has never been built, then build it as usual (see previous section) or use the quicker command:
  36. ./gradlew ide
  37. Then open the root file `build.gradle` as a project in Intellij or Eclipse.
  38. ### Gradle Hints
  39. | ./gradlew command | Description |
  40. | -------------------------------- | ----------------------------------------- |
  41. | `dependencies` | list dependencies |
  42. | `licenseFormat --rerun-tasks` | fix source headers by applying HEADER.txt |
  43. | `wrapper --gradle-version 5.2.1` | upgrade wrapper |
  44. ## License
  45. Copyright 2008-2023 SonarSource.
  46. Licensed under the [GNU Lesser General Public License, Version 3.0](https://www.gnu.org/licenses/lgpl.txt)