dlueth/qoopido.nucleus

View on GitHub
src/emitter.js

Summary

Maintainability
B
5 hrs
Test Coverage

Function definition has 120 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function definition(Weakmap, iterate) {
        var regexMatchExcludedMethods      = /^(_|((get|has|is)([A-Z]|$))|(on|one|off|emit|constructor)$)/,
            objectDefineProperty           = Object.defineProperty,
            objectGetOwnPropertyNames      = Object.getOwnPropertyNames,
            objectGetOwnPropertyDescriptor = Object.getOwnPropertyDescriptor,
Severity: Major
Found in src/emitter.js - About 4 hrs to fix

    Avoid deeply nested control flow statements.
    Open

                                    if(listener === fn) {
                                        pointer[event].splice(j, 1);
    
                                        j--;
                                    }
    Severity: Major
    Found in src/emitter.js - About 45 mins to fix

      There are no issues that match your filters.

      Category
      Status