Runs the `app`, `tests` and `templates` trees through the chain of addons that produces lint trees. Those lint trees are afterwards funneled into the `tests` folder, babel-ified and returned as an array. @private @method getLintTests @return {Array}
()
| 1044 | @return {Array} |
| 1045 | */ |
| 1046 | getLintTests() { |
| 1047 | let lintTrees = []; |
| 1048 | |
| 1049 | if (this.trees.app) { |
| 1050 | let lintedApp = this.addonLintTree('app', this.trees.app); |
| 1051 | lintedApp = new Funnel(lintedApp, { |
| 1052 | destDir: 'lint', |
| 1053 | annotation: 'Funnel (lint app)', |
| 1054 | }); |
| 1055 | |
| 1056 | lintTrees.push(lintedApp); |
| 1057 | } |
| 1058 | |
| 1059 | let lintedTests = this.addonLintTree('tests', this.trees.tests); |
| 1060 | let lintedTemplates = this.addonLintTree('templates', this._templatesTree()); |
| 1061 | |
| 1062 | lintedTests = new Funnel(lintedTests, { |
| 1063 | destDir: 'lint', |
| 1064 | annotation: 'Funnel (lint tests)', |
| 1065 | }); |
| 1066 | |
| 1067 | lintedTemplates = new Funnel(lintedTemplates, { |
| 1068 | destDir: 'lint', |
| 1069 | annotation: 'Funnel (lint templates)', |
| 1070 | }); |
| 1071 | |
| 1072 | return mergeTrees([lintedTests, lintedTemplates].concat(lintTrees), { |
| 1073 | overwrite: true, |
| 1074 | }); |
| 1075 | } |
| 1076 | |
| 1077 | /** |
| 1078 | @public |
no test coverage detected