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

Redundant type information rule needs improvement #28

Open
thomasfanell opened this issue Aug 1, 2015 · 0 comments
Open

Redundant type information rule needs improvement #28

thomasfanell opened this issue Aug 1, 2015 · 0 comments

Comments

@thomasfanell
Copy link
Contributor

Currently, this violation is only triggered when all function parameters have the same type:
doSomething: func (x: Float, y: Float, z: Float)
--> reduce to (x, y, z: Float)

It should be trigged when there are at least two consecutive parameters of the same type, which would enable this rule for functions that take two or more different types as parameters:
doSomething: func (width: Int, height: Int, x: Float, y: Float, z: Float)
--> reduce to (width, height: Int, x, y, z: Float)

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

No branches or pull requests

1 participant