用户登录
用户注册

分享至

用于验证代码的 SonarQube Java 版本

  • 作者: 温凉盏
  • 来源: 51数据库
  • 2022-10-28

问题描述

我如何知道哪个版本的 Java SonarQube 验证了代码?它是JVM的版本吗?如果我的项目基于不同的版本怎么办?

How can I know against which version of Java SonarQube validates the code? Is it the version of the JVM? What then if my project is based on a different version?

推荐答案

我确认这个属性 sonar.java.source 仅由 PMD 工具使用.SonarSource 的 Java 分析器使用超集语法,因此可以分析源文件,而不管它们遵循的 Java 版本.

I do confirm that this property sonar.java.source is used only by the PMD tool. The SonarSource's Java analyser uses a superset grammar and so can analyse source files regardless of the Java version they comply to.

软件
前端设计
程序设计
Java相关