rafinskipg/Backbone.Validater

View on GitHub

Showing 5 of 9 total issues

File main.js has 275 lines of code (exceeds 250 allowed). Consider refactoring.
Open

(function (root, factory) {
    if (typeof define === 'function' && define.amd) {
        // AMD. Register as an anonymous module.
        define(['jQuery', '_', 'Backbone'], factory);
    } else {
Severity: Minor
Found in app/main.js - About 2 hrs to fix

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

          getFieldsFromFieldsString: function(fieldsString){
            var self = this;
    
            return fieldsString.match(/[^&]+(?=\{)\{\S+\}|[^&]+/g).map(function(field){
              
    Severity: Minor
    Found in app/main.js - About 1 hr to fix

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

      module.exports = function(grunt) {
        // Load grunt tasks automatically
        require('load-grunt-tasks')(grunt);
        
        grunt.initConfig({
      Severity: Minor
      Found in Gruntfile.js - About 1 hr to fix

        Avoid too many return statements within this function.
        Open

                  return true;
        Severity: Major
        Found in app/main.js - About 30 mins to fix

          Avoid too many return statements within this function.
          Open

                  return false;
          Severity: Major
          Found in app/main.js - About 30 mins to fix
            Severity
            Category
            Status
            Source
            Language