浏览代码

Fix VRHelper naming issue

David Catuhe 7 年之前
父节点
当前提交
656960f17f
共有 2 个文件被更改,包括 3181 次插入3175 次删除
  1. 10 4
      Tools/Gulp/gulp-validateTypedoc.js
  2. 3171 3171
      dist/preview release/babylon.d.ts

+ 10 - 4
Tools/Gulp/gulp-validateTypedoc.js

@@ -319,7 +319,7 @@ Validate.prototype.validateTypedocNamespaces = function (namespaces) {
                 this.validateNaming(containerNode, childNode);
 
                 //if comment contains @ignore then skip validation completely
-                if (Validate.hasTag(childNode, 'ignore')) continue;                
+                if (Validate.hasTag(childNode, 'ignore')) continue;
 
                 if (isPublic) {
                     tags = this.validateTags(childNode);
@@ -413,7 +413,7 @@ Validate.prototype.validateTags = function(node) {
         if (tags) {
             for (var i = 0; i < tags.length; i++) {
                 var tag = tags[i];
-                var validTags = ["constructor", "throw", "type", "deprecated", "example", "examples", "remark", "see", "remarks"]
+                var validTags = ["constructor", "throw", "type", "deprecated", "example", "examples", "remark", "see", "remarks", "ignoreNamingConvention"]
                 if (validTags.indexOf(tag.tag) === -1) {
                     errorTags.push(tag.tag);
                 }
@@ -449,10 +449,9 @@ Validate.prototype.validateComment = function(node) {
     if (node.overwrites) {
         return true;
     }
-    
 
+    // Check comments.
     if (node.comment) {
-
         if (node.comment.text || node.comment.shortText) {
             return true;
         }
@@ -500,6 +499,13 @@ Validate.prototype.validateNaming = function(parent, node) {
         return;
     }
 
+    var exceptionList = ["VRHelper"];
+
+    // Ignore Naming Tag Check
+    if (exceptionList.indexOf(node.name) !== -1) {
+        return;
+    }
+
     if (node.inheritedFrom) {
         return;
     }

文件差异内容过多而无法显示
+ 3171 - 3171
dist/preview release/babylon.d.ts