Showing 666 of 1,371 total issues
Function addMembersToTeam
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const addMembersToTeam = (team) => {
SELF.apiCall = (params) => {
const BODY = JSON.stringify(params);
let apiPath = SELF.endpointsService.participantTeamInviteURL(team);
if (SELF.isHost) {
Function update_failed_jobs_and_send_logs
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def update_failed_jobs_and_send_logs(
Function cleanup_submission
has 11 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
def cleanup_submission(
Function onSuccess
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
onSuccess: function(response) {
var details = response.data;
vm.submissionResult = details;
if (vm.submissionResult.count === 0) {
Function createTeamSubmit
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
createTeamSubmit(isvalidForm) {
if (isvalidForm) {
const API_PATH = 'participants/participant_team';
const url = this.create_team['team_url'];
let TEAM_BODY: any = {
Function deleteChallenge
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
deleteChallenge() {
const SELF = this;
const redirectTo = '/dashboard';
SELF.apiCall = () => {
Function createTeamSubmit
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
createTeamSubmit(isvalidForm) {
if (isvalidForm) {
const API_PATH = this.createTeamsPath;
const url = this.create_team['team_url'];
let TEAM_BODY: any = {
Function countDownTimer
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
countDownTimer(SELF, eachPhase) {
if (!SELF.isClockStarted) {
SELF.remainingTime = parseInt(eachPhase.limits.remaining_time, 10);
}
SELF.days = Math.floor(SELF.remainingTime / 24 / 60 / 60);
Function editForumURL
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
editForumURL() {
const SELF = this;
SELF.apiCall = (params) => {
const BODY = JSON.stringify(params);
SELF.apiService
Function editChallengeTitle
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
vm.editChallengeTitle = function(editChallengeTitleForm) {
if (editChallengeTitleForm) {
var challengeHostList = utilities.getData("challengeCreator");
for (var challenge in challengeHostList) {
if (challenge == vm.challengeId) {
Function dynHeader
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function dynHeader() {
var directive = {
link: link,
templateUrl: 'dist/views/web/partials/main-header.html',
transclude: true,
Function start
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
vm.start = function() {
vm.stopFetchingSubmissions();
vm.poller = $interval(function() {
parameters.url = "jobs/challenge/" + vm.challengeId + "/challenge_phase/" + vm.phaseId + "/submission/?page=" + Math.ceil(vm.currentPage);
parameters.method = 'GET';
Function editChallengeOverview
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
vm.editChallengeOverview = function(editChallengeOverviewForm) {
if (editChallengeOverviewForm) {
var challengeHostList = utilities.getData("challengeCreator");
for (var challenge in challengeHostList) {
if (challenge == vm.challengeId) {
Function editEvaluationCriteria
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
vm.editEvaluationCriteria = function(editEvaluationCriteriaForm) {
if (editEvaluationCriteriaForm) {
var challengeHostList = utilities.getData("challengeCreator");
for (var challenge in challengeHostList) {
if (challenge == vm.challengeId) {
Function editTermsAndConditions
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
vm.editTermsAndConditions = function(editTermsAndConditionsForm) {
if (editTermsAndConditionsForm) {
var challengeHostList = utilities.getData("challengeCreator");
for (var challenge in challengeHostList) {
if (challenge == vm.challengeId) {
Function editSubmissionGuideline
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
vm.editSubmissionGuideline = function(editSubmissionGuidelinesForm) {
if (editSubmissionGuidelinesForm) {
var challengeHostList = utilities.getData("challengeCreator");
for (var challenge in challengeHostList) {
if (challenge == vm.challengeId) {
Function editprofileDialog
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
vm.editprofileDialog = function(ev) {
switch (ev.currentTarget.id) {
case "first_name":
vm.titleInput = "First Name";
vm.editid = "first_name";
Function logs_poller
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
vm.logs_poller = $interval(function () {
if (vm.evaluation_module_error) {
vm.workerLogs = [];
vm.workerLogs.push(vm.evaluation_module_error);
}
Function loadingWrapper
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
loadingWrapper(httpCall, isLoader = true) {
if (isLoader) {
setTimeout(() => {
this.globalService.toggleLoading(true);
}, 100);
Function js
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function js() {
var app = gulp.src('frontend/src/js/app.js')
.pipe(concat('app.js'))
.pipe(gulp_if(production, rename({ suffix: '.min' })))
.pipe(gulp_if(production, uglify({ mangle: false })))