## Steps to reproduce the problem Create a method with a squiggly heredoc, and enforce Style/EndlessMethod ```ruby def foo puts <<~MSG Hello MSG end ``` ## Expected behavior It should (probably?) not fire. ## Actual behavior We see a hit: <img width="1233" height="296" alt="Image" src="https://github.com/user-attachments/assets/e58711a9-72ff-4f02-9d6b-eb4585dc0b8b" /> ## RuboCop version 1.81.1