{"action":"created","issue":{"url":"https://api.github.com/repos/malteseduck/sonar-xquery-plugin/issues/17","labels_url":"https://api.github.com/repos/malteseduck/sonar-xquery-plugin/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/malteseduck/sonar-xquery-plugin/issues/17/comments","events_url":"https://api.github.com/repos/malteseduck/sonar-xquery-plugin/issues/17/events","html_url":"https://github.com/malteseduck/sonar-xquery-plugin/issues/17","id":34748921,"number":17,"title":"sonar-xquery-plugin with sonarqube-4.3 error report","user":{"login":"ndvalencia","id":5473485,"avatar_url":"https://avatars.githubusercontent.com/u/5473485?v=3","gravatar_id":"","url":"https://api.github.com/users/ndvalencia","html_url":"https://github.com/ndvalencia","followers_url":"https://api.github.com/users/ndvalencia/followers","following_url":"https://api.github.com/users/ndvalencia/following{/other_user}","gists_url":"https://api.github.com/users/ndvalencia/gists{/gist_id}","starred_url":"https://api.github.com/users/ndvalencia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ndvalencia/subscriptions","organizations_url":"https://api.github.com/users/ndvalencia/orgs","repos_url":"https://api.github.com/users/ndvalencia/repos","events_url":"https://api.github.com/users/ndvalencia/events{/privacy}","received_events_url":"https://api.github.com/users/ndvalencia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-06-02T06:36:14Z","updated_at":"2015-05-04T11:23:15Z","closed_at":null,"body":"HI, I am trying to use \"sonar-xquery-plugin\" with \"sonarqube-4.3\" and \"sonar-runner-2.4\" but the report is not showing \"Issues\" or \"Technical Debt\", I have the next configuration:\r\n\r\n- sonarqube-4.3 with mysql (also I did tests with the default DB)\r\n- sonar-runner-2.4\r\n- xray-master (downloaded from https://github.com/robwhitby/xray/archive/master.zip)\r\n \r\n**Note:** Also I tested with other XQuery project but the result is the same, but with a Java project the Sonar report is good\r\n- xray-master/sonar-project.properties\r\n```\r\n# required metadata\r\nsonar.projectKey=xray\r\nsonar.projectName=xray\r\nsonar.projectVersion=1.0\r\n\r\n# optional description\r\nsonar.projectDescription=xrayUnitTesting\r\n\r\n# path to source directories (required)\r\nsonar.sources=src\r\n\r\n# The value of the property must be the key of the language.\r\nsonar.language=xquery\r\n\r\n# Encoding of the source code\r\nsonar.sourceEncoding=UTF-8\r\n```\r\n\r\n- \"sonar-xquery-plugin-1.4.jar\" in \"sonarqube-4.3\\extensions\\plugins\"\r\n- I executed \"E:\\TODO\\sonarqube\\xray-master>sonar-runner.bat\"\r\n```\r\nE:\\TODO\\sonarqube\\xray-master>sonar-runner.bat\r\nE:\\TODO\\sonarqube\\sonar-runner\r\nSonarQube Runner 2.4\r\nJava 1.7.0_51 Oracle Corporation (64-bit)\r\nWindows 8 6.2 amd64\r\nINFO: Runner configuration file: E:\\TODO\\sonarqube\\sonar-runner\\conf\\sonar-runner.properties\r\nINFO: Project configuration file: E:\\TODO\\sonarqube\\xray-master\\sonar-project.properties\r\nINFO: Default locale: \"es_CO\", source code encoding: \"UTF-8\"\r\nINFO: Work directory: E:\\TODO\\sonarqube\\xray-master\\.\\.sonar\r\nINFO: SonarQube Server 4.3\r\n01:21:01.958 INFO  - Load batch settings\r\n01:21:02.119 INFO  - User cache: C:\\Users\\norman.valencia\\.sonar\\cache\r\n01:21:02.127 INFO  - Install plugins\r\n01:21:02.255 INFO  - Install JDBC driver\r\n01:21:02.261 WARN  - H2 database should be used for evaluation purpose only\r\n01:21:02.261 INFO  - Create JDBC datasource for jdbc:h2:tcp://localhost/sonar\r\n01:21:03.278 INFO  - Initializing Hibernate\r\n01:21:04.963 INFO  - Load project settings\r\n01:21:05.002 INFO  - Apply project exclusions\r\n01:21:05.137 INFO  - -------------  Scan xray\r\n01:21:05.143 INFO  - Load module settings\r\n01:21:05.313 INFO  - Language is forced to xquery\r\n01:21:05.508 INFO  - Loading technical debt model...\r\n01:21:05.518 INFO  - Loading technical debt model done: 10 ms\r\n01:21:05.519 INFO  - Loading rules...\r\n01:21:05.815 INFO  - Loading rules done: 296 ms\r\n01:21:05.828 INFO  - Configure Maven plugins\r\n01:21:05.931 INFO  - Compare to previous analysis (2014-06-02)\r\n01:21:05.939 INFO  - Compare over 30 days (2014-05-03, analysis of 2014-06-02 01:07:45.674)\r\n01:21:05.940 INFO  - No quality gate is configured.\r\n01:21:06.026 INFO  - Base dir: E:\\TODO\\sonarqube\\xray-master\\.\r\n01:21:06.026 INFO  - Working dir: E:\\TODO\\sonarqube\\xray-master\\.\\.sonar\r\n01:21:06.026 INFO  - Source dirs: E:\\TODO\\sonarqube\\xray-master\\src\r\n01:21:06.026 INFO  - Source encoding: UTF-8, default locale: es_CO\r\n01:21:06.026 INFO  - Index files\r\n01:21:06.080 INFO  - 6 files indexed\r\n01:21:06.138 INFO  - Quality profile for xquery: Default Profile\r\n01:21:06.156 INFO  - Sensor QProfileSensor...\r\n01:21:06.160 INFO  - Sensor QProfileSensor done: 4 ms\r\n01:21:06.161 INFO  - Sensor org.sonar.plugins.xquery.XQuerySensor@3660d903...\r\njun 02, 2014 1:21:06 AM org.sonar.plugins.xquery.rules.XQueryRulesRepository createChecks\r\nInformaci¾n: Loading checks for profile Default Profile\r\njun 02, 2014 1:21:06 AM org.sonar.plugins.xquery.XQuerySensor analyse\r\nInformaci¾n: Scanning all files to map dependencies\r\nmodules.xqy - line 23:4 - mismatched input '!' expecting RBRACKET\r\nxray.xqy - line 54:17 - no viable alternative at input '('\r\nxray.xqy - line 54:20 - no viable alternative at input ','\r\nxray.xqy - line 95:17 - no viable alternative at input '('\r\nxray.xqy - line 95:20 - no viable alternative at input ','\r\nxray.xqy - line 113:6 - missing EOF at 'import'\r\njun 02, 2014 1:21:06 AM org.sonar.plugins.xquery.XQuerySensor analyse\r\nInformaci¾n: Scanning all files and gathering metrics\r\n01:21:06.609 WARN  - Resource is not indexed. Ignoring violation org.sonar.api.rules.Violation@7add5d94[resource=org.sonar.plugins.xquery.language.XQueryFile@5b79eeb2[key=assertions.xqy,dir=<null>,filename=assertions.xq\r\ny,unitTest=false],rule=Rule[id=588,name=Use Strong Typing FLWOR Expressions,key=StrongTypingInFLWOR,configKey=StrongTypingInFLWOR,plugin=xquery,severity=MINOR,cardinality=MULTIPLE,status=READY,language=xquery,parent=<nu\r\nll>],message=Declare types for FLWOR 'let' and 'for' clauses to increase readability and catch potential bugs.  Also try to scope the types as narrowly as possible (i.e. use 'element()' instead of 'item()' when the valu\r\ne is an element) and include quantifiers on each type.,severity=<null>,lineId=21,cost=<null>,createdAt=<null>,switchedOff=false,checksum=<null>,isNew=false,isManual=false,permanentId=<null>,personId=<null>]\r\n01:21:06.610 WARN  - Resource is not indexed. Ignoring violation org.sonar.api.rules.Violation@7c17ed18[resource=org.sonar.plugins.xquery.language.XQueryFile@5b79eeb2[key=assertions.xqy,dir=<null>,filename=assertions.xq\r\ny,unitTest=false],rule=Rule[id=588,name=Use Strong Typing FLWOR Expressions,key=StrongTypingInFLWOR,configKey=StrongTypingInFLWOR,plugin=xquery,severity=MINOR,cardinality=MULTIPLE,status=READY,language=xquery,parent=<nu\r\nll>],message=Declare types for FLWOR 'let' and 'for' clauses to increase readability and catch potential bugs.  Also try to scope the types as narrowly as possible (i.e. use 'element()' instead of 'item()' when the valu\r\ne is an element) and include quantifiers on each type.,severity=<null>,lineId=40,cost=<null>,createdAt=<null>,switchedOff=false,checksum=<null>,isNew=false,isManual=false,permanentId=<null>,personId=<null>]\r\n01:21:06.611 WARN  - Resource is not indexed. Ignoring violation org.sonar.api.rules.Violation@6cf024e[resource=org.sonar.plugins.xquery.language.XQueryFile@5b79eeb2[key=assertions.xqy,dir=<null>,filename=assertions.xqy\r\n,unitTest=false],rule=Rule[id=588,name=Use Strong Typing FLWOR Expressions,key=StrongTypingInFLWOR,configKey=StrongTypingInFLWOR,plugin=xquery,severity=MINOR,cardinality=MULTIPLE,status=READY,language=xquery,parent=<nul\r\nl>],message=Declare types for FLWOR 'let' and 'for' clauses to increase readability and catch potential bugs.  Also try to scope the types as narrowly as possible (i.e. use 'element()' instead of 'item()' when the value\r\n is an element) and include quantifiers on each type.,severity=<null>,lineId=57,cost=<null>,createdAt=<null>,switchedOff=false,checksum=<null>,isNew=false,isManual=false,permanentId=<null>,personId=<null>]\r\n01:21:06.612 WARN  - Resource is not indexed. Ignoring violation org.sonar.api.rules.Violation@a05260[resource=org.sonar.plugins.xquery.language.XQueryFile@5b79eeb2[key=assertions.xqy,dir=<null>,filename=assertions.xqy,\r\nunitTest=false],rule=Rule[id=588,name=Use Strong Typing FLWOR Expressions,key=StrongTypingInFLWOR,configKey=StrongTypingInFLWOR,plugin=xquery,severity=MINOR,cardinality=MULTIPLE,status=READY,language=xquery,parent=<null\r\n>],message=Declare types for FLWOR 'let' and 'for' clauses to increase readability and catch potential bugs.  Also try to scope the types as narrowly as possible (i.e. use 'element()' instead of 'item()' when the value\r\nis an element) and include quantifiers on each type.,severity=<null>,lineId=74,cost=<null>,createdAt=<null>,switchedOff=false,checksum=<null>,isNew=false,isManual=false,permanentId=<null>,personId=<null>]\r\n01:21:06.613 WARN  - Resource is not indexed. Ignoring violation org.sonar.api.rules.Violation@1d801cf2[resource=org.sonar.plugins.xquery.language.XQueryFile@5b79eeb2[key=assertions.xqy,dir=<null>,filename=assertions.xq\r\ny,unitTest=false],rule=Rule[id=588,name=Use Strong Typing FLWOR Expressions,key=StrongTypingInFLWOR,configKey=StrongTypingInFLWOR,plugin=xquery,severity=MINOR,cardinality=MULTIPLE,status=READY,language=xquery,parent=<nu\r\nll>],message=Declare types for FLWOR 'let' and 'for' clauses to increase readability and catch potential bugs.  Also try to scope the types as narrowly as possible (i.e. use 'element()' instead of 'item()' when the valu\r\ne is an element) and include quantifiers on each type.,severity=<null>,lineId=93,cost=<null>,createdAt=<null>,switchedOff=false,checksum=<null>,isNew=false,isManual=false,permanentId=<null>,personId=<null>]\r\n01:21:06.614 WARN  - Resource is not indexed. Ignoring violation org.sonar.api.rules.Violation@45ec62ff[resource=org.sonar.plugins.xquery.language.XQueryFile@5b79eeb2[key=assertions.xqy,dir=<null>,filename=assertions.xq\r\ny,unitTest=false],rule=Rule[id=588,name=Use Strong Typing FLWOR Expressions,key=StrongTypingInFLWOR,configKey=StrongTypingInFLWOR,plugin=xquery,severity=MINOR,cardinality=MULTIPLE,status=READY,language=xquery,parent=<nu\r\nll>],message=Declare types for FLWOR 'let' and 'for' clauses to increase readability and catch potential bugs.  Also try to scope the types as narrowly as possible (i.e. use 'element()' instead of 'item()' when the valu\r\ne is an element) and include quantifiers on each type.,severity=<null>,lineId=96,cost=<null>,createdAt=<null>,switchedOff=false,checksum=<null>,isNew=false,isManual=false,permanentId=<null>,personId=<null>]\r\n01:21:06.615 WARN  - Resource is not indexed. Ignoring violation org.sonar.api.rules.Violation@22577736[resource=org.sonar.plugins.xquery.language.XQueryFile@5b79eeb2[key=assertions.xqy,dir=<null>,filename=assertions.xq\r\ny,unitTest=false],rule=Rule[id=588,name=Use Strong Typing FLWOR Expressions,key=StrongTypingInFLWOR,configKey=StrongTypingInFLWOR,plugin=xquery,severity=MINOR,cardinality=MULTIPLE,status=READY,language=xquery,parent=<nu\r\nll>],message=Declare types for FLWOR 'let' and 'for' clauses to increase readability and catch potential bugs.  Also try to scope the types as narrowly as possible (i.e. use 'element()' instead of 'item()' when the valu\r\ne is an element) and include quantifiers on each type.,severity=<null>,lineId=113,cost=<null>,createdAt=<null>,switchedOff=false,checksum=<null>,isNew=false,isManual=false,permanentId=<null>,personId=<null>]\r\n01:21:06.615 WARN  - Resource is not indexed. Ignoring violation org.sonar.api.rules.Violation@1c538bd7[resource=org.sonar.plugins.xquery.language.XQueryFile@5b79eeb2[key=assertions.xqy,dir=<null>,filename=assertions.xq\r\ny,unitTest=false],rule=Rule[id=588,name=Use Strong Typing FLWOR Expressions,key=StrongTypingInFLWOR,configKey=StrongTypingInFLWOR,plugin=xquery,severity=MINOR,cardinality=MULTIPLE,status=READY,language=xquery,parent=<nu\r\nll>],message=Declare types for FLWOR 'let' and 'for' clauses to increase readability and catch potential bugs.  Also try to scope the types as narrowly as possible (i.e. use 'element()' instead of 'item()' when the valu\r\ne is an element) and include quantifiers on each type.,severity=<null>,lineId=130,cost=<null>,createdAt=<null>,switchedOff=false,checksum=<null>,isNew=false,isManual=false,permanentId=<null>,personId=<null>]\r\n01:21:06.616 WARN  - Resource is not indexed. Ignoring violation org.sonar.api.rules.Violation@3101dec8[resource=org.sonar.plugins.xquery.language.XQueryFile@5b79eeb2[key=assertions.xqy,dir=<null>,filename=assertions.xq\r\ny,unitTest=false],rule=Rule[id=584,name=Function Mapping Usage,key=FunctionMapping,configKey=FunctionMapping,plugin=xquery,severity=MAJOR,cardinality=MULTIPLE,status=READY,language=xquery,parent=<null>],message=Make sur\r\ne you are intentionally using and/or understand function mapping - otherwise disable it with 'declare option xdmp:mapping \"false\";'  If you wish to use it you should explicitly declare 'declare option xdmp:mapping \"true\r\n\";' for readability/maintainability.,severity=<null>,lineId=1,cost=<null>,createdAt=<null>,switchedOff=false,checksum=<null>,isNew=false,isManual=false,permanentId=<null>,personId=<null>]\r\n01:21:06.625 WARN  - Resource is not indexed. Ignoring violation org.sonar.api.rules.Violation@6f5d1ff4[resource=org.sonar.plugins.xquery.language.XQueryFile@4add054a[key=modules-database.xqy,dir=<null>,filename=modules\r\n-database.xqy,unitTest=false],rule=Rule[id=582,name=Use Strong Typing when Declaring Module Variable,key=StrongTypingInModuleVariables,configKey=StrongTypingInModuleVariables,plugin=xquery,severity=CRITICAL,cardinality=\r\nMULTIPLE,status=READY,language=xquery,parent=<null>],message=Declare types for declared variables to increase readability and catch potential bugs.  Also try to scope the types as narrowly as possible (i.e. use 'element\r\n()' instead of 'item()' when the value is an element) and include quantifiers on each type.,severity=<null>,lineId=5,cost=<null>,createdAt=<null>,switchedOff=false,checksum=<null>,isNew=false,isManual=false,permanentId=\r\n<null>,personId=<null>]\r\n01:21:06.627 WARN  - Resource is not indexed. Ignoring violation org.sonar.api.rules.Violation@748663ab[resource=org.sonar.plugins.xquery.language.XQueryFile@4add054a[key=modules-database.xqy,dir=<null>,filename=modules\r\n-database.xqy,unitTest=false],rule=Rule[id=589,name=Dynamic Function Usage,key=DynamicFunction,configKey=DynamicFunction,plugin=xquery,severity=MAJOR,cardinality=MULTIPLE,status=READY,language=xquery,parent=<null>],mess\r\nage=Avoid using xdmp:eval() and xdmp:value() where possible.  Instead use xdmp:invoke() or xdmp:unpath() or, if possible, function values to dynamically evaluate code logic.,severity=<null>,lineId=16,cost=<null>,created\r\nAt=<null>,switchedOff=false,checksum=<null>,isNew=false,isManual=false,permanentId=<null>,personId=<null>]\r\n01:21:06.628 WARN  - Resource is not indexed. Ignoring violation org.sonar.api.rules.Violation@22f9ab51[resource=org.sonar.plugins.xquery.language.XQueryFile@4add054a[key=modules-database.xqy,dir=<null>,filename=modules\r\n-database.xqy,unitTest=false],rule=Rule[id=584,name=Function Mapping Usage,key=FunctionMapping,configKey=FunctionMapping,plugin=xquery,severity=MAJOR,cardinality=MULTIPLE,status=READY,language=xquery,parent=<null>],mess\r\nage=Make sure you are intentionally using and/or understand function mapping - otherwise disable it with 'declare option xdmp:mapping \"false\";'  If you wish to use it you should explicitly declare 'declare option xdmp:m\r\napping \"true\";' for readability/maintainability.,severity=<null>,lineId=1,cost=<null>,createdAt=<null>,switchedOff=false,checksum=<null>,isNew=false,isManual=false,permanentId=<null>,personId=<null>]\r\n01:21:06.644 WARN  - Resource is not indexed. Ignoring violation org.sonar.api.rules.Violation@1d631edd[resource=org.sonar.plugins.xquery.language.XQueryFile@567f4e3d[key=modules-filesystem.xqy,dir=<null>,filename=modul\r\nes-filesystem.xqy,unitTest=false],rule=Rule[id=588,name=Use Strong Typing FLWOR Expressions,key=StrongTypingInFLWOR,configKey=StrongTypingInFLWOR,plugin=xquery,severity=MINOR,cardinality=MULTIPLE,status=READY,language=x\r\nquery,parent=<null>],message=Declare types for FLWOR 'let' and 'for' clauses to increase readability and catch potential bugs.  Also try to scope the types as narrowly as possible (i.e. use 'element()' instead of 'item(\r\n)' when the value is an element) and include quantifiers on each type.,severity=<null>,lineId=11,cost=<null>,createdAt=<null>,switchedOff=false,checksum=<null>,isNew=false,isManual=false,permanentId=<null>,personId=<nul\r\nl>]\r\n01:21:06.645 WARN  - Resource is not indexed. Ignoring violation org.sonar.api.rules.Violation@3fe9b328[resource=org.sonar.plugins.xquery.language.XQueryFile@567f4e3d[key=modules-filesystem.xqy,dir=<null>,filename=modul\r\nes-filesystem.xqy,unitTest=false],rule=Rule[id=588,name=Use Strong Typing FLWOR Expressions,key=StrongTypingInFLWOR,configKey=StrongTypingInFLWOR,plugin=xquery,severity=MINOR,cardinality=MULTIPLE,status=READY,language=x\r\nquery,parent=<null>],message=Declare types for FLWOR 'let' and 'for' clauses to increase readability and catch potential bugs.  Also try to scope the types as narrowly as possible (i.e. use 'element()' instead of 'item(\r\n)' when the value is an element) and include quantifiers on each type.,severity=<null>,lineId=15,cost=<null>,createdAt=<null>,switchedOff=false,checksum=<null>,isNew=false,isManual=false,permanentId=<null>,personId=<nul\r\nl>]\r\n01:21:06.646 WARN  - Resource is not indexed. Ignoring violation org.sonar.api.rules.Violation@7f127e0[resource=org.sonar.plugins.xquery.language.XQueryFile@567f4e3d[key=modules-filesystem.xqy,dir=<null>,filename=module\r\ns-filesystem.xqy,unitTest=false],rule=Rule[id=586,name=Avoid Operations in Predicates,key=OperationsInPredicate,configKey=OperationsInPredicate,plugin=xquery,severity=MAJOR,cardinality=MULTIPLE,status=READY,language=xqu\r\nery,parent=<null>],message=Instead of calling functions or performing operations in predicates try to assigning the results in a variable before the predicate.,severity=<null>,lineId=18,cost=<null>,createdAt=<null>,swit\r\nchedOff=false,checksum=<null>,isNew=false,isManual=false,permanentId=<null>,personId=<null>]\r\n01:21:06.647 WARN  - Resource is not indexed. Ignoring violation org.sonar.api.rules.Violation@6970e732[resource=org.sonar.plugins.xquery.language.XQueryFile@567f4e3d[key=modules-filesystem.xqy,dir=<null>,filename=modul\r\nes-filesystem.xqy,unitTest=false],rule=Rule[id=588,name=Use Strong Typing FLWOR Expressions,key=StrongTypingInFLWOR,configKey=StrongTypingInFLWOR,plugin=xquery,severity=MINOR,cardinality=MULTIPLE,status=READY,language=x\r\nquery,parent=<null>],message=Declare types for FLWOR 'let' and 'for' clauses to increase readability and catch potential bugs.  Also try to scope the types as narrowly as possible (i.e. use 'element()' instead of 'item(\r\n)' when the value is an element) and include quantifiers on each type.,severity=<null>,lineId=26,cost=<null>,createdAt=<null>,switchedOff=false,checksum=<null>,isNew=false,isManual=false,permanentId=<null>,personId=<nul\r\nl>]\r\n01:21:06.648 WARN  - Resource is not indexed. Ignoring violation org.sonar.api.rules.Violation@735ab9b2[resource=org.sonar.plugins.xquery.language.XQueryFile@567f4e3d[key=modules-filesystem.xqy,dir=<null>,filename=modul\r\nes-filesystem.xqy,unitTest=false],rule=Rule[id=577,name=Range Evaluation in Order By Clause,key=OrderByRange,configKey=OrderByRange,plugin=xquery,severity=INFO,cardinality=MULTIPLE,status=READY,language=xquery,parent=<n\r\null>],message=Order bys or gt/lt checks on large numbers of documents might get better performance with a range index.,severity=<null>,lineId=27,cost=<null>,createdAt=<null>,switchedOff=false,checksum=<null>,isNew=false\r\n,isManual=false,permanentId=<null>,personId=<null>]\r\n01:21:06.648 WARN  - Resource is not indexed. Ignoring violation org.sonar.api.rules.Violation@49559048[resource=org.sonar.plugins.xquery.language.XQueryFile@567f4e3d[key=modules-filesystem.xqy,dir=<null>,filename=modul\r\nes-filesystem.xqy,unitTest=false],rule=Rule[id=584,name=Function Mapping Usage,key=FunctionMapping,configKey=FunctionMapping,plugin=xquery,severity=MAJOR,cardinality=MULTIPLE,status=READY,language=xquery,parent=<null>],\r\nmessage=Make sure you are intentionally using and/or understand function mapping - otherwise disable it with 'declare option xdmp:mapping \"false\";'  If you wish to use it you should explicitly declare 'declare option xd\r\nmp:mapping \"true\";' for readability/maintainability.,severity=<null>,lineId=1,cost=<null>,createdAt=<null>,switchedOff=false,checksum=<null>,isNew=false,isManual=false,permanentId=<null>,personId=<null>]\r\nmodules.xqy - line 23:4 - mismatched input '!' expecting RBRACKET\r\n01:21:06.656 WARN  - Resource is not indexed. Ignoring violation org.sonar.api.rules.Violation@4c70ad1a[resource=org.sonar.plugins.xquery.language.XQueryFile@7974ad2a[key=modules.xqy,dir=<null>,filename=modules.xqy,unit\r\nTest=false],rule=Rule[id=582,name=Use Strong Typing when Declaring Module Variable,key=StrongTypingInModuleVariables,configKey=StrongTypingInModuleVariables,plugin=xquery,severity=CRITICAL,cardinality=MULTIPLE,status=RE\r\nADY,language=xquery,parent=<null>],message=Declare types for declared variables to increase readability and catch potential bugs.  Also try to scope the types as narrowly as possible (i.e. use 'element()' instead of 'it\r\nem()' when the value is an element) and include quantifiers on each type.,severity=<null>,lineId=10,cost=<null>,createdAt=<null>,switchedOff=false,checksum=<null>,isNew=false,isManual=false,permanentId=<null>,personId=<\r\nnull>]\r\n01:21:06.658 WARN  - Resource is not indexed. Ignoring violation org.sonar.api.rules.Violation@5b14deb1[resource=org.sonar.plugins.xquery.language.XQueryFile@7974ad2a[key=modules.xqy,dir=<null>,filename=modules.xqy,unit\r\nTest=false],rule=Rule[id=582,name=Use Strong Typing when Declaring Module Variable,key=StrongTypingInModuleVariables,configKey=StrongTypingInModuleVariables,plugin=xquery,severity=CRITICAL,cardinality=MULTIPLE,status=RE\r\nADY,language=xquery,parent=<null>],message=Declare types for declared variables to increase readability and catch potential bugs.  Also try to scope the types as narrowly as possible (i.e. use 'element()' instead of 'it\r\nem()' when the value is an element) and include quantifiers on each type.,severity=<null>,lineId=11,cost=<null>,createdAt=<null>,switchedOff=false,checksum=<null>,isNew=false,isManual=false,permanentId=<null>,personId=<\r\nnull>]\r\n01:21:06.659 WARN  - Resource is not indexed. Ignoring violation org.sonar.api.rules.Violation@3728652e[resource=org.sonar.plugins.xquery.language.XQueryFile@7974ad2a[key=modules.xqy,dir=<null>,filename=modules.xqy,unit\r\nTest=false],rule=Rule[id=584,name=Function Mapping Usage,key=FunctionMapping,configKey=FunctionMapping,plugin=xquery,severity=MAJOR,cardinality=MULTIPLE,status=READY,language=xquery,parent=<null>],message=Make sure you\r\nare intentionally using and/or understand function mapping - otherwise disable it with 'declare option xdmp:mapping \"false\";'  If you wish to use it you should explicitly declare 'declare option xdmp:mapping \"true\";' fo\r\nr readability/maintainability.,severity=<null>,lineId=1,cost=<null>,createdAt=<null>,switchedOff=false,checksum=<null>,isNew=false,isManual=false,permanentId=<null>,personId=<null>]\r\n01:21:06.660 WARN  - Resource is not indexed. Ignoring violation org.sonar.api.rules.Violation@3d0acb4c[resource=org.sonar.plugins.xquery.language.XQueryFile@7974ad2a[key=modules.xqy,dir=<null>,filename=modules.xqy,unit\r\nTest=false],rule=Rule[id=580,name=Code Parsing Error,key=ParseError,configKey=ParseError,plugin=xquery,severity=INFO,cardinality=MULTIPLE,status=READY,language=xquery,parent=<null>],message= - line 23:4 - mismatched inp\r\nut '!' expecting RBRACKET,severity=<null>,lineId=23,cost=<null>,createdAt=<null>,switchedOff=false,checksum=<null>,isNew=false,isManual=false,permanentId=<null>,personId=<null>]\r\n01:21:06.667 WARN  - Resource is not indexed. Ignoring violation org.sonar.api.rules.Violation@70e0023d[resource=org.sonar.plugins.xquery.language.XQueryFile@2b32cb0[key=output/json.xqy,dir=output,filename=json.xqy,unit\r\nTest=false],rule=Rule[id=588,name=Use Strong Typing FLWOR Expressions,key=StrongTypingInFLWOR,configKey=StrongTypingInFLWOR,plugin=xquery,severity=MINOR,cardinality=MULTIPLE,status=READY,language=xquery,parent=<null>],m\r\nessage=Declare types for FLWOR 'let' and 'for' clauses to increase readability and catch potential bugs.  Also try to scope the types as narrowly as possible (i.e. use 'element()' instead of 'item()' when the value is a\r\nn element) and include quantifiers on each type.,severity=<null>,lineId=13,cost=<null>,createdAt=<null>,switchedOff=false,checksum=<null>,isNew=false,isManual=false,permanentId=<null>,personId=<null>]\r\n01:21:06.668 WARN  - Resource is not indexed. Ignoring violation org.sonar.api.rules.Violation@413ad832[resource=org.sonar.plugins.xquery.language.XQueryFile@2b32cb0[key=output/json.xqy,dir=output,filename=json.xqy,unit\r\nTest=false],rule=Rule[id=588,name=Use Strong Typing FLWOR Expressions,key=StrongTypingInFLWOR,configKey=StrongTypingInFLWOR,plugin=xquery,severity=MINOR,cardinality=MULTIPLE,status=READY,language=xquery,parent=<null>],m\r\nessage=Declare types for FLWOR 'let' and 'for' clauses to increase readability and catch potential bugs.  Also try to scope the types as narrowly as possible (i.e. use 'element()' instead of 'item()' when the value is a\r\nn element) and include quantifiers on each type.,severity=<null>,lineId=14,cost=<null>,createdAt=<null>,switchedOff=false,checksum=<null>,isNew=false,isManual=false,permanentId=<null>,personId=<null>]\r\n01:21:06.669 WARN  - Resource is not indexed. Ignoring violation org.sonar.api.rules.Violation@7e47dc12[resource=org.sonar.plugins.xquery.language.XQueryFile@2b32cb0[key=output/json.xqy,dir=output,filename=json.xqy,unit\r\nTest=false],rule=Rule[id=588,name=Use Strong Typing FLWOR Expressions,key=StrongTypingInFLWOR,configKey=StrongTypingInFLWOR,plugin=xquery,severity=MINOR,cardinality=MULTIPLE,status=READY,language=xquery,parent=<null>],m\r\nessage=Declare types for FLWOR 'let' and 'for' clauses to increase readability and catch potential bugs.  Also try to scope the types as narrowly as possible (i.e. use 'element()' instead of 'item()' when the value is a\r\nn element) and include quantifiers on each type.,severity=<null>,lineId=15,cost=<null>,createdAt=<null>,switchedOff=false,checksum=<null>,isNew=false,isManual=false,permanentId=<null>,personId=<null>]\r\n01:21:06.670 WARN  - Resource is not indexed. Ignoring violation org.sonar.api.rules.Violation@1fc16283[resource=org.sonar.plugins.xquery.language.XQueryFile@2b32cb0[key=output/json.xqy,dir=output,filename=json.xqy,unit\r\nTest=false],rule=Rule[id=584,name=Function Mapping Usage,key=FunctionMapping,configKey=FunctionMapping,plugin=xquery,severity=MAJOR,cardinality=MULTIPLE,status=READY,language=xquery,parent=<null>],message=Make sure you\r\nare intentionally using and/or understand function mapping - otherwise disable it with 'declare option xdmp:mapping \"false\";'  If you wish to use it you should explicitly declare 'declare option xdmp:mapping \"true\";' fo\r\nr readability/maintainability.,severity=<null>,lineId=1,cost=<null>,createdAt=<null>,switchedOff=false,checksum=<null>,isNew=false,isManual=false,permanentId=<null>,personId=<null>]\r\nxray.xqy - line 54:17 - no viable alternative at input '('\r\nxray.xqy - line 54:20 - no viable alternative at input ','\r\nxray.xqy - line 95:17 - no viable alternative at input '('\r\nxray.xqy - line 95:20 - no viable alternative at input ','\r\nxray.xqy - line 113:6 - missing EOF at 'import'\r\n01:21:06.691 WARN  - Resource is not indexed. Ignoring violation org.sonar.api.rules.Violation@159dbd6a[resource=org.sonar.plugins.xquery.language.XQueryFile@26fe853c[key=xray.xqy,dir=<null>,filename=xray.xqy,unitTest=f\r\nalse],rule=Rule[id=582,name=Use Strong Typing when Declaring Module Variable,key=StrongTypingInModuleVariables,configKey=StrongTypingInModuleVariables,plugin=xquery,severity=CRITICAL,cardinality=MULTIPLE,status=READY,la\r\nnguage=xquery,parent=<null>],message=Declare types for declared variables to increase readability and catch potential bugs.  Also try to scope the types as narrowly as possible (i.e. use 'element()' instead of 'item()'\r\nwhen the value is an element) and include quantifiers on each type.,severity=<null>,lineId=8,cost=<null>,createdAt=<null>,switchedOff=false,checksum=<null>,isNew=false,isManual=false,permanentId=<null>,personId=<null>]\r\n01:21:06.691 WARN  - Resource is not indexed. Ignoring violation org.sonar.api.rules.Violation@fdd3a24[resource=org.sonar.plugins.xquery.language.XQueryFile@26fe853c[key=xray.xqy,dir=<null>,filename=xray.xqy,unitTest=fa\r\nlse],rule=Rule[id=588,name=Use Strong Typing FLWOR Expressions,key=StrongTypingInFLWOR,configKey=StrongTypingInFLWOR,plugin=xquery,severity=MINOR,cardinality=MULTIPLE,status=READY,language=xquery,parent=<null>],message=\r\nDeclare types for FLWOR 'let' and 'for' clauses to increase readability and catch potential bugs.  Also try to scope the types as narrowly as possible (i.e. use 'element()' instead of 'item()' when the value is an eleme\r\nnt) and include quantifiers on each type.,severity=<null>,lineId=18,cost=<null>,createdAt=<null>,switchedOff=false,checksum=<null>,isNew=false,isManual=false,permanentId=<null>,personId=<null>]\r\n01:21:06.692 WARN  - Resource is not indexed. Ignoring violation org.sonar.api.rules.Violation@514199f[resource=org.sonar.plugins.xquery.language.XQueryFile@26fe853c[key=xray.xqy,dir=<null>,filename=xray.xqy,unitTest=fa\r\nlse],rule=Rule[id=588,name=Use Strong Typing FLWOR Expressions,key=StrongTypingInFLWOR,configKey=StrongTypingInFLWOR,plugin=xquery,severity=MINOR,cardinality=MULTIPLE,status=READY,language=xquery,parent=<null>],message=\r\nDeclare types for FLWOR 'let' and 'for' clauses to increase readability and catch potential bugs.  Also try to scope the types as narrowly as possible (i.e. use 'element()' instead of 'item()' when the value is an eleme\r\nnt) and include quantifiers on each type.,severity=<null>,lineId=24,cost=<null>,createdAt=<null>,switchedOff=false,checksum=<null>,isNew=false,isManual=false,permanentId=<null>,personId=<null>]\r\n01:21:06.693 WARN  - Resource is not indexed. Ignoring violation org.sonar.api.rules.Violation@6a9e1853[resource=org.sonar.plugins.xquery.language.XQueryFile@26fe853c[key=xray.xqy,dir=<null>,filename=xray.xqy,unitTest=f\r\nalse],rule=Rule[id=588,name=Use Strong Typing FLWOR Expressions,key=StrongTypingInFLWOR,configKey=StrongTypingInFLWOR,plugin=xquery,severity=MINOR,cardinality=MULTIPLE,status=READY,language=xquery,parent=<null>],message\r\n=Declare types for FLWOR 'let' and 'for' clauses to increase readability and catch potential bugs.  Also try to scope the types as narrowly as possible (i.e. use 'element()' instead of 'item()' when the value is an elem\r\nent) and include quantifiers on each type.,severity=<null>,lineId=25,cost=<null>,createdAt=<null>,switchedOff=false,checksum=<null>,isNew=false,isManual=false,permanentId=<null>,personId=<null>]\r\n01:21:06.694 WARN  - Resource is not indexed. Ignoring violation org.sonar.api.rules.Violation@314f27d4[resource=org.sonar.plugins.xquery.language.XQueryFile@26fe853c[key=xray.xqy,dir=<null>,filename=xray.xqy,unitTest=f\r\nalse],rule=Rule[id=584,name=Function Mapping Usage,key=FunctionMapping,configKey=FunctionMapping,plugin=xquery,severity=MAJOR,cardinality=MULTIPLE,status=READY,language=xquery,parent=<null>],message=Make sure you are in\r\ntentionally using and/or understand function mapping - otherwise disable it with 'declare option xdmp:mapping \"false\";'  If you wish to use it you should explicitly declare 'declare option xdmp:mapping \"true\";' for read\r\nability/maintainability.,severity=<null>,lineId=1,cost=<null>,createdAt=<null>,switchedOff=false,checksum=<null>,isNew=false,isManual=false,permanentId=<null>,personId=<null>]\r\n01:21:06.694 WARN  - Resource is not indexed. Ignoring violation org.sonar.api.rules.Violation@43bfe896[resource=org.sonar.plugins.xquery.language.XQueryFile@26fe853c[key=xray.xqy,dir=<null>,filename=xray.xqy,unitTest=f\r\nalse],rule=Rule[id=580,name=Code Parsing Error,key=ParseError,configKey=ParseError,plugin=xquery,severity=INFO,cardinality=MULTIPLE,status=READY,language=xquery,parent=<null>],message= - line 54:17 - no viable alternati\r\nve at input '(',severity=<null>,lineId=54,cost=<null>,createdAt=<null>,switchedOff=false,checksum=<null>,isNew=false,isManual=false,permanentId=<null>,personId=<null>]\r\n01:21:06.695 WARN  - Resource is not indexed. Ignoring violation org.sonar.api.rules.Violation@6c3ef299[resource=org.sonar.plugins.xquery.language.XQueryFile@26fe853c[key=xray.xqy,dir=<null>,filename=xray.xqy,unitTest=f\r\nalse],rule=Rule[id=580,name=Code Parsing Error,key=ParseError,configKey=ParseError,plugin=xquery,severity=INFO,cardinality=MULTIPLE,status=READY,language=xquery,parent=<null>],message= - line 95:17 - no viable alternati\r\nve at input '(',severity=<null>,lineId=95,cost=<null>,createdAt=<null>,switchedOff=false,checksum=<null>,isNew=false,isManual=false,permanentId=<null>,personId=<null>]\r\n01:21:06.696 WARN  - Resource is not indexed. Ignoring violation org.sonar.api.rules.Violation@18a95254[resource=org.sonar.plugins.xquery.language.XQueryFile@26fe853c[key=xray.xqy,dir=<null>,filename=xray.xqy,unitTest=f\r\nalse],rule=Rule[id=580,name=Code Parsing Error,key=ParseError,configKey=ParseError,plugin=xquery,severity=INFO,cardinality=MULTIPLE,status=READY,language=xquery,parent=<null>],message= - line 113:6 - missing EOF at 'imp\r\nort',severity=<null>,lineId=113,cost=<null>,createdAt=<null>,switchedOff=false,checksum=<null>,isNew=false,isManual=false,permanentId=<null>,personId=<null>]\r\n01:21:06.697 INFO  - Sensor org.sonar.plugins.xquery.XQuerySensor@3660d903 done: 536 ms\r\n01:21:06.697 INFO  - Sensor org.sonar.plugins.xquery.xqtest.XQTestSensor@10476fd9...\r\njun 02, 2014 1:21:06 AM org.sonar.plugins.xquery.xqtest.XQTestSensor collect\r\nInformaci¾n: parsing E:\\TODO\\sonarqube\\xray-master\\target\\xqtest-reports\r\n01:21:06.699 WARN  - Reports path not found: E:\\TODO\\sonarqube\\xray-master\\target\\xqtest-reports\r\n01:21:06.700 INFO  - Sensor org.sonar.plugins.xquery.xqtest.XQTestSensor@10476fd9 done: 3 ms\r\n01:21:06.700 INFO  - Sensor CpdSensor...\r\n01:21:06.700 INFO  - Sensor CpdSensor done: 0 ms\r\n01:21:06.700 INFO  - Sensor InitialOpenIssuesSensor...\r\n01:21:06.709 INFO  - Sensor InitialOpenIssuesSensor done: 9 ms\r\n01:21:06.710 INFO  - Sensor ProfileEventsSensor...\r\n01:21:06.728 INFO  - Sensor ProfileEventsSensor done: 18 ms\r\n01:21:06.729 INFO  - Sensor ProjectLinksSensor...\r\n01:21:06.733 INFO  - Sensor ProjectLinksSensor done: 4 ms\r\n01:21:06.734 INFO  - Sensor VersionEventsSensor...\r\n01:21:06.744 INFO  - Sensor VersionEventsSensor done: 10 ms\r\n01:21:06.744 INFO  - Sensor FileHashSensor...\r\n01:21:06.749 INFO  - Sensor FileHashSensor done: 5 ms\r\n01:21:07.110 INFO  - Execute decorators...\r\n01:21:07.357 INFO  - Store results in database\r\n01:21:07.395 INFO  - ANALYSIS SUCCESSFUL, you can browse http://localhost:9000/dashboard/index/xray\r\n01:21:07.419 INFO  - Executing post-job class org.sonar.plugins.core.issue.notification.SendIssueNotificationsPostJob\r\n01:21:07.420 INFO  - Executing post-job class org.sonar.plugins.core.batch.IndexProjectPostJob\r\n01:21:07.427 INFO  - Executing post-job class org.sonar.plugins.dbcleaner.ProjectPurgePostJob\r\n01:21:07.435 INFO  - -> Keep one snapshot per day between 2014-05-05 and 2014-06-01\r\n01:21:07.436 INFO  - -> Keep one snapshot per week between 2013-06-03 and 2014-05-05\r\n01:21:07.436 INFO  - -> Keep one snapshot per month between 2009-06-08 and 2013-06-03\r\n01:21:07.436 INFO  - -> Delete data prior to: 2009-06-08\r\n01:21:07.441 INFO  - -> Clean xray [id=1]\r\n01:21:07.444 INFO  - <- Clean snapshot 1\r\nINFO: ------------------------------------------------------------------------\r\nINFO: EXECUTION SUCCESS\r\nINFO: ------------------------------------------------------------------------\r\nTotal time: 6.330s\r\nFinal Memory: 15M/585M\r\nINFO: ------------------------------------------------------------------------\r\n\r\nE:\\TODO\\sonarqube\\xray-master>\r\n```\r\n- But the result in the dashboard does not have a correct analisys \r\n![xray_sonarqube](https://cloud.githubusercontent.com/assets/5473485/3144379/288c09ac-ea20-11e3-8cb7-d4a373549e73.png)\r\n\r\n**Note:** The same \"sonar-xquery-plugin-1.4.jar\" in \"**sonar-3.5.1**\\extensions\\plugins\" works correctly\r\n![xray_sonar-3 5](https://cloud.githubusercontent.com/assets/5473485/3144530/e725e862-ea23-11e3-8fd3-84766c6f98a2.png)\r\n\r\n\r\nDo you have any idea?\r\nThanks."},"comment":{"url":"https://api.github.com/repos/malteseduck/sonar-xquery-plugin/issues/comments/98680949","html_url":"https://github.com/malteseduck/sonar-xquery-plugin/issues/17#issuecomment-98680949","issue_url":"https://api.github.com/repos/malteseduck/sonar-xquery-plugin/issues/17","id":98680949,"user":{"login":"malteseduck","id":367817,"avatar_url":"https://avatars.githubusercontent.com/u/367817?v=3","gravatar_id":"","url":"https://api.github.com/users/malteseduck","html_url":"https://github.com/malteseduck","followers_url":"https://api.github.com/users/malteseduck/followers","following_url":"https://api.github.com/users/malteseduck/following{/other_user}","gists_url":"https://api.github.com/users/malteseduck/gists{/gist_id}","starred_url":"https://api.github.com/users/malteseduck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/malteseduck/subscriptions","organizations_url":"https://api.github.com/users/malteseduck/orgs","repos_url":"https://api.github.com/users/malteseduck/repos","events_url":"https://api.github.com/users/malteseduck/events{/privacy}","received_events_url":"https://api.github.com/users/malteseduck/received_events","type":"User","site_admin":false},"created_at":"2015-05-04T11:23:15Z","updated_at":"2015-05-04T11:23:15Z","body":"Yes, sorry, I was waiting for a response to my question, then I forgot.\r\n\r\nDo you get the exact same output as well? (same errors, etc.) The plugin no longer uses the \"Violation\" class. In your output do you still get this error:\r\n\r\nSensor org.sonar.plugins.xquery.xqtest.XQTestSensor@10476fd done: 3 ms\r\n\r\n?\r\n\r\nOr errors like these:\r\n\r\nIgnoring violation org.sonar.api.rules.Violation@159dbd6a[resource=org.sonar.plugins.xquery.language.XQueryFile@26fe853c[key=xray.xqy,dir=<null>,filename=xray.xqy,unitTest=f\r\nalse],rule=Rule[id=582...\r\n\r\n?"}}