-
Notifications
You must be signed in to change notification settings - Fork 289
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
nested-structs false positives with "struct{}" #824
Comments
Thank you! Can't reproduce it in #826. Would you share another example which gives you the false positive? |
I created a draft pull request which shows the issue. #828 I think it's an issue in the "nested-structs" rule. Running "make test" shows the following.
|
Hi @sbunce, thanks for the PR with the example. I'll check for a solution. |
Fix works. Thank you! I found one more tiny one with generics.
The error points at the "baz" field.
I added the example to my draft PR. https://github.com/mgechev/revive/pull/828/files |
I found some instances of "struct{}" causing the nested-structs check to fail. Based on other issues it looks like the intention is to not include struct{} in this check.
If this is working as intended feel free to resolve.
p.s. Revive works great! Found multiple bugs in my code.
The text was updated successfully, but these errors were encountered: