DEV Community

Discussion on: The Importance of Knowing Your Gems

Collapse
 
ben profile image
Ben Halpern

more than I care to admit.

I tried to ask the question in the most neutral way in terms of judgment knowing there's bound to be some rationalization abound.

I think it's a tool at the disposal of Rubyists that gets fairly polarized, but everybody does it at some point for practical reasons.

Do you know of any static code analyzers that can detect all monkeypatches against vendor gems in a codebase?

Thread Thread
 
phallstrom profile image
Philip Hallstrom

find config/initializers -type f -name '*active*'

:-) :troll:

Thread Thread
 
molly profile image
Molly Struve (she/her)

I do not know of any off the top of my head and a quick Google search didn't turn up much. Given handy Ruby methods like source_location I would bet it would not be hard to create one.