Add a check for external_url formatting
It's a simple one that can slip through, but a trivial check could be to ensure that external_url and other (*_external_url) variables are written in gitlab.rb files using function formatting rather than as an assignment.
This would catch some accidental misconfigurations that could slip through - for example, using the assignment operator with pages_external_url would result in GitLab Pages not being enabled (despite no error being raised and any other Pages configuration being valid)
Examples:
external_url = "http://gitlab.example.com" |
external_url "http://gitlab.example.com" |
pages_external_url = "http://pages.example.io" |
pages_external_url "http://pages.example.io" |