Skip to content

Add a cmd line options to suppress warnings #6771

Description

Instead of adding a Boolean argument for each warning we want to suppress implement a more generic method to suppress, the warnings.

e.g instead of the --noFallthroughCasesInSwitch just suppress warning 7029

Activity

  1. sandersn commented on Feb 1, 2016

    @sandersn
    Member

    :+!:

  2. mhegazy commented on Feb 1, 2016

    @mhegazy
    Contributor

    why?

  3. sandersn commented on Feb 1, 2016

    @sandersn
    Member

    --warn x,y,z pulls all the "even stricter" flags under a single flag. Otherwise we'll end up with a million optional strictness flags that will drown out the other flags in documentation.

  4. mhegazy commented on Feb 1, 2016

    @mhegazy
    Contributor

    looking at --noFallthroughCasesInSwitch tells you what it does., but --suppressWarning 7029 is meaningless.
    The other issue here is diluting the value proposition. the main value of typescript is to catch type errors. the tooling quality depends on some of these errors being addressed by the user. if we muffle some of these errors, the whole experience would degrade. On the other hand, what we provide is a set of known knobs to switch off certain groups of errors, that we have deemed as safe to ignore.
    I do not think there is anything wrong with being prescriptive here. For documentation, we could split the help into main, and extended to make sure we are not drowning common flags in the --suppres* ones

  5. added
    SuggestionAn idea for TypeScript
    DeclinedThe issue was declined as something which matches the TypeScript vision
    on Feb 19, 2016
  6. locked and limited conversation to collaborators on Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    DeclinedThe issue was declined as something which matches the TypeScript visionSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions