src/extensions/default/JavaScriptCodeHints/ParameterHintsProvider.js
Function _getParameterHint
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
JSParameterHintsProvider.prototype._getParameterHint = function (pushExistingHint, hint, functionInfo) {
var result = $.Deferred();
functionInfo = functionInfo || this.session.getFunctionInfo();
if (!functionInfo.inFunctionCall) {
this.cleanHintState();
Function getParameterHints
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
JSParameterHintsProvider.prototype.getParameterHints = function (explicit, onCursorActivity) {
var functionInfo = this.session.getFunctionInfo(),
result = null;
if (!onCursorActivity) {
Avoid too many return
statements within this function. Open
Open
return $.Deferred().resolve(hints);