luizpicolo/rails_admin_content_builder

View on GitHub

Showing 3 of 5 total issues

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

function fileSelectAndUploadGallery(evt) {
  //console.log(evt);
  var files = evt.target.files;

  for (i = 0; i < files.length; ++i) {

    Function activeMediumEditor has 35 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    function activeMediumEditor() {
      var text = new MediumEditor('.cb-text', {
        placeholder: {
          text: '',
          hideOnClick: true
    Severity: Minor
    Found in app/assets/javascripts/rails_admin/helpers/medium_editor.js - About 1 hr to fix

      Function fileSelectAndUpload has 26 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      function fileSelectAndUpload(evt) {
        //console.log(evt);
        var file = evt.target.files[0];
      
        if(file) {
        Severity
        Category
        Status
        Source
        Language