简体   繁体   English

将excludeFiles属性添加到.jscsrc时,JSCS挂起

[英]JSCS hangs when excludeFiles property added to .jscsrc

I installed istanbul to catch coverage on my tests, which started to cause jscs to throw a lot of errors on the coverage directory. 我安装了istanbul来捕获测试的覆盖率,这开始导致jscs在coverage目录上引发很多错误。

I tried putting "excludeFiles": ["coverage/**", "test/fixtures/**"] into my .jscsrc file but now that is causing jscs to hang indefinitely when I run it. 我尝试将"excludeFiles": ["coverage/**", "test/fixtures/**"]放入我的.jscsrc文件,但现在这导致jscs在运行时无限期挂起。 control c does not work to exit. 控件c无法退出。

I tried a couple different patterns including just the directory and with a preceding ./ for the path name. 我尝试了几种不同的模式,包括仅目录和路径名前面带有./的模式。 Same behavior. 行为相同。

好吧,事实证明,当我将它放在rc文件的顶部时,它可以工作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM