-
Notifications
You must be signed in to change notification settings - Fork 412
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
[SourceKitten] No longer count initializers with parameters as undocumented #184
Conversation
@@ -13,7 +13,9 @@ | |||
|
|||
##### Bug Fixes | |||
|
|||
* None. | |||
* No longer count initializers with parameters as undocumented. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
two spaces
def declaration? | ||
kind =~ /^source\.lang\.swift\.decl\..*/ | ||
end | ||
|
||
def param? | ||
kind == 'source.lang.swift.decl.var.parameter' || | ||
kind == 'source.lang.swift.decl.var.local' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add a comment saying why var.local
is a param
Do we need to add a test to |
thanks @jpsim ! 👍 |
All good comments, @segiddins. Thanks. |
👍 |
[SourceKitten] No longer count initializers with parameters as undocumented
Fixes #183.
Initializers with parameters would be counted additional times for each undocumented parameter (which SourceKit oddly categorizes as local variables instead of parameters). This meant that initializers showed up in
/undocumented.txt
and affected code coverage percentage.Care to take a look @segiddins and @jessesquires?