app/scripts/controllers/survey.js
Function controller
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
controller: function ($stateParams, $state, $scope, surveyFactory, growl, appConfig, i18n, alertFactory) {
if(!$stateParams.surveyUUID){
growl.error(i18n('surveyNotFound'), {persistent: true});
return;
Function save
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
$scope.save = function () {
$scope.isSaving = true;
var surveyResponse = {
Function controller
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
controller: function ($stateParams, $state, $scope, surveyFactory, growl, appConfig, i18n, alertFactory) {