Skip to content

Commit

Permalink
Ruby reachables
Browse files Browse the repository at this point in the history
Signed-off-by: Prabhu Subramanian <[email protected]>
  • Loading branch information
prabhu committed Jan 13, 2025
1 parent af028e1 commit 512cbd6
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,9 @@ class CdxPass(atom: Cpg) extends CpgPass(atom):
atom.call.code(bpkg).argument.newTagNode(
compPurl
).store()(dstGraph)
atom.call.code(bpkg).receiver.isMethod.where(_.fullName(
"(routes|controller|application).*\\.rb.*"
)).parameter.newTagNode("framework-input").store()(dstGraph)
atom.call.code(bpkg).receiver.newTagNode(
s"$compType-value"
).store()(dstGraph)
Expand Down

0 comments on commit 512cbd6

Please sign in to comment.