Pojostick/ipsr-mosaic

View on GitHub
app/assets/javascripts/mosaics_show.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function undo has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var undo = function(instant) {
        if (current >= 0) {
            var records = stepRecord[current];
            for (var key in records) {
                var record = records[key];
Severity: Minor
Found in app/assets/javascripts/mosaics_show.js - About 1 hr to fix

Function redo has 39 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    var redo = function(instant) {
        if (current < stepRecord.length - 1) {
            current++;
            var records = stepRecord[current];
            for (var key in records) {
Severity: Minor
Found in app/assets/javascripts/mosaics_show.js - About 1 hr to fix

Function Step has 8 arguments (exceeds 4 allowed). Consider refactoring.
Open

    var Step = function(tile, ax, ay, az, bx, by, bz, instant) {
Severity: Major
Found in app/assets/javascripts/mosaics_show.js - About 1 hr to fix

There are no issues that match your filters.

Category
Status