onijim/owl-table

View on GitHub
src/directives/owlPrint.js

Summary

Maintainability
A
3 hrs
Test Coverage

Function owlPrintDirective has 53 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function owlPrintDirective($window, owlTable, $timeout) {
        var printSection = document.getElementById('owlPrintSection');

        if (!printSection) {
            printSection = document.createElement('div');
Severity: Major
Found in src/directives/owlPrint.js - About 2 hrs to fix

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

            function link (scope, elem, attrs, tableCtrl) {
                elem.on('click', function () {
                    elem.tooltip({
                        title: 'Please wait...',
                        trigger: 'manual',
    Severity: Minor
    Found in src/directives/owlPrint.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status