Skip to content

Type Annotation - if param has default value, don't complain #131

@markwpearce

Description

@markwpearce

Example:

sub testTypeAnnotation(doOption = false) 
end sub

Currently, this would fail the type-annotation rule, but doOption param would be known as a boolean, and adding a type to it is superfluous

Perhaps we could add a args-allow-default and all-allow-default options for the type-annotation rule

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions