app/components/file-tree.js
Function fileTreeHash
has 35 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fileTreeHash: computed('model.files.@each.filePath', function() {
const files = this.get('model.files') || [];
return files.reduce((accumulator, file) => {
if (!file) {
Function fileTreeData
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
fileTreeData: computed('fileTreeHash', function() {
const fileTreeHash = this.fileTreeHash;
const fileTreeKeys = Object.keys(fileTreeHash);
const fileTreeObjects = fileTreeKeys.map(key => fileTreeHash[key]);