XPath 规则在声纳 4.4 中不起作用 [英] XPath rule not working in Sonar 4.4

查看:66
本文介绍了XPath 规则在声纳 4.4 中不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

重现步骤:

  1. 点击规则"链接
  2. 搜索xpath"
  3. 单击未弃用的 Java XPath 规则
  4. 点击创建"
  5. 填写 "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屋!

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