angular/angular-hint

View on GitHub

Showing 90 of 90 total issues

Avoid too many return statements within this function.
Open

if (pathVal == null) { onUndefined([key0, key1].join('.')); return };
Severity: Major
Found in src/lib/debug-parse.js - About 30 mins to fix

    Function exports has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
    Open

    module.exports = function(loadedModules) {
    var undeclaredModules = [];
    for(var module in loadedModules) {
    var cModule = getModule(module, true);
    if(!cModule) {
    Severity: Minor
    Found in src/modules/angular-hint-modules/getUndeclaredModules.js - About 25 mins to fix

    Function summarizeProperty has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
    Open

    function summarizeProperty (obj) {
    return obj instanceof Array ?
    { '~array-length': obj.length } :
    obj === null ?
    null :
    Severity: Minor
    Found in src/lib/summarize-model.js - About 25 mins to fix

    Function extend has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
    Open

    function extend(dst) {
    var h = dst.$$hashKey;
     
    for (var i = 1, ii = arguments.length; i < ii; i++) {
    var obj = arguments[i];
    Severity: Minor
    Found in src/lib/debug-parse.js - About 25 mins to fix

    Function unary has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
    Open

    unary: function() {
    var token;
    if (this.expect('+')) {
    return this.primary();
    } else if ((token = this.expect('-'))) {
    Severity: Minor
    Found in src/lib/debug-parse.js - About 25 mins to fix

    Function isArrayLike has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
    Open

    function isArrayLike(obj) {
    if (obj == null || isWindow(obj)) {
    return false;
    }
     
     
    Severity: Minor
    Found in src/lib/debug-parse.js - About 25 mins to fix

    Function bind has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
    Open

    function bind(self, fn) {
    var curryArgs = arguments.length > 2 ? sliceArgs(arguments, 2) : [];
    if (isFunction(fn) && !(fn instanceof RegExp)) {
    return curryArgs.length
    ? function() {
    Severity: Minor
    Found in src/lib/debug-parse.js - About 25 mins to fix

    Function getFunctionNames has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
    Open

    var getFunctionNames = function(str) {
    if (typeof str !== 'string') {
    return [];
    }
    // There are still a bunch of corner cases here where we aren't going to be able to handle
    Severity: Minor
    Found in src/modules/events.js - About 25 mins to fix

    Function getter has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
    Open

    function getter(obj, path, bindFnToScope) {
    if (!path) return obj;
    var keys = path.split('.');
    var key;
    var lastInstance = obj;
    Severity: Minor
    Found in src/lib/debug-parse.js - About 25 mins to fix

    Function exports has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
    Open

    module.exports = function(createdModules) {
    var unusedModules = [];
    for(var module in createdModules) {
    if(!getModule(module)) {
    var cModule = createdModules[module],
    Severity: Minor
    Found in src/modules/angular-hint-modules/getUnusedModules.js - About 25 mins to fix
    Severity
    Category
    Status
    Source
    Language