JohnMunsch/PaperQuik

View on GitHub

Showing 1,311 of 1,311 total issues

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

        solveCubic: function(a, b, c, d, roots, min, max) {
            if (abs(a) < EPSILON)
                return Numerical.solveQuadratic(b, c, d, roots, min, max);

            b /= a;
Severity: Minor
Found in app/bower_components/paper/dist/paper-core.js - About 1 hr to fix

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

            function handleCurve(v) {
                if (Curve.getLength(v) === 0)
                    return;
                var y0 = v[1],
                    y1 = v[3],
    Severity: Minor
    Found in app/bower_components/paper/dist/paper-core.js - About 1 hr to fix

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

          _changed: function(flags) {
              var symbol = this._parentSymbol,
                  cacheParent = this._parent || symbol,
                  project = this._project;
              if (flags & 8) {
      Severity: Minor
      Found in app/bower_components/paper/dist/paper-core.js - About 1 hr to fix

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

                toCanvasStyle: function(ctx) {
                    if (this._canvasStyle)
                        return this._canvasStyle;
                    if (this._type !== 'gradient')
                        return this._canvasStyle = this.toCSS();
        Severity: Minor
        Found in app/bower_components/paper/dist/paper-core.js - About 1 hr to fix

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

              _getCachedBounds: function(getter, matrix, cacheItem, internalGetter) {
                  matrix = matrix && matrix.orNullIfIdentity();
                  var _matrix = internalGetter ? null : this._matrix.orNullIfIdentity(),
                      cache = (!matrix || matrix.equals(_matrix)) && getter;
                  var cacheParent = this._parent || this._parentSymbol;
          Severity: Minor
          Found in app/bower_components/paper/dist/paper-core.js - About 1 hr to fix

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

                    function handleCurve(v) {
                        if (Curve.getLength(v) === 0)
                            return;
                        var y0 = v[1],
                            y1 = v[3],
            Severity: Minor
            Found in app/bower_components/paper/dist/paper-full.js - About 1 hr to fix

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

                  _changed: function(flags) {
                      var symbol = this._parentSymbol,
                          cacheParent = this._parent || symbol,
                          project = this._project;
                      if (flags & 8) {
              Severity: Minor
              Found in app/bower_components/paper/dist/paper-full.js - About 1 hr to fix

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

                        solveCubic: function(a, b, c, d, roots, min, max) {
                            if (abs(a) < EPSILON)
                                return Numerical.solveQuadratic(b, c, d, roots, min, max);
                
                            b /= a;
                Severity: Minor
                Found in app/bower_components/paper/dist/paper-full.js - About 1 hr to fix

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

                      _getCachedBounds: function(getter, matrix, cacheItem, internalGetter) {
                          matrix = matrix && matrix.orNullIfIdentity();
                          var _matrix = internalGetter ? null : this._matrix.orNullIfIdentity(),
                              cache = (!matrix || matrix.equals(_matrix)) && getter;
                          var cacheParent = this._parent || this._parentSymbol;
                  Severity: Minor
                  Found in app/bower_components/paper/dist/paper-full.js - About 1 hr to fix

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

                            toCanvasStyle: function(ctx) {
                                if (this._canvasStyle)
                                    return this._canvasStyle;
                                if (this._type !== 'gradient')
                                    return this._canvasStyle = this.toCSS();
                    Severity: Minor
                    Found in app/bower_components/paper/dist/paper-full.js - About 1 hr to fix

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

                          var $interval = function(fn, delay, count, invokeApply) {
                            var deferred = $q.defer(),
                                promise = deferred.promise,
                                iteration = 0,
                                skipApply = (angular.isDefined(invokeApply) && !invokeApply);
                      Severity: Minor
                      Found in app/bower_components/angular-mocks/angular-mocks.js - About 1 hr to fix

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

                              ctrl._refreshView = function() {
                                var year = ctrl.activeDate.getFullYear(),
                                  month = ctrl.activeDate.getMonth(),
                                  firstDayOfMonth = new Date(year, month, 1),
                                  difference = ctrl.startingDay - firstDayOfMonth.getDay(),

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

                                var getMatchesAsync = function(inputValue) {
                          
                                  var locals = {$viewValue: inputValue};
                                  isLoadingSetter(originalScope, true);
                                  $q.when(parserResult.source(originalScope, locals)).then(function(matches) {

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

                                  ctrl._refreshView = function() {
                                    var year = ctrl.activeDate.getFullYear(),
                                      month = ctrl.activeDate.getMonth(),
                                      firstDayOfMonth = new Date(year, month, 1),
                                      difference = ctrl.startingDay - firstDayOfMonth.getDay(),
                            Severity: Minor
                            Found in app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap.js - About 1 hr to fix

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

                                var $transition = function(element, trigger, options) {
                                  options = options || {};
                                  var deferred = $q.defer();
                                  var endEventName = $transition[options.animation ? 'animationEndEventName' : 'transitionEndEventName'];
                              
                              
                              Severity: Minor
                              Found in app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap.js - About 1 hr to fix

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

                                      function getPages(currentPage, totalPages) {
                                        var pages = [];
                                
                                        // Default page limits
                                        var startPage = 1, endPage = totalPages;
                                Severity: Minor
                                Found in app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap.js - About 1 hr to fix

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

                                    var $transition = function(element, trigger, options) {
                                      options = options || {};
                                      var deferred = $q.defer();
                                      var endEventName = $transition[options.animation ? 'animationEndEventName' : 'transitionEndEventName'];
                                  
                                  

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

                                          var getMatchesAsync = function(inputValue) {
                                    
                                            var locals = {$viewValue: inputValue};
                                            isLoadingSetter(originalScope, true);
                                            $q.when(parserResult.source(originalScope, locals)).then(function(matches) {
                                    Severity: Minor
                                    Found in app/bower_components/angular-ui-bootstrap-bower/ui-bootstrap.js - About 1 hr to fix

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

                                        Tooltip.prototype.applyPlacement = function (offset, placement) {
                                          var $tip   = this.tip()
                                          var width  = $tip[0].offsetWidth
                                          var height = $tip[0].offsetHeight
                                      
                                      
                                      Severity: Minor
                                      Found in app/bower_components/bootstrap/js/tooltip.js - About 1 hr to fix

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

                                              function getPages(currentPage, totalPages) {
                                                var pages = [];
                                        
                                                // Default page limits
                                                var startPage = 1, endPage = totalPages;
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language