Skip to content

ScriptAnalyzer needs to emit Diagnostic records for AST parsing errors #264

Closed
@raghushantha

Description

@raghushantha

In current implementation, parsing errors in a given script are treated as non-terminating PowerShell ErrorRecords.

Proposal is to convert these to diagnostic records and create a new rule for parsing issues.

Helps to solve following:

  • In a service model, all results will be in the form of diagnostic records. Single stream for user to go over the results.
  • For users refactoring their code from v2/v3 to higher versions, they can use the parsing rule to validate the changes.

Let us know if the community has any opinions about this proposal

Thanks.
Raghu

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