uccser/cs-field-guide

View on GitHub
csfieldguide/static/interactives/pixel-viewer/js/third-party/Animate.js

Summary

Maintainability
B
5 hrs
Test Coverage

Function start has 48 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        start: function(stepCallback, verifyCallback, completedCallback, duration, easingMethod, root) {

            var start = time();
            var lastFrame = start;
            var percent = 0;

Function requestAnimationFrame has 40 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        requestAnimationFrame: (function() {

            // Check for request animation Frame support
            var requestFrame = global.requestAnimationFrame || global.webkitRequestAnimationFrame || global.mozRequestAnimationFrame || global.oRequestAnimationFrame;
            var isNative = !!requestFrame;

Function step has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

            var step = function(virtual) {

                // Normalize virtual value
                var render = virtual !== true;

Function start has 6 arguments (exceeds 4 allowed). Consider refactoring.
Open

        start: function(stepCallback, verifyCallback, completedCallback, duration, easingMethod, root) {
Severity: Minor
Found in csfieldguide/static/interactives/pixel-viewer/js/third-party/Animate.js - About 45 mins to fix

There are no issues that match your filters.

Category
Status