ember-cli/ember-twiddle

View on GitHub
app/components/file-tree.js

Summary

Maintainability
A
2 hrs
Test Coverage

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

  fileTreeHash: computed('model.files.@each.filePath', function() {
    const files = this.get('model.files') || [];

    return files.reduce((accumulator, file) => {
      if (!file) {
Severity: Minor
Found in app/components/file-tree.js - About 1 hr to fix

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

      fileTreeData: computed('fileTreeHash', function() {
        const fileTreeHash = this.fileTreeHash;
        const fileTreeKeys = Object.keys(fileTreeHash);
        const fileTreeObjects = fileTreeKeys.map(key => fileTreeHash[key]);
    
    
    Severity: Minor
    Found in app/components/file-tree.js - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status