Dogfalo/materialize

View on GitHub
js/tooltip.js

Summary

Maintainability
D
1 day
Test Coverage

Function tooltip has 171 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    $.fn.tooltip = function (options) {
      var timeout = null,
      margin = 5;

      // Defaults
Severity: Major
Found in js/tooltip.js - About 6 hrs to fix

    Function mouseenter.tooltip has 89 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            origin.on({'mouseenter.tooltip': function(e) {
              var showTooltip = function() {
                setAttributes();
                started = true;
                tooltipEl.velocity('stop');
    Severity: Major
    Found in js/tooltip.js - About 3 hrs to fix

      Function showTooltip has 86 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

                var showTooltip = function() {
                  setAttributes();
                  started = true;
                  tooltipEl.velocity('stop');
                  backdrop.velocity('stop');
      Severity: Major
      Found in js/tooltip.js - About 3 hrs to fix

        There are no issues that match your filters.

        Category
        Status