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

lint: add unnecessary brackets checker #9

Closed
5 tasks done
fexolm opened this issue May 7, 2018 · 5 comments
Closed
5 tasks done

lint: add unnecessary brackets checker #9

fexolm opened this issue May 7, 2018 · 5 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@fexolm
Copy link
Contributor

fexolm commented May 7, 2018

We need to add checker which will find the errors described below.

@fexolm fexolm self-assigned this May 7, 2018
@quasilyte
Copy link
Member

You can start with a simplest case: fix function result types.
This way, you can concentrate on parenthesis elimination instead of type expression seeking.
Then you can expand the scope to more type expressions.

@quasilyte
Copy link
Member

There is also (*a)[i] where a is an array (not a slice).

@quasilyte
Copy link
Member

@quasilyte quasilyte added the enhancement New feature or request label May 7, 2018
@quasilyte quasilyte added this to the v0.1 milestone May 7, 2018
@fexolm
Copy link
Contributor Author

fexolm commented May 8, 2018

Function output parameters check is done in #22.
Variable type check is done in #31

@fexolm
Copy link
Contributor Author

fexolm commented May 9, 2018

Checks 2 and 5 moved to #14.

@fexolm fexolm closed this as completed May 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants