azukiapp/azk

View on GitHub
src/generator/court.js

Summary

Maintainability
C
7 hrs
Test Coverage

Function __convertFoldersToSystems has 62 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  __convertFoldersToSystems() {
    let systems = {};
    let not_version = [];

    _.forEach(this.__folder_evidences_suggestion, function(folder_evidence_suggestion) {
Severity: Major
Found in src/generator/court.js - About 2 hrs to fix

    File court.js has 264 lines of code (exceeds 250 allowed). Consider refactoring.
    Open

    import { _, log, fsAsync } from 'azk';
    import { async, mapPromises } from 'azk/utils/promises';
    import { UIProxy } from 'azk/cli/ui';
    import { SugestionChooser } from 'azk/generator/sugestion_chooser';
    
    
    Severity: Minor
    Found in src/generator/court.js - About 2 hrs to fix

      Function _investigate has 40 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

        _investigate(dir) {
          return async(this, function* () {
            var evidences = [],
                filesToSearch = [],
                relevantFiles = [],
      Severity: Minor
      Found in src/generator/court.js - About 1 hr to fix

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

          _veredict() {
            _.forEach(this.__folder_evidences_suggestion, function(folder_evidence_suggestion) {
              var systemName = '';
              var folderName = folder_evidence_suggestion.path;
              var evidences_suggestion = folder_evidence_suggestion.suggestions;
        Severity: Minor
        Found in src/generator/court.js - About 1 hr to fix

          There are no issues that match your filters.

          Category
          Status