j3lte/pastebin-js

View on GitHub
lib/methods.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function post has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    post : function (path, params) {
        var deferred = Q.defer();

        if (!path) {
            deferred.reject(new Error('No path provided'));
Severity: Minor
Found in lib/methods.js - About 1 hr to fix

    Function get has 36 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        get : function (path, params) {
            var deferred = Q.defer();
    
            if (!path) {
                deferred.reject(new Error('No path provided'));
    Severity: Minor
    Found in lib/methods.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status