Showing 666 of 1,371 total issues
Function getAllResults
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
vm.getAllResults = function(parameters, resultsArray, typ){
parameters.callback = {
onSuccess: function(response) {
var data = response.data;
var results = data.results;
Function onSuccess
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
onSuccess: function(response) {
$rootScope.notify("success", "New team- '" + vm.team.name + "' has been created");
var details = response.data;
vm.teamId = details.id;
vm.team.error = false;
Function sendRequest
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.sendRequest = function(parameters, header, type) {
var url = EnvironmentConfig.API + parameters.url;
var data = parameters.data;
var token = parameters.token;
var method = parameters.method;
Function editChallengeOverviewUpload
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
editChallengeOverviewUpload() {
const SELF = this;
SELF.apiCall = (params) => {
const FORM_DATA: FormData = new FormData();
FORM_DATA.append('overview_file', params['overview_file']);
Function editEvaluationCriteriaUpload
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
editEvaluationCriteriaUpload() {
const SELF = this;
SELF.apiCall = (params) => {
const FORM_DATA: FormData = new FormData();
FORM_DATA.append('evaluation_criteria_file', params['evaluation_criteria_file']);
Function editLeaderboardSchema
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
editLeaderboardSchema() {
const SELF = this;
SELF.apiCall = (params) => {
let currentLeaderboard = this.leaderboard;
this.logger.info(params);
Function editChallengeTermsAndConditionsUpload
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
editChallengeTermsAndConditionsUpload() {
const SELF = this;
SELF.apiCall = (params) => {
const FORM_DATA: FormData = new FormData();
FORM_DATA.append('terms_and_conditions_file', params['terms_and_conditions_file']);
Function editChallengeImage
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
editChallengeImage() {
const SELF = this;
SELF.apiCall = (params) => {
const FORM_DATA: FormData = new FormData();
FORM_DATA.append('image', params['image']);
Function editTestAnnotations
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
editTestAnnotations() {
const SELF = this;
SELF.apiCall = (params) => {
const FORM_DATA: FormData = new FormData();
FORM_DATA.append('test_annotation', params['test_annotation']);
Function editSubmissionGuidelineUpload
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
editSubmissionGuidelineUpload() {
const SELF = this;
SELF.apiCall = (params) => {
const FORM_DATA: FormData = new FormData();
FORM_DATA.append('submission_guidelines_file', params['submission_guidelines_file']);
Function ngOnInit
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ngOnInit() {
if (this.authService.isLoggedIn()) {
this.isLoggedIn = true;
}
this.routerPublic = this.router;
Function addMembersToTeamWrapper
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
addMembersToTeamWrapper() {
const SELF = this;
const addMembersToTeam = (team) => {
SELF.apiCall = (params) => {
const BODY = JSON.stringify(params);
Function publishChallenge
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
vm.publishChallenge = function(ev) {
ev.stopPropagation();
vm.toggleChallengeState = null;
vm.publishDesc = null;
if (vm.isPublished)
Function loadPaginationData
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
loadPaginationData(url) {
if (url !== null) {
const SELF = this;
const API_PATH = url.split(environment.api_endpoint)[1];
SELF.apiService.getUrl(API_PATH, true).subscribe(
Function cancelSubmission
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
cancelSubmission(submission) {
const SELF = this;
if (submission.status != "submitted") {
SELF.globalService.showToast('error', 'Only unproccessed submissions can be cancelled', 5);
return;
Function phaseSplitSelected
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
phaseSplitSelected() {
const SELF = this;
return (phaseSplit) => {
SELF.selectedPhaseSplit = phaseSplit;
SELF.isPhaseSplitLeaderboardPublic = SELF.selectedPhaseSplit['visibility'];
Function cancelSubmission
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
cancelSubmission(submission) {
const SELF = this;
if (submission.status != "submitted") {
SELF.globalService.showToast('error', 'Only unproccessed submissions can be cancelled', 5);
return;
Function editChallengeTag
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
vm.editChallengeTag = function(editChallengeTagDomainForm) {
var new_tags;
if (!editChallengeTagDomainForm) {
$mdDialog.hide();
return;
Function onSuccess
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
onSuccess: function() {
$rootScope.notify("success", "Team " + vm.team.name + " has been created successfully!");
vm.team.error = false;
vm.stopLoader();
// reset the team attributes
Function userLogin
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
userLogin(loginFormValid) {
if (!loginFormValid) {
this.globalService.stopLoader();
return;
}