Showing 10 of 35 total issues
Function exports
has 123 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(grunt) {
var databaseUrl;
var re;
var swagger;
Function getSubmissionFileURL
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var getSubmissionFileURL = function(method, req, res, next) {
var challengeId = req.swagger.params.challengeId.value;
var submissionId = req.swagger.params.submissionId.value;
var user = auth.getSigninUser(req);
var fileId = req.swagger.params.fileId.value;
Function getChallengeFileURL
has 84 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var getChallengeFileURL = function(method, req, res, next) {
// check authorization
var challengeId = req.swagger.params.challengeId.value;
var fileId = req.swagger.params.fileId.value;
var user = auth.getSigninUser(req);
Function exports
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(sequelize, DataTypes) {
var Scorecard = sequelize.define('Scorecard', {
// primary key
id: {
Function exports
has 63 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(sequelize, DataTypes) {
var Challenge = sequelize.define('Challenge', {
// primary key
id: {
Function exports
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(sequelize, DataTypes) {
var File = sequelize.define('File', {
// primary key
id: {
type: DataTypes.BIGINT, primaryKey: true, autoIncrement: true,
Function exports
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(sequelize, DataTypes) {
var Submission = sequelize.define('Submission', {
// primary key
id: {
type: DataTypes.BIGINT, primaryKey: true, autoIncrement: true,
Function exports
has 46 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(sequelize, DataTypes) {
var Participant = sequelize.define('Participant', {
// primary key
id: {
type: DataTypes.BIGINT, primaryKey: true, autoIncrement: true,
Function exports
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(sequelize, DataTypes) {
var ScorecardItem = sequelize.define('ScorecardItem', {
// primary key
id: {
Function exports
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(sequelize, DataTypes) {
var Requirement = sequelize.define('Requirement', {
// primary key
id: {