whitef0x0/tellform

View on GitHub

Showing 58 of 608 total issues

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

            controller: function($document, $window, $scope){
                var NOSCROLL = false;
                var FORM_ACTION_ID = 'submit_field';
                $scope.forms = {};
                

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

    module.exports = function(grunt) {
        require('jit-grunt')(grunt);
    
        // Unified Watch Object
        var watchFiles = {
    Severity: Major
    Found in gruntfile.js - About 1 day to fix

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

                  controller: function($scope){
      
                      /*
                      **  Initialize scope with variables
                      */
      Severity: Major
      Found in public/modules/forms/admin/directives/edit-form.client.directive.js - About 1 day to fix

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

        module.exports = function(db) {
            // Initialize express app
            var app = express();
            var url = require('url');
        
        
        Severity: Major
        Found in config/express.js - About 1 day to fix

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

                      controller: function($scope){
                          $scope.table = {
                              masterChecker: false,
                              rows: []
                          };

            File form.server.model.js has 370 lines of code (exceeds 250 allowed). Consider refactoring.
            Open

            'use strict';
            
            /**
             * Module dependencies.
             */
            Severity: Minor
            Found in app/models/form.server.model.js - About 4 hrs to fix

              File submit-form.client.directive.js has 331 lines of code (exceeds 250 allowed). Consider refactoring.
              Open

              'use strict';
              
              //FIXME: Should find an appropriate place for this
              //Setting up jsep
              jsep.addBinaryOp('contains', 10);

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

                exports.forgot = function(req, res) {
                    async.waterfall([
                        // Generate random token
                        function(done) {
                            crypto.randomBytes(20, function(err, buffer) {
                Severity: Major
                Found in app/controllers/users/users.password.server.controller.js - About 3 hrs to fix

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

                                  $scope.openEditModal = function(curr_field, isEdit, field_index){
                                      $scope.editFieldModal = $uibModal.open({
                                          animation: true,
                                          templateUrl: 'editFieldModal.html',
                                          windowClass: 'edit-modal-window',
                  Severity: Major
                  Found in public/modules/forms/admin/directives/edit-form.client.directive.js - About 3 hrs to fix

                    File gruntfile.js has 315 lines of code (exceeds 250 allowed). Consider refactoring.
                    Open

                    'use strict';
                    
                    var bowerArray = ['public/lib/angular/angular.min.js',
                        'public/lib/angular-scroll/angular-scroll.min.js',
                        'public/lib/angular-ui-select/dist/select.min.js',
                    Severity: Minor
                    Found in gruntfile.js - About 3 hrs to fix

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

                                              controller:  function($uibModalInstance, $scope) {
                                                  $scope.field = curr_field;
                                                  $scope.showLogicJump = false;
                      
                                                  $scope.isEdit = isEdit;
                      Severity: Major
                      Found in public/modules/forms/admin/directives/edit-form.client.directive.js - About 3 hrs to fix

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

                        function BaseFieldSchema(){
                            Schema.apply(this, arguments);
                        
                            this.add({
                                globalId: {
                        Severity: Major
                        Found in app/models/form_field.server.model.js - About 3 hrs to fix

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

                                  $scope.update = $rootScope.update = function(updateImmediately, data, shouldDiff, refreshAfterUpdate, cb){
                                      var continueUpdate = true;
                                      if(!updateImmediately){
                                          continueUpdate = !$rootScope.saveInProgress;
                                      }

                            File form.server.routes.test.js has 282 lines of code (exceeds 250 allowed). Consider refactoring.
                            Open

                            'use strict';
                            
                            var should = require('should'),
                                lodash = require('lodash'),
                                app = require('../../server'),
                            Severity: Minor
                            Found in app/tests/form.server.routes.test.js - About 2 hrs to fix

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

                              exports.reset = function(req, res, next) {
                                  if(req.body.newPassword.length < 4){
                                      return res.status(400).send({
                                          message: 'Password must be at least 4 characters long'
                                      });
                              Severity: Major
                              Found in app/controllers/users/users.password.server.controller.js - About 2 hrs to fix

                                File edit-form.client.directive.js has 265 lines of code (exceeds 250 allowed). Consider refactoring.
                                Open

                                
                                'use strict';
                                
                                angular.module('forms').directive('editFormDirective', ['$rootScope', 'FormFields', '$uibModal',
                                    function ($rootScope, FormFields, $uibModal) {
                                Severity: Minor
                                Found in public/modules/forms/admin/directives/edit-form.client.directive.js - About 2 hrs to fix

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

                                  'use strict';
                                  
                                  /**
                                   * Module dependencies.
                                   */
                                  Severity: Minor
                                  Found in app/controllers/forms.server.controller.js - About 2 hrs to fix

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

                                    module.exports = function (io, socket) {
                                        var visitorsData = {};
                                    
                                        var saveVisitorData = function (data, socket, cb){
                                            Form.findById(data.formId, function(err, form) {
                                    Severity: Major
                                    Found in app/sockets/analytics_service.js - About 2 hrs to fix

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

                                                      var evaluateLogicJump = function(field){
                                                          var logicJump = field.logicJump;
                                      
                                                          if(logicJump.enabled){
                                                              if (logicJump.expressionString && logicJump.valueB && field.fieldValue) {

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

                                        exports.changePassword = function(req, res) {
                                            // Init Variables
                                            var passwordDetails = req.body;
                                        
                                            if (req.user) {
                                        Severity: Major
                                        Found in app/controllers/users/users.password.server.controller.js - About 2 hrs to fix
                                          Severity
                                          Category
                                          Status
                                          Source
                                          Language