From 282ddfa1b6940147694dca3c877c0d4bdcb152d3 Mon Sep 17 00:00:00 2001 From: "James D. Forrester" Date: Wed, 19 Aug 2015 11:37:13 -0700 Subject: [PATCH] build: Enable jscs jsDoc rule 'checkTypes' and make pass Change-Id: Idbf6e698ba7015ee5e4f1cf78234ad3f187f1c06 --- .jscsrc | 1 + modules/ve-mw/dm/nodes/ve.dm.MWReferenceNode.js | 4 ++-- modules/ve-mw/ui/tools/ve.ui.MWPopupTool.js | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.jscsrc b/.jscsrc index 43fbbebf61..1bb59d4e9a 100644 --- a/.jscsrc +++ b/.jscsrc @@ -10,6 +10,7 @@ "see": true } }, + "checkTypes": "strictNativeCase", "checkParamNames": true, "checkRedundantAccess": true, "checkRedundantReturns": true, diff --git a/modules/ve-mw/dm/nodes/ve.dm.MWReferenceNode.js b/modules/ve-mw/dm/nodes/ve.dm.MWReferenceNode.js index 703cf9549b..dc708c8a05 100644 --- a/modules/ve-mw/dm/nodes/ve.dm.MWReferenceNode.js +++ b/modules/ve-mw/dm/nodes/ve.dm.MWReferenceNode.js @@ -253,7 +253,7 @@ ve.dm.MWReferenceNode.static.remapInternalListKeys = function ( dataElement, int * @static * @param {Object} dataElement Element data * @param {ve.dm.InternalList} internalList Internal list - * @return {Number} Index + * @return {number} Index */ ve.dm.MWReferenceNode.static.getIndex = function ( dataElement, internalList ) { var listIndex = dataElement.attributes.listIndex, @@ -313,7 +313,7 @@ ve.dm.MWReferenceNode.prototype.getInternalItem = function () { /** * Gets the index for the reference * - * @return {Number} Index + * @return {number} Index */ ve.dm.MWReferenceNode.prototype.getIndex = function () { return this.constructor.static.getIndex( this.element, this.getDocument().getInternalList() ); diff --git a/modules/ve-mw/ui/tools/ve.ui.MWPopupTool.js b/modules/ve-mw/ui/tools/ve.ui.MWPopupTool.js index cbb5a30338..698f39ced1 100644 --- a/modules/ve-mw/ui/tools/ve.ui.MWPopupTool.js +++ b/modules/ve-mw/ui/tools/ve.ui.MWPopupTool.js @@ -12,7 +12,7 @@ * @abstract * @extends OO.ui.PopupTool * @constructor - * @param {String} title Title + * @param {string} title Title * @param {OO.ui.ToolGroup} toolGroup * @param {Object} [config] */