SonarQube 10.5 (macOS, Linux, Windows) - 代码质量、安全与静态分析工具
SonarQube Data Center Edition (Java App for macOS, Linux, Windows)
请访问原文链接:https://sysin.org/blog/sonarqube-10/ 查看最新版。原创作品,转载请保留出处。
作者主页:sysin.org
Sonar Clean Code Industry leading solutions
- IDE | SonarLint Free IDE extension that provides on-the-fly analysis and coding guidance
- Self-managed | SonarQube Self-managed static analysis tool for continuous codebase inspection
- As a service | Sonar CloudCloud-based static analysis tool for your CI/CD workflows
Self-managed. SonarQube.
使用 {SonarQube} 为团队和企业提供干净的代码
为开发团队提供深度集成到您的企业环境中的解决方案 (sysin),使您能够一致且可靠地部署干净的代码。
被 300,000+ 组织使用和喜爱
- 巴克莱
- 法国航空
- IBM
- 美国国家航空航天局
- Microsoft
- Alphabet
- 戴森
- VMware
代码更智能
利用干净代码的力量
将 Sonar 工具无缝集成到您的开发工作流程中,看看无与伦比的代码智能可以为您的组织做什么。
更清洁的代码。较低的维护。
干净的代码更容易增强 (sysin),将维护时间和成本降至最低。
留住你的开发人员。快乐的。
通过保持工作场所最重要的部分——你的代码——干净,你可以为每个人创造一个愉快和满意的工作环境。
返工少。多创新。
通过授权开发人员专注于解决有趣的问题来产生更大的商业价值。
将风险降到最低。最大化声誉。
Sonar 通过在正确的地点和时间进行正确的检查 (sysin),使您的软件保持稳健和安全。
开发者必备
源代码有一个新标准
6M+
开发人员使用 Sonar
2.4M
来自 Github 的推荐点击
前 3 名
Azure 市场上的管道扩展
开发商。团队。企业。
为所有人提供干净的代码
对于开发者
花费太多时间修复问题?
使用一种解决方案控制您的代码,该解决方案可在最有用的点直接向您的工作流程提供实时洞察 (sysin)。Sonar 为干净、高质量的代码提供工具和智能,所需的修复提交更少。
对于团队
整治从创新中偷走时间?
使用快速且提供近乎实时反馈的解决方案,减少返工并进行更多创新。Sonar 的 Clean as You Code 方法使您的代码保持干净,以便团队可以将他们的才能集中在重要的地方——构建具有影响力的产品
为企业
需要降低风险并最大限度地提高弹性?
使用 Sonar 工具包将整个企业的风险降至最低。干净、稳定的代码环境为吸引顶尖的开发人才奠定了基础,并使数据更安全,避免出现漏洞和昂贵的修复周期。
版本比较
系统要求
Java
The SonarQube server requires Java version 17.
For the SonarScanners, the minimum recommended version is Java 17.
SonarQube is able to analyze any kind of Java source files regardless of the version of Java they comply with.
We recommend using the critical patch update (CPU) releases.
Java | Server | Scanners |
---|---|---|
Oracle JRE | ✅ 17 | ✅ 17 |
OpenJDK | ✅ 17 | ✅ 17 |
Database
Database | Version |
---|---|
PostgreSQL | ✅ 15 |
✅ 14 | |
✅ 13 | |
✅ 12 | |
✅ 11 | |
⚠️ Must be configured to use UTF-8 charset | |
Microsoft SQL Server | ✅ 2012 (MSSQL Server 16.0) with bundled Microsoft JDBC driver. Express Edition is supported. |
✅ 2019 (MSSQL Server 15.0) with bundled Microsoft JDBC driver. Express Edition is supported. | |
✅ 2017 (MSSQL Server 14.0) with bundled Microsoft JDBC driver. Express Edition is supported. | |
✅ 2016 (MSSQL Server 13.0) with bundled Microsoft JDBC driver. Express Edition is supported. | |
✅ 2014 (MSSQL Server 12.0) with bundled Microsoft JDBC driver. Express Edition is supported. | |
⚠️ Collation must be case-sensitive (CS) and accent-sensitive (AS) (example: Latin1_General_CS_AS ) |
|
⚠️ READ_COMMITTED_SNAPSHOT must be set on the SonarQube database to avoid potential deadlocks under heavy load |
|
ℹ️ Both Windows authentication (“Integrated Security”) and SQL Server authentication are supported. See the Microsoft SQL Server section in Installing/installation/installing-the-server page for instructions on configuring authentication. | |
Oracle | ✅ 21C |
✅ 19C | |
✅ XE Editions | |
⚠️ Must be configured to use a UTF8-family charset (see NLS_CHARACTERSET ) |
|
⚠️ The driver ojdbc14.jar is not supported | |
ℹ️ We recommend using the latest Oracle JDBC driver | |
⚠️ Only the thin mode is supported, not OCI | |
⚠️ Only MAX_STRING_SIZE=STANDARD parameter is supported, not EXTENDED |
Web Browser
To get the full experience SonarQube has to offer, you must enable JavaScript in your browser.
Browser | |
---|---|
Mozilla Firefox | ✅ Latest |
Google Chrome | ✅ Latest |
Safari | ✅ Latest |
Platform notes
Linux
If you’re running on Linux, you must ensure that:
vm.max_map_count
is greater than or equal to 524288fs.file-max
is greater than or equal to 131072- the user running SonarQube can open at least 131072 file descriptors
- the user running SonarQube can open at least 8192 threads
You can see the values with the following commands (sysin):
sysctl vm.max_map_count
sysctl fs.file-max
ulimit -n
ulimit -u
You can set them dynamically for the current session by running the following commands as root
:
sysctl -w vm.max_map_count=524288
sysctl -w fs.file-max=131072
ulimit -n 131072
ulimit -u 8192
macOS
Same as for Linux: If you’re running into maximum file limit issues on macOS, you can fix them by setting the file limit values by running the following commands:
sudo sysctl -w kern.maxfiles=131072
sudo sysctl -w kern.maxfilesperproc=131072
ulimit -n 131072
下载地址
SonarQube Data Center Edition 10.5.1.90531 for macOS, Linux, Windows (Released April 2024)
- 百度网盘链接:https://sysin.org/blog/sonarqube-10/
更多:HTTP 协议与安全