Showing 58 of 608 total issues
Function controller
has 310 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Open
module.exports = function(grunt) {
require('jit-grunt')(grunt);
// Unified Watch Object
var watchFiles = {
Function controller
has 250 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
controller: function($scope){
/*
** Initialize scope with variables
*/
Function exports
has 201 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(db) {
// Initialize express app
var app = express();
var url = require('url');
Function controller
has 155 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Open
'use strict';
/**
* Module dependencies.
*/
File submit-form.client.directive.js
has 331 lines of code (exceeds 250 allowed). Consider refactoring. Open
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
Open
exports.forgot = function(req, res) {
async.waterfall([
// Generate random token
function(done) {
crypto.randomBytes(20, function(err, buffer) {
Function openEditModal
has 91 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.openEditModal = function(curr_field, isEdit, field_index){
$scope.editFieldModal = $uibModal.open({
animation: true,
templateUrl: 'editFieldModal.html',
windowClass: 'edit-modal-window',
File gruntfile.js
has 315 lines of code (exceeds 250 allowed). Consider refactoring. Open
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',
Function controller
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
controller: function($uibModalInstance, $scope) {
$scope.field = curr_field;
$scope.showLogicJump = false;
$scope.isEdit = isEdit;
Function BaseFieldSchema
has 78 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function BaseFieldSchema(){
Schema.apply(this, arguments);
this.add({
globalId: {
Function update
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Open
'use strict';
var should = require('should'),
lodash = require('lodash'),
app = require('../../server'),
Function reset
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
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'
});
File edit-form.client.directive.js
has 265 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
'use strict';
angular.module('forms').directive('editFormDirective', ['$rootScope', 'FormFields', '$uibModal',
function ($rootScope, FormFields, $uibModal) {
File forms.server.controller.js
has 262 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
'use strict';
/**
* Module dependencies.
*/
Function exports
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function (io, socket) {
var visitorsData = {};
var saveVisitorData = function (data, socket, cb){
Form.findById(data.formId, function(err, form) {
Function evaluateLogicJump
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
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
Open
exports.changePassword = function(req, res) {
// Init Variables
var passwordDetails = req.body;
if (req.user) {