Closed tycooon closed 1 year ago
Thank you! I've amended the test to include some failing cases, could you look at that?
Basically, things like define_method
and attr_accessor
should not generate any tags if they are called with dynamic arguments (a variable or a string interpolated at runtime)
I've also brought in the actual commit from #79 to preserve attribution 💖
Hmm, do you have any ideas how this could be fixed? 🤔
Not at the moment! But when they are not in the block scope, define_method
and attr_accessor
already work as desired (they don't generate tags for dynamic arguments); so I would argue that this regression is something specific to the block scope mode.
@mislav Do you still maintain this project at this moment? If yes, what kind of effort and/or help is still needed to push this PR through review and into the master?
Yay, thanks, guys! 🎉
As discussed here: https://github.com/tmm1/ripper-tags/issues/94#issuecomment-551546094
Now this code will generate tags:
Tested in some big projects, seems to work.
Update: also contains fix from #79 since basically it requires that change.