Showing 9 of 37 total issues
Function exports
has 398 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(grunt) {
// show elapsed time at the end
require('time-grunt')(grunt);
// load all grunt tasks
require('load-grunt-tasks')(grunt);
File Gruntfile.js
has 408 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// Generated on 2014-04-25 using generator-mobile 1.0.0-alpha.1
/* jshint ignore:start */
'use strict';
var LIVERELOAD_PORT = 35729;
var lrSnippet = require('connect-livereload')({
Function getRuns
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
CountScoreKeeper.prototype.getRuns = function(hand, starter){
var points = 0;
var cards = hand.concat(starter);
Function Game
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Game(options){
this.$deck = new Deck(options.$deck);
var boardSettings = {scoreKeeper:new ScoreKeeper()};
for(var attrname in options.$board){
Function bindEvents
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
BaseState.prototype.bindEvents = function(){
$('#deck').on('click', function(e){
this.unbindEvents();
var cardIndex = $('#deck ul').children().indexOf(e.target.parentNode);
$(e.target).addClass('selected');
Function evaluatePlay
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
PlayScoreKeeper.prototype.evaluatePlay = function(player, playCards, totalPlayedCards){
var points = 0;
var pointDifference = 0;
var additionalMessage = '';
Function combinationUtil
has 8 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function combinationUtil(inputArray, sizeOfInputArray, sizeOfCombination, index, tempArray, indexOfCurrentElementOfInputArray, matchesArr, matchCondition)
Avoid too many return
statements within this function. Open
Open
return;
Avoid too many return
statements within this function. Open
Open
return 0;