diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-02-22 11:44:44 -0600 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-02-23 09:32:22 -0600 |
commit | eacae00516ffe534f197eeca20655cbc0fdf5694 (patch) | |
tree | 4cdaa63ff32117cc3e55f5f96c4ff881860dd5f7 /lib | |
parent | 99a34a52d7e329f41bf43dd4d1d3ada3aca641b2 (diff) | |
download | gitlab-ce-eacae00516ffe534f197eeca20655cbc0fdf5694.tar.gz |
Enable Style/MultilineHashBraceLayout
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/ci/config/entry/environment.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/gitlab/ci/config/entry/environment.rb b/lib/gitlab/ci/config/entry/environment.rb index 940333b92ef..0c1f9eb7cbf 100644 --- a/lib/gitlab/ci/config/entry/environment.rb +++ b/lib/gitlab/ci/config/entry/environment.rb @@ -21,12 +21,14 @@ module Gitlab validates :name, type: { with: String, - message: Gitlab::Regex.environment_name_regex_message } + message: Gitlab::Regex.environment_name_regex_message + } validates :name, format: { with: Gitlab::Regex.environment_name_regex, - message: Gitlab::Regex.environment_name_regex_message } + message: Gitlab::Regex.environment_name_regex_message + } with_options if: :hash? do validates :config, allowed_keys: ALLOWED_KEYS |