The pull request I have submitted to rubocop for template language support is not yet completed and in draft status, so I would like to complete it today.

I feel that perhaps there should be a rubocop-markdown that inspects Ruby code in Markdown code blocks, or rubocop-comment that inspects Ruby code in code comments.

But the existing YARD and Markdown parsers cannot return ASTs with location information, so it's going to be difficult to achieve that.