[英]what does this comment mean /* jshint +W040 */
I'm going through Angular's
source code and have found the following piece: 我正在浏览
Angular's
源代码,并发现了以下内容:
/* jshint -W040 *//* some comment here
injector.invoke(blockFns[i] || angular.noop, this);
/* jshint +W040 */
I know that I can use notation like jshint -W000
to specify for jshint that the following line should not be inspected. 我知道我可以使用
jshint -W000
类的符号为jshint指定不应检查以下行。 But what is the notation with plus ( jshint +W000
) for? 但是plus(
jshint +W000
)的jshint +W000
是什么?
From the docs: 从文档:
To re-enable a warning that has been disabled with the above snippet you can use:
要重新启用已被上述代码段禁用的警告,可以使用:
/* jshint +W034 */
http://jshint.com/docs/ http://jshint.com/docs/
So it's just to make sure it isn't ignored for the rest of file. 因此,这只是为了确保文件的其余部分不会被忽略。
重新启用先前已禁用的警告。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.