Showing 58 of 132 total issues
Function controller
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var controller = function ($scope, $location, dataPublisher, mixedContentToArray, configService) {
/*This controller instance */
var apiDomain = configService.apiDomain;
var c = this;
var authorizationPopup = {
Function controller
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var controller = function ($scope, $routeParams, $location, mixedContentToArray, configService, dataPublisher) {
var apiDomain = configService.apiDomain;
var c = this;
c.errors = [];
Function submit
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
c.submit = function () {
var form = $scope.meetingInfoForm;
var events;
if (!c.showEmptyState) {
events = calendar.fullCalendar('clientEvents');
Function controller
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var controller = function ($scope, dataPublisher, mixedContentToArray, configService) {
var apiDomain = configService.apiDomain;
var c = this;
c.errors = [];
c.success = false;
Function controller
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var controller = function ($scope, dataPublisher, mixedContentToArray, configService) {
var apiDomain = configService.apiDomain;
var c = this;
c.errors = [];
Function service
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var service = function ($resource, configService) {
var apiDomain = configService.apiDomain;
var orgUser = $resource(apiDomain + '/companies/employees/:userId', null, {
Function submit
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
submit: function () {
var toSend;
var form = $scope.opC_profile_form;
this.invalidFields.passwordLength = form.password.$error.minlength;
this.invalidFields.passwordMatch = c.dataCopy.password !== c.dataCopy.password_confirmation;
Function submit
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
submit: function () {
var toSend;
var form = $scope.upC_profile_form;
this.invalidFields.passwordLength = form.password.$error.minlength;
this.invalidFields.passwordMatch = c.dataCopy.password !== c.dataCopy.password_confirmation;
Function submit
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
submit: function () {
if (this.calendars.length === 0) {
this.errors.push('Before importing a schedule select it after having pressed get schedules')
}
Function service
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var service = function () {
var process = function (object, container, clearContainerBefore) {
function InvalidArgumentException(msg, argumentIndex) {
this.message = msg;
Function login
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
c.login = function () {
var remember;
//Processes the submit of usiForm (organization sign in)
var form = $scope.usiForm;
c.errors = [];
Function saveMeetingTimeslots
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var saveMeetingTimeslots = function (meetingId, events, redirect, showPopupCondition, isUpdate) {
var counter = 0;
var groupId;
if (isUpdate){
groupId = c.groupId;
Function reset
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
c.reset = function () {
var form = $scope.resetForm;
c.errors = [];
c.invalidFields.emailReq = form.email.$error.required;
c.invalidFields.emailVal = form.email.$error.email;
Function submit
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
submit: function () {
var form = $scope.addUserForm;
//Checks the validity of input fields
this.invalidFields.nameReq = form.name.$error.required;
this.invalidFields.emailReq = form.email.$error.required;
Function process
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
c.process = function () {
var form = $scope.regForm;
c.errors = [];
//Validity status of input fields checking
c.invalidFields.passwordReq = form.password.$error.required;
Function submit
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
submit: function () {
var toSend = {};
var form = $scope.editForm;
//Checks the validity status of input fields
this.invalidFields.emailVal = form.email.$error.email;
Function change
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
change: function () {
var validMembers = [];
angular.forEach(this.members, function (value, key) {
if (value === true) {
validMembers.push(key.toString());
Function login
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
c.login = function () {
var remember;
//Processes the submit of usiForm (organization sign in)
var form = $scope.signInForm;
//Checks the validity status of input fields
Function updateMeeting
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var updateMeeting = function (events) {
var alsoEditedEvents = false;
var newEvents = backendEventAdapter(checkNewEvents(events), true);
var modifiedEvents = backendEventAdapter(changedEvents, false);
console.log(newEvents);
Function exports
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function (config) {
config.set({
// base path that will be used to resolve all patterns (eg. files, exclude)
basePath: './',