Skip to content

Add arity check to type compatibility method checking #1153

Open
@rjmholt

Description

@rjmholt

The UseCompatibleTypes rule has access to information about how many parameters and what types methods take.

Type resolution in PowerShell would be fairly difficult, but checking the number of arguments of a method is pretty easy to do.

As a stretch, the overload could be determined and checked properly in cases where an argument is statically determinable.

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