[EE] Add a new QA::ElementWithPattern cop
What does this MR do?
EE MR for https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/22298.
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 -
EE specific content should be in the top level /ee
folder
Edited by Rémy Coutable