adobe/brackets

View on GitHub
src/extensions/default/JavaScriptCodeHints/ParameterHintsProvider.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function _getParameterHint has 36 lines of code (exceeds 25 allowed). Consider refactoring.
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

        JSParameterHintsProvider.prototype.getParameterHints = function (explicit, onCursorActivity) {
            var functionInfo = this.session.getFunctionInfo(),
                result = null;
    
            if (!onCursorActivity) {

      Avoid too many return statements within this function.
      Open

              return $.Deferred().resolve(hints);
      Severity: Major
      Found in src/extensions/default/JavaScriptCodeHints/ParameterHintsProvider.js - About 30 mins to fix

        There are no issues that match your filters.

        Category
        Status