alxndr/lyrem-ipsum

View on GitHub
lib/assets/javascripts/spin.js

Summary

Maintainability
B
5 hrs
Test Coverage

Function initVML has 49 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  function initVML() {

    /* Utility function to create a VML tag */
    function vml(tag, attr) {
      return createEl('<' + tag + ' xmlns="urn:schemas-microsoft.com:vml" class="spin-vml">', attr)
Severity: Minor
Found in lib/assets/javascripts/spin.js - About 1 hr to fix

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

        Spinner.prototype.lines = function(el, o) {
          var r = o.length+o.width
            , s = 2*r
    
          function grp() {
    Severity: Minor
    Found in lib/assets/javascripts/spin.js - About 1 hr to fix

      Function spin has 32 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          spin: function(target) {
            this.stop()
      
            var self = this
              , o = self.opts
      Severity: Minor
      Found in lib/assets/javascripts/spin.js - About 1 hr to fix

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

            lines: function(el, o) {
              var i = 0
                , start = (o.lines - 1) * (1 - o.direction) / 2
                , seg
        
        
        Severity: Minor
        Found in lib/assets/javascripts/spin.js - About 1 hr to fix

          There are no issues that match your filters.

          Category
          Status