-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Validate typealias naming #49
Labels
rule-request
Requests for a new rules.
Comments
I don't know why I said this depended on rdar://18845613, that's an unrelated radar. |
To be uppercase? any other validations? |
same naming rules as types. |
I think |
No. $ echo "typealias myType = Void" | swiftlint lint --use-stdin
Done linting! Found 0 violations, 0 serious in 1 file. |
Apparently, SourceKit doesn't provide info about $ sourcekitten structure --text "typealias myType = Void"
{
"key.offset" : 0,
"key.diagnostic_stage" : "source.diagnostic.stage.swift.parse",
"key.length" : 23
}
$ sourcekitten syntax --text "typealias myType = Void"
[
{
"offset" : 0,
"length" : 9,
"type" : "source.lang.swift.syntaxtype.keyword"
},
{
"offset" : 10,
"length" : 6,
"type" : "source.lang.swift.syntaxtype.identifier"
},
{
"offset" : 19,
"length" : 4,
"type" : "source.lang.swift.syntaxtype.typeidentifier"
}
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Sort of depends on rdar://18845613 getting fixed.
The text was updated successfully, but these errors were encountered: