Possible to write a linter that knows type/comment information across packages? #3346
Unanswered
josebalius
asked this question in
Q&A
Replies: 1 comment
-
Needed to use facts and record those comments to a type and then it makes it available. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to write a linter that when it finds a composite literal definition for a struct, can look up where this struct was defined and whether any comments are attached to this struct. I can't find a way to do this with the current analysis flow of only executing one package at a time, it does not seem like comments are available under
pass.TypesInfo
. Has anyone done something like this?Beta Was this translation helpful? Give feedback.
All reactions