terranisu/angular-emoji-picker

View on GitHub

Showing 10 of 10 total issues

File emoji-hex.js has 929 lines of code (exceeds 250 allowed). Consider refactoring.
Open

angular.module('vkEmojiPicker').constant('EmojiHex', (function () {
  var codes = {
    copyright:'00a9',
    registered:'00ae',
    bangbang:'203c',
Severity: Major
Found in src/js/constants/emoji-hex.js - About 2 days to fix

    Function $get has 132 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        function ($rootScope, $http, $sce, $templateCache, $compile) {
          function EmojiPopover(element, config) {
            var $popover = {};
            var fetchPromises = {};
            var popoverLinker;
    Severity: Major
    Found in src/js/services/emoji-popover.js - About 5 hrs to fix

      Function EmojiPopover has 129 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

            function EmojiPopover(element, config) {
              var $popover = {};
              var fetchPromises = {};
              var popoverLinker;
              var popoverTemplate;
      Severity: Major
      Found in src/js/services/emoji-popover.js - About 5 hrs to fix

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

        module.exports = function (grunt) {
          grunt.initConfig({
            pkg: grunt.file.readJSON('package.json'),
        
            clean: {
        Severity: Major
        Found in Gruntfile.js - About 3 hrs to fix

          Function link has 47 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                link: function ($scope, element, attrs) {
                  var recentLimit = parseInt(attrs.recentLimit, 10) || RECENT_LIMIT;
                  var outputFormat = attrs.outputFormat || DEFAULT_OUTPUT_FORMAT;
          
                  $scope.groups = emojiGroups.groups;
          Severity: Minor
          Found in src/js/directives/emoji-picker.js - About 1 hr to fix

            Function link has 45 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

                link: function ($scope, element) {
                  var createMapping = function (words, emojis) {
                    var map = [];
                    var offset = 0;
            
            
            Severity: Minor
            Found in src/js/directives/emoji-removable.js - About 1 hr to fix

              Function getPopoverOffset has 35 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

                      var getPopoverOffset = function (placement, position, popoverWidth, popoverHeight) {
                        var offset;
              
                        switch (placement) {
                          case 'right':
              Severity: Minor
              Found in src/js/services/emoji-popover.js - About 1 hr to fix

                Function fromCodePoint has 34 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                      var fromCodePoint = function () {
                        var MAX_SIZE = 0x4000;
                        var codeUnits = [];
                        var highSurrogate;
                        var lowSurrogate;
                Severity: Minor
                Found in src/js/emoji-picker.js - About 1 hr to fix

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

                  module.exports = function (config) {
                    config.set({
                  
                      // base path that will be used to resolve all patterns (eg. files, exclude)
                      basePath: '',
                  Severity: Minor
                  Found in karma.conf.js - About 1 hr to fix

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

                        function ($rootScope, $http, $sce, $templateCache, $compile) {
                    Severity: Minor
                    Found in src/js/services/emoji-popover.js - About 35 mins to fix
                      Severity
                      Category
                      Status
                      Source
                      Language