首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >SonarQube sonar-runner不排除文件

SonarQube sonar-runner不排除文件
EN

Stack Overflow用户
提问于 2015-05-02 21:23:24
回答 1查看 2.3K关注 0票数 0

我已经在项目的根目录中创建了sonar-project.properties文件。在里面我有:

代码语言:javascript
复制
sonar.sources=WebContent/js
sonar.exclusions=file:/C:/work/frontend_common/WebContent/js/amp/adv3d/amp3d1Vendor.js

我已经尝试了所有我能找到和想到的sonar.exclusions的变体。请在下面找到表明此文件仍包含在其中的相关日志行:

代码语言:javascript
复制
...
SonarQube Runner 2.4
...
07:30:42.340 INFO  - Excluded sources: 
07:30:42.340 INFO  -   file:/C:/work/frontend_common/WebContent/js/amp/adv3d/amp3d1Vendor.js
...
07:30:42.356 DEBUG - Language of file 'WebContent/js/amp/adv3d/amp3d1Vendor.js' is detected to be 'js'
...
07:30:42.605 WARN  - Invalid character encountered in file c:\work\frontend_common\WebContent\js\amp\adv3d\amp3d1Vendor.js at line 1139 for encoding windows-1252. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.
...
07:30:42.668 INFO  - 58 files indexed
07:30:42.668 INFO  - 0 files ignored because of inclusion/exclusion patterns
...
Caused by: org.sonar.squidbridge.api.AnalysisException: Unable to parse file: c:\work\frontend_common\WebContent\js\amp\adv3d\amp3d1Vendor.js
...
Caused by: java.lang.OutOfMemoryError: Java heap space
...
EN

回答 1

Stack Overflow用户

发布于 2015-05-03 20:12:14

我通过使用模式**/adv3d/**让它正常工作

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/30002803

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档