publiclab/image-sequencer

View on GitHub
examples/lib/insertPreview.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function updatePreviews has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function updatePreviews(src, DomNode) {
  $(DomNode).find('img').remove();

  var previewSequencerSteps = {
    'resize': '125%',
Severity: Minor
Found in examples/lib/insertPreview.js - About 1 hr to fix

Function generatePreview has 27 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function generatePreview(previewStepName, customValues, path, DomNode) {
  var previewSequencer = ImageSequencer();
  function insertPreview(src) {
    var img = document.createElement('img');
    img.classList.add('img-thumbnail');
Severity: Minor
Found in examples/lib/insertPreview.js - About 1 hr to fix

There are no issues that match your filters.

Category
Status