Fix edge case for DocumentationLinks linter
What does this MR do and why?
Contributes to #358703 (closed)
Problem
Code that ends with a do
block definition is ignored by parser. The
linter can skip some of broken links because of that.
Solution
Add a workaround for this case.
How to check
See CI job failure: https://gitlab.com/gitlab-org/gitlab/-/jobs/2318627838#L69
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Vasilii Iakliushin