Skip to content

CLI allow to display only errors/warnings instead of warnings + errors #8667

Open

Description

@SimonGodefroid

Proposal

Make a CLI option to list only errors or only warnings.

npx flow --show-only-errors => this would be a --show-all-errors but without the warnings

npx flow --show-only-warnings => this would be a --show-all-errors but with errors instead of warnings

Use case

I am migrating from 0.133.0 to 0.151.0, needless to say I have a lot of warnings and errors.

However I can live with warnings for now and am just trying to fix errors first.

If I run

npx flow

I see errors + warnings.

I can run

npx flow --show-all-errors

It's annoying not to be able to fix each kind separately.

Thanks for considering.

Activity

  1. changed the title [-]CLI allow to display only errors instead of warnings + errors[/-] [+]CLI allow to display only errors/warnings instead of warnings + errors[/+] on May 26, 2021
  2. yanndinendal commented on May 26, 2021

    @yanndinendal
    Contributor

    For anyone else reading; here is what I do as a workaround:

    (flow --show-all-errors --color=always | sed '/Warning ---/q') 2> /dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions