chore(analysis): analyze web folders; fix existing warnings

This commit is contained in:
Yegor Jbanov
2015-04-16 16:29:46 -07:00
parent f830cfca12
commit 3dc4df2ffa
17 changed files with 38 additions and 163 deletions

View File

@ -22,7 +22,7 @@ module.exports = function(gulp, plugins, config) {
var analyzeFile = ['library _analyzer;'];
srcFiles.concat(testFiles).forEach(function(fileName, index) {
if (fileName !== tempFile && fileName.indexOf("/packages/") === -1) {
analyzeFile.push('import "./'+fileName+'" as mod'+index+';');
analyzeFile.push('import "./' + fileName + '" as mod' + index + ';');
}
});
fs.writeFileSync(path.join(dir, tempFile), analyzeFile.join('\n'));
@ -73,15 +73,6 @@ module.exports = function(gulp, plugins, config) {
}
var skip = false;
// TODO: not reporting issues in web for now
// Should be removed when https://github.com/angular/angular/issues/1392
// is fixed
var webDir = path.join(dirName, 'web');
if (line.indexOf(webDir) >= 0) {
skip = true;
line = '(TODO #1392) ' + line;
}
if (!skip) {
if (line.match(/\[hint\]/)) {
hintCount++;