Browse Source

Validate Typedoc IgnoreNaming

sebastien 7 năm trước cách đây
mục cha
commit
d7bc60e15c
2 tập tin đã thay đổi với 3 bổ sung4 xóa
  1. 2 4
      Tools/Gulp/gulp-validateTypedoc.js
  2. 1 0
      src/babylon.scene.ts

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

@@ -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", "ignoreNamingConvention"]
+                var validTags = ["constructor", "throw", "type", "deprecated", "example", "examples", "remark", "see", "remarks", "ignorenaming"]
                 if (validTags.indexOf(tag.tag) === -1) {
                     errorTags.push(tag.tag);
                 }
@@ -499,10 +499,8 @@ Validate.prototype.validateNaming = function(parent, node) {
         return;
     }
 
-    var exceptionList = ["VRHelper"];
-
     // Ignore Naming Tag Check
-    if (exceptionList.indexOf(node.name) !== -1) {
+    if (Validate.hasTag(node, 'ignoreNaming')) {
         return;
     }
 

+ 1 - 0
src/babylon.scene.ts

@@ -1076,6 +1076,7 @@
         /**
          * Gets or sets the VRExperienceHelper attached to the scene
          * @see http://doc.babylonjs.com/how_to/webvr_helper
+         * @ignoreNaming
          */
         public VRHelper: VRExperienceHelper;