Skip to content

Put checking for ENV['STATIC_VERIFICATION'] into a method

We should move it to something like Gitlab.static_verification? which can also check and make sure we're not running under production.

Print a warning in this case because we might want to run static verification under production after all? Just that we don't want to have the flag whenever we're running the application.

The following discussion from !21746 (merged) should be addressed:

  • @tkuah started a discussion: (+1 comment)

    Do we want to be extra safe and only skip if this is not production and the env is present ?