nemesiscodex/openfonacide

View on GitHub
static/js/dncp/util/kwargs.js

Summary

Maintainability
A
1 hr
Test Coverage

Function kwargs has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function kwargs(func, defaults) {
        /*jshint maxlen : 200*/
        var removeComments = new RegExp('(\\/\\*[\\w\\\'\\,\\(\\)\\s\\r\\n\\*]*\\*\\/)|(\\/\\/[\\w\\s\\\'][^\\n\\r]*$)|(<![\\-\\-\\s\\w\\>\\/]*>)', 'gim');
        var removeWhitespc = new RegExp('\\s+', 'gim');
        var matchSignature = new RegExp('function.*?\\((.*?)\\)', 'i');
Severity: Minor
Found in static/js/dncp/util/kwargs.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status