funretro/distributed

View on GitHub

Showing 6 of 15 total issues

File mainController.js has 279 lines of code (exceeds 250 allowed). Consider refactoring.
Open

/* global EmojiPicker */
'use strict';

angular
  .module('fireideaz')
Severity: Minor
Found in js/mainController.js - About 2 hrs to fix

    Function newboard has 54 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    exports.newboard = functions.https.onRequest(function(req, res) {
      function createUserId() {
        return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
          var r = Math.random()*16|0, v = c === 'x' ? r : (r&0x3|0x8);
          return v.toString(16);
    Severity: Major
    Found in functions/index.js - About 2 hrs to fix

      Function exports has 41 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      module.exports = function(config) {
        config.set({
      
          basePath: '',
          frameworks: ['mocha', 'chai', 'sinon'],
      Severity: Minor
      Found in karma.conf.js - About 1 hr to fix

        Function createNewBoard has 29 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

          function createNewBoard(userId) {
            var board = admin.database().ref('/boards/' + userId);
        
            board.set({
              boardId: req.query.name,
        Severity: Minor
        Found in functions/index.js - About 1 hr to fix

          Function generatePdf has 27 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

              importExportService.generatePdf = function(board, messages, sortField) {
                /* globals jsPDF */
                var pdf = new jsPDF();
                var currentHeight = 10;
          
          
          Severity: Minor
          Found in js/services/importExportService.js - About 1 hr to fix

            Function vote has 5 arguments (exceeds 4 allowed). Consider refactoring.
            Open

                voteService.vote = function(userId, maxVotes, messages, messageKey, votes) {
            Severity: Minor
            Found in js/services/voteService.js - About 35 mins to fix
              Severity
              Category
              Status
              Source
              Language