mehranhatami/palindromes

View on GitHub

Showing 4 of 4 total issues

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

module.exports = function (grunt) {
  'use strict';

  // Project configuration.
  grunt.initConfig({
Severity: Major
Found in Gruntfile.js - About 4 hrs to fix

    Function moduleDefinition has 97 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      function moduleDefinition() {
    
        function Palindrome(text, index) {
          this.text = text;
          this.length = text.length;
    Severity: Major
    Found in palindromes.js - About 3 hrs to fix

      Function find has 71 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

          function find(baseStr, maxlen) {
      
            if (typeof baseStr !== 'string' || baseStr === '' || maxlen < 2) {
              return null;
            }
      Severity: Major
      Found in palindromes.js - About 2 hrs to fix

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

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