Skip to content

Switch to elevate warning to errors #1534

Open
@TylerLeonhardt

Description

@TylerLeonhardt

Summary of the new feature

As a user, I want a single switch to elevate warnings to errors so that my repos can have error-less, warning-less code. In CI scenarios, like @JustinGrote's Super-Duper-Linter I need the task to fail when there are only warnings.

Proposed technical implementation details (optional)

@rjmholt mentioned the -NoExit param but I'm not sure if that will exit on warnings as well...

What is the latest version of PSScriptAnalyzer at the point of writing

1.19

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