Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
markwpearce opened this issue Sep 11, 2024 · 0 comments
Open

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

markwpearce opened this issue Sep 11, 2024 · 0 comments

Comments

@markwpearce
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant