Add option to increase rules:exists file limit

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Proposal

As of writing this feature request, the rules:exists has a known limitation that would only check 10000 files.

For performance reasons, GitLab performs a maximum of 10,000 checks against exists patterns or file paths. After the 10,000th check, rules with patterned globs always match. In other words, the exists rule always assumes a match in projects with more than 10,000 files, or if there are fewer than 10,000 files but the exists rules are checked more than 10,000 times.

It would be useful to have an application limit/option that can be configured to something lower or higher. This assumes that there is enough compute resource that it would not degrade performance.

Edited by 🤖 GitLab Bot 🤖