Skip to content

fix(@angular/cli): Fixing duplicate lint errors #5288

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

sumitarora
Copy link
Contributor

Should Fix: #5259

@@ -60,6 +60,9 @@ export default Task.extend({
errors += result.failureCount;
results = results.concat(result.output.trim().concat('\n'));
});
let allResults = results.split('\n');
allResults = allResults.filter((item, index) => item.indexOf(item) === index);
results = allResults.toString();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't the new line character be re-inserted into the string? So instead of just calling toString use join('\n')

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done 👍

@sumitarora sumitarora force-pushed the fix-duplicate-lint-errors branch from ccbdac2 to 10ded6d Compare March 7, 2017 20:37
@filipesilva
Copy link
Contributor

It seems #5224 covers this behaviour and some extras.

@sumitarora sumitarora closed this Mar 7, 2017
@sumitarora sumitarora deleted the fix-duplicate-lint-errors branch March 24, 2017 16:35
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Duplicate Lint Errors
4 participants