stikjs/stik-dom

View on GitHub

Showing 6 of 52 total issues

File node_spec.js has 723 lines of code (exceeds 250 allowed). Consider refactoring.
Open

require("./spec_helper")

describe("$dom", function(){
  describe("hasClass", function(){
    it("whithout the class", function(){
Severity: Major
Found in specs/node_spec.js - About 1 day to fix

    File node.js has 352 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    (function( stik ){
      stik.boundary({
        as: "$elm",
        resolvable: true,
        to: function( $template, $dom ){
    Severity: Minor
    Found in src/node.js - About 4 hrs to fix

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

          return function serializeForm( form, asObj ){
            var i, j, q;
            if (!form || form.nodeName !== "FORM") {
              return;
            }
      Severity: Major
      Found in src/form.js - About 2 hrs to fix

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

        module.exports = function(grunt){
          var srcFiles = [
            'src/module.js',
            'src/node.js',
            'src/form.js'
        Severity: Minor
        Found in Gruntfile.js - About 1 hr to fix

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

              HTMLElement.prototype.insertAdjacentHTML = function(position, html) {
                  "use strict";
          
                  var ref = this,
                        container = ref.ownerDocument.createElementNS("http://www.w3.org/1999/xhtml", "_"),
          Severity: Minor
          Found in specs/polyfills.js - About 1 hr to fix

            Avoid deeply nested control flow statements.
            Open

                              if (form.elements[i].options[j].selected) {
                                q.push(form.elements[i].name + "=" + encodeURIComponent(form.elements[i].options[j].value));
                              }
            Severity: Major
            Found in src/form.js - About 45 mins to fix
              Severity
              Category
              Status
              Source
              Language