twers/re-education

View on GitHub
app/assets/javascripts/directives/openclass.wysihtml5.editor.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function factory has 54 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  .directive('wysihtml5', ['$timeout', 'eventConstants', function factory($timeout, eventConstants) {

    var directive = {
      restrict: 'C',
      require: '?ngModel',
Severity: Major
Found in app/assets/javascripts/directives/openclass.wysihtml5.editor.js - About 2 hrs to fix

    Function link has 47 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

          link: function (scope, element, attrs, ngModelCtrl) {
    
            var editor = new wysihtml5.Editor(element.get(0), {
              parserRules: wysihtml5ParserRules,
              toolbar: element.siblings('.toolbar').get(0),
    Severity: Minor
    Found in app/assets/javascripts/directives/openclass.wysihtml5.editor.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status