Showing 30 of 59 total issues
File media.js
has 802 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function () {
'use strict';
var weekdayPL = [
[
File conversation.js
has 685 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function() {
'use strict';
if(!String.prototype.endsWith) {
String.prototype.endsWith = function(searchString, position) {
Function react
has 123 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Conversation.prototype.react = function(word) {
if(this.muted) {
word = word.toLowerCase();
if(word === this.nick + '!' || (
word.indexOf(this.nick) !== -1 && (
Function exports
has 123 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function () {
var VOTING_UNDERWAY = 'Voting Underway',
VOTING_REJECTED = 'Rejected',
VOTING_MERGED = 'Merged',
voteStatusLabels = [
Function exports
has 119 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function () {
var conversations = {};
var muted = false;
if(!config.irc) {
console.error('No IRC settings in config. IRC bot disabled.');
Function positiveReaction
has 98 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Conversation.prototype.positiveReaction = function(string) {
var sentences;
var words = {
description : [
'cool', 'great', 'marvelous',
Function negativeReaction
has 94 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Conversation.prototype.negativeReaction = function(string) {
var sentences;
var words = {
jabbering : [
'jabbering', 'spiel', 'stories',
File voting.js
has 306 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
(function() {
var define = require('amdefine')(module);
var deps = [
'lodash',
Function hornyReaction
has 59 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Conversation.prototype.hornyReaction = function(word) {
if(isNo(word)) {
this.horny = false;
this.postGreet(word);
this.emit('say', 'okay :(');
Function exports
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function (votingConfig) {
var templates = {
votePassComment: template.render('voting/votePassComment.md'),
voteFailComment: template.render('voting/voteFailComment.md'),
modifiedWarning: template.render('voting/modifiedWarning.md'),
Function tallyVotes
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
VoteController.prototype.tallyVotes = function tallyVotes(pr) {
var self = this;
var tally = pr.comments.reduce(function (result, comment) {
var user = comment.user.login,
Function RouteVideo
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function RouteVideo(app) {
/**
* Display a message if the webhooks are operational.
*/
app.get('/video', function (req, res) {
Function ServiceHello
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ServiceHello(app) {
var app = express();
app.enable('trust proxy');
var port = 3010;
sockets.lookup['hello'] = port;
Function exports
has 43 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(config, gh) {
var eliza = new ElizaBot();
// returns all results of a paginated function
Function makePlaylist
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var makePlaylist = function (plSource) {
var items = [];
var grandTotalSeconds = 0;
// compute total seconds and ETL
var i;
Function exports
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function () {
// If twitter is not enabled, return immediately.
if (config.features.twitter !== true) {
return {
destroy: function () {},
Function shutup
has 39 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Conversation.prototype.shutup = function(word) {
var self = this;
word = word.toLowerCase();
var regexSec = /([0-9]+[\.,]?[0-9]*?)\s?se?c?o?n?d?s?/;
var regexMin = /([0-9]+[\.,]?[0-9]*?)\s?mi?n?u?t?e?s?/;
Function RouteCommits
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function RouteCommits(app) {
//Generate our color scheme.
var colorScheme = new ColorScheme;
colorScheme.from_hue(21)
.scheme('triade')
Function checkInitNewConversation
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function checkInitNewConversation(nick) {
if(nick !== config.irc.user) {
if(conversations[nick] === undefined || conversations[nick] === null) {
var c = new Conversation(nick, config.irc.user);
conversations[nick] = c;
Function setPrStatusLabel
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function setPrStatusLabel(repo, label, pr) {
console.info('DEBUG: Getting labels on issue', {
user: repo.user,
repo: repo.repo,
number: pr.number