jquery/jquery

View on GitHub
src/css.js

Summary

Maintainability
C
7 hrs
Test Coverage

File css.js has 262 lines of code (exceeds 250 allowed). Consider refactoring.
Open

define( [
    "./core",
    "./core/access",
    "./var/rcssNum",
    "./var/isIE",
Severity: Minor
Found in src/css.js - About 2 hrs to fix

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

        style: function( elem, name, value, extra ) {
    
            // Don't set styles on text and comment nodes
            if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
                return;
    Severity: Minor
    Found in src/css.js - About 1 hr to fix

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

      function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) {
          var i = dimension === "width" ? 1 : 0,
              extra = 0,
              delta = 0;
      
      
      Severity: Minor
      Found in src/css.js - About 1 hr to fix

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

        function getWidthOrHeight( elem, dimension, extra ) {
        
            // Start with computed style
            var styles = getStyles( elem ),
        
        
        Severity: Minor
        Found in src/css.js - About 1 hr to fix

          Function boxModelAdjustment has 6 arguments (exceeds 4 allowed). Consider refactoring.
          Open

          function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) {
          Severity: Minor
          Found in src/css.js - About 45 mins to fix

            There are no issues that match your filters.

            Category
            Status