XPath 规则在声纳 4.4 中不起作用 [英] XPath rule not working in Sonar 4.4
问题描述
重现步骤:
- 点击规则"链接
- 搜索xpath"
- 单击未弃用的 Java XPath 规则
- 点击创建"
填写 "name"/"key"/"Description"/"Message" 为 "should not use Collections.synchronizedMap" ,更改状态为 "ready" ,设置 xpathQuery 为
//IDENTIFIER[@tokenValue='synchronizedMap']
点击创建"按钮
作为测试,Javascript XPath 规则也不起作用,只是在 Sonar 4.3.1 中测试,Java 和 Javascript XPath 规则都有效.java插件版本是2.4
As test , Javascript XPath rule doesn't work either, and just test in Sonar 4.3.1 , both Java and Javascript XPath rule works. java plugin version is 2.4
任何人都请提供一些建议或帮助将其报告给 Sonar JIRA,因为我无权报告错误.
Anyone please give some suggestion or help reporting it to Sonar JIRA where I didn't have permission to report bug.
推荐答案
这是 SonarQube 上的一个已知错误:声纳-5575
This is a known bug on SonarQube: SONAR-5575
它的修复已在计划中,应该会在一个月左右的时间内可用.请随意投票并观看 JIRA 票.
Its fix is planned and should be available in a month or so. Feel free to vote and watch for the JIRA ticket.
这篇关于XPath 规则在声纳 4.4 中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!