Cloud-CV/EvalAI

View on GitHub
frontend/src/js/controllers/challengeCreate.js

Summary

Maintainability
B
4 hrs
Test Coverage

Function ChallengeCreateCtrl has 70 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function ChallengeCreateCtrl(utilities, loaderService, $rootScope, $state) {
        var vm = this;
        var userKey = utilities.getData('userKey');
        vm.hostTeamId = utilities.getData('challengeHostTeamId');
        vm.wrnMsg = {};
Severity: Major
Found in frontend/src/js/controllers/challengeCreate.js - About 2 hrs to fix

    Function challengeCreate has 53 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

            vm.challengeCreate = function() {
                if (vm.hostTeamId) {
                    var fileVal = angular.element(".file-path").val();
    
                    if (fileVal === null || fileVal === "") {
    Severity: Major
    Found in frontend/src/js/controllers/challengeCreate.js - About 2 hrs to fix

      There are no issues that match your filters.

      Category
      Status