angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Completion message for 'ng lint' is duplicated

Open ImranAhmed opened this issue 8 years ago • 4 comments

Bug Report or Feature Request (mark with an x)

  • [x ] bug report -> please search issues before submitting

Versions

$ node --version v8.9.4

$ npm --version 5.6.0

$ ng --version

Angular CLI: 6.0.3 Node: 8.9.4 OS: win32 x64 Angular: 6.0.0

Repro steps

execute ng lint on any project

The log given by the failure

The message on completion is always duplicated, see below.

image

Desired functionality

The completion message should not be duplicated

ImranAhmed avatar Jun 13 '18 15:06 ImranAhmed

This also applies to error messages, and the console reports success even on errors:

ng lint  
ERROR: testing/directives/router-link.stub.ts[7, 5]: In the class "RouterLinkStubDi
rective", the directive input property "routerLink" should not be renamed. However, you should use an alias when the dir
ective name is also an input property, and the directive name doesn't describe the property. In this last case, you can
disable this rule with `tslint:disable-next-line:no-input-rename`.
ERROR: testing/directives/router-link.stub.ts[7, 5]: In the class "RouterLinkStubDi
rective", the directive input property "routerLink" should not be renamed. However, you should use an alias when the dir
ective name is also an input property, and the directive name doesn't describe the property. In this last case, you can
disable this rule with `tslint:disable-next-line:no-input-rename`.

Lint errors found in the listed files.


All files pass linting.

amandabot avatar Jun 25 '18 21:06 amandabot

This is because it actually runs linting on 2 'projects'. One being the app src, and the other being the e2e tests. If you run ng lint --fix you will see an error that describes what I'm talking about.

ajspera avatar Jul 13 '18 19:07 ajspera

Duplicate of: https://github.com/angular/angular-cli/issues/11088

lucasklaassen avatar Sep 27 '18 14:09 lucasklaassen

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.