Showing 50 of 86 total issues
Function Landing
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Landing(runner) {
Base.call(this, runner);
var self = this
, stats = this.stats
Function lookupFiles
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.lookupFiles = function lookupFiles(path, extensions, recursive) {
var files = [];
var re = new RegExp('\\.(' + extensions.join('|') + ')$');
if (!exists(path)) {
Function list
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exports.list = function(failures){
console.log();
failures.forEach(function(test, i){
// format
var fmt = color('error title', ' %s) %s:\n')
Function Doc
has 34 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Doc(runner) {
Base.call(this, runner);
var self = this
, stats = this.stats
Function exports
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(suite){
var suites = [suite];
suite.on('require', visit);
Function XUnit
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function XUnit(runner, options) {
Base.call(this, runner);
var stats = this.stats
, tests = []
, self = this;
Function NyanCat
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function NyanCat(runner) {
Base.call(this, runner);
var self = this
, stats = this.stats
, width = Base.window.width * .75 | 0
Function next
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function next(err, errSuite) {
// if we bail after first err
if (self.failures && suite._bail) return fn();
if (self._abort) return fn();
Function runSuite
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Runner.prototype.runSuite = function(suite, fn){
var total = this.grepTotal(suite)
, self = this
, i = 0;
Function TAP
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function TAP(runner) {
Base.call(this, runner);
var self = this
, stats = this.stats
Function visit
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function visit(obj, file) {
var suite;
for (var key in obj) {
if ('function' == typeof obj[key]) {
var fn = obj[key];
Function JSONReporter
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function JSONReporter(runner) {
var self = this;
Base.call(this, runner);
var tests = []
Function _box
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _box(message, symbol, padding){
symbol = symbol || DEFAULT_BOX_SYMBOL
if(typeof symbol == 'object'){
padding = symbol
Function hook
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Runner.prototype.hook = function(name, fn){
var suite = this.suite
, hooks = suite['_' + name]
, self = this
, timer;
Function parse
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function parse(str) {
var match = /^((?:\d+)?\.?\d+) *(ms|seconds?|s|minutes?|m|hours?|h|days?|d|years?|y)?$/i.exec(str);
if (!match) return;
var n = parseFloat(match[1]);
var type = (match[2] || 'ms').toLowerCase();
Function _divider
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _divider(text, symbol, length){
length = length || DEFAULT_DIVIDER_LENGTH
symbol = symbol || DEFAULT_DIVIDER_SYMBOL
if(typeof text == 'number'){
length = text
Function Dot
has 28 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Dot(runner) {
Base.call(this, runner);
var self = this
, stats = this.stats
Function List
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function List(runner) {
Base.call(this, runner);
var self = this
, stats = this.stats
Function draw
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Progress.prototype.draw = function(ctx){
try {
var percent = Math.min(this.percent, 100)
, size = this._size
, half = size / 2
Function coverage
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function coverage(filename, data) {
var ret = {
filename: filename,
coverage: 0,
hits: 0,