diff --git a/lib/commands/print-failing.js b/lib/commands/print-failing.js index 4cc4b3d5..90562138 100644 --- a/lib/commands/print-failing.js +++ b/lib/commands/print-failing.js @@ -18,13 +18,23 @@ module.exports = { let linter = new Linter(); let templatesWithErrors = []; - let templateFiles = walkSync('app').filter(file => { + let appRoot; + + if (project.isEmberCLIAddon()) { + appRoot = 'addon'; + } else if (project.isModuleUnification()) { + appRoot = 'src'; + } else { + appRoot = 'app'; + } + + let templateFiles = walkSync(appRoot).filter(file => { // remove any non-hbs files return path.extname(file) === '.hbs'; }); templateFiles.forEach(file => { - let filePath = path.join('app', file); + let filePath = path.join(appRoot, file); let contents = fs.readFileSync(filePath, { encoding: 'utf8' }); let moduleId = path.join(modulePrefix, file).slice(0, -4);