Skip to content

lint should not show warnings when passing multiples --files #15630

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
PowerKiKi opened this issue Sep 18, 2019 · 1 comment · Fixed by #15635
Closed

lint should not show warnings when passing multiples --files #15630

PowerKiKi opened this issue Sep 18, 2019 · 1 comment · Fixed by #15635
Labels
area: @angular/cli freq1: low Only reported by a handful of users who observe it rarely severity3: broken type: bug/fix
Milestone

Comments

@PowerKiKi
Copy link
Contributor

🐞 Bug report

Command (mark with an x)

- [x] lint

Is this a regression?

AFAIK it's always been that way.

Description

The lint command will output warning messages when passing multiple files. I expect to see no warning at all when the command is used as it was intended.

This directly related to #7612 (comment)

🔬 Minimal Reproduction

Create a new project from scratch and run lint with two (or more) specific files:

ng new app # accepts all default values
cd app
ng lint --files=src/app/app.component.ts  --files=src/app/app.module.ts

🔥 Exception or Error

The output will be:

Option "files" was already specified with value ["src/app/app.component.ts"]. The new value ["src/app/app.component.ts","src/app/app.module.ts"] will override it.
Linting "app"...
All files pass linting.

But I expected it to be:

Linting "app"...
All files pass linting.

🌍 Your Environment


Angular CLI: 8.3.5
Node: 10.16.3
OS: linux x64
Angular: 8.2.7
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package                           Version
-----------------------------------------------------------
@angular-devkit/architect         0.803.5
@angular-devkit/build-angular     0.803.5
@angular-devkit/build-optimizer   0.803.5
@angular-devkit/build-webpack     0.803.5
@angular-devkit/core              8.3.5
@angular-devkit/schematics        8.3.5
@angular/cli                      8.3.5
@ngtools/webpack                  8.3.5
@schematics/angular               8.3.5
@schematics/update                0.803.5
rxjs                              6.4.0
typescript                        3.5.3
webpack                           4.39.2
@alan-agius4 alan-agius4 added area: @angular/cli freq1: low Only reported by a handful of users who observe it rarely severity3: broken type: bug/fix labels Sep 19, 2019
@ngbot ngbot bot modified the milestone: Backlog Sep 19, 2019
clydin added a commit to clydin/angular-cli that referenced this issue Sep 19, 2019
clydin added a commit to clydin/angular-cli that referenced this issue Sep 19, 2019
@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 Oct 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area: @angular/cli freq1: low Only reported by a handful of users who observe it rarely severity3: broken type: bug/fix
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants