我在SonarQube 4.0(XML插件版本1.0.1)中使用XML Schema Validation规则遇到了两个问题:
Sonar XML插件中是否存在这些错误,或者我做错了什么?
配置:
XML架构规则filePattern参数:
**/*.xhtml
作业输出(请注意文件模式匹配的时间戳和证据):
[INFO] [15:13:41.413] Source encoding: windows-1252, default locale: en_US
[INFO] [15:13:41.523] Sensor XmlSourceImporter...
[INFO] [15:13:45.492] Sensor XmlSourceImporter done: 3969 ms
[INFO] [15:13:45.492] Sensor XmlSensor...
[INFO] [15:13:45.539] Validate admin/Information.xhtml with schema http://java.sun.com/jsf/core
[INFO] [15:23:38.468] Validate admin/Information.xhtml with schema http://java.sun.com/jsf/facelets
[INFO] [15:33:09.333] Validate admin/Information.xhtml with schema http://java.sun.com/jsf/html
[INFO] [15:42:40.168] Validate Exit.xhtml with schema http://java.sun.com/jsf/core
[INFO] [15:52:12.346] Validate Exit.xhtml with schema xhtml1-transitional
[INFO] [16:01:43.243] Validate Exit.xhtml with schema http://java.sun.com/jsf/facelets
[INFO] [16:11:14.046] Validate Exit.xhtml with schema http://java.sun.com/jsf/html
[INFO] [16:20:45.084] Validate Login.xhtml with schema http://java.sun.com/jsf/core
[INFO] [16:30:15.934] Validate Login.xhtml with schema xhtml1-transitional
[INFO] [16:39:47.002] Validate Login.xhtml with schema http://java.sun.com/jsf/facelets
[INFO] [16:49:17.899] Validate Login.xhtml with schema http://java.sun.com/jsf/html