Add a new QA::ElementWithPattern cop
EE MR: https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/7932
What does this MR do?
Add a new QA::ElementWithPattern cop
This cop forbids the use of `element :foo, 'pattern'` and
`element :bar, /pattern/` in QA files.
What are the relevant issue numbers?
Related to https://gitlab.com/gitlab-org/quality/team-tasks/issues/26#note_107871533.
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/52516.
Does this MR meet the acceptance criteria?
- [-] Changelog entry added, if necessary
-
Documentation created/updated -
Tests added for this feature/bug -
Conforms to the code review guidelines -
Conforms to the merge request performance guidelines -
Conforms to the style guides -
Conforms to the database guides
Edited by Rémy Coutable