用于验证代码的 SonarQube Java 版本 [英] SonarQube Java version used to verify code

查看:17
本文介绍了用于验证代码的 SonarQube Java 版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何知道哪个版本的 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.

这篇关于用于验证代码的 SonarQube Java 版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆