SOFTWARE-CLINIC/featurebook-serve

View on GitHub

Showing 4 of 21 total issues

Function serve has 58 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function serve(specDir, port, cb) {
  var app = express();

  var markdownOptions = {
    imageRenderer: imageRenderer,
Severity: Major
Found in lib/featurebook-serve.js - About 2 hrs to fix

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

    module.exports = function (config) {
      config.set({
        basePath: './../',
        frameworks: ['jasmine'],
        reporters: ['progress', 'coverage'],
    Severity: Minor
    Found in test/karma.conf.js - About 1 hr to fix

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

        function featureBookServiceFactory($http) {
          return {
            getMetadata: getMetadata,
            getSummary: getSummary,
            getSpecTree: getSpecTree,
      Severity: Minor
      Found in public/scripts/featurebook.service.js - About 1 hr to fix

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

          function routesConfig($routeProvider) {
            $routeProvider
              .when('/viewer/:path*', {
                templateUrl: 'views/feature-viewer.html',
                controller: 'FeatureViewerController',
        Severity: Minor
        Found in public/scripts/featurebook.routes.js - About 1 hr to fix
          Severity
          Category
          Status
          Source
          Language