pasupulaphani/angular-socialsharing

View on GitHub

Showing 5 of 5 total issues

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

module.exports = function(grunt) {

    grunt.initConfig({
        pkg: grunt.file.readJSON('package.json'),
        library: grunt.file.readJSON('bower.json'),
Severity: Major
Found in Gruntfile.js - About 2 hrs to fix

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

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

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

                      encode: function(params) {
      
                          var encodedStr = "";
      
                          // We loop over all the keys so we encode them.
      Severity: Minor
      Found in src/angular-socialsharing/services/utilsFactory.js - About 1 hr to fix

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

                        $get: function($window, $q, ssUtils) {
                            return {
                                intent: function(type, params) {
        
                                    type = type || 'tweet';
        Severity: Minor
        Found in src/angular-socialsharing/services/twtProvider.js - About 1 hr to fix

          Avoid deeply nested control flow statements.
          Open

                                          for (var innerKey in value) {
                                              if (value.hasOwnProperty(innerKey)) {
                                                  var innerValue = value[innerKey];
                                                  encodedStr = encodedStr + key + "=" + encodeURIComponent(value[innerKey]) + "&";
                                              }
          Severity: Major
          Found in src/angular-socialsharing/services/utilsFactory.js - About 45 mins to fix
            Severity
            Category
            Status
            Source
            Language