Decrease ABC threshold to 54.28
This commit is contained in:
parent
d310a2d0bc
commit
1833328b30
|
@ -624,7 +624,7 @@ Style/PredicateName:
|
||||||
# branches, and conditions.
|
# branches, and conditions.
|
||||||
Metrics/AbcSize:
|
Metrics/AbcSize:
|
||||||
Enabled: true
|
Enabled: true
|
||||||
Max: 55.25
|
Max: 54.28
|
||||||
|
|
||||||
# This cop checks if the length of a block exceeds some maximum value.
|
# This cop checks if the length of a block exceeds some maximum value.
|
||||||
Metrics/BlockLength:
|
Metrics/BlockLength:
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
---
|
||||||
|
title: Decrease ABC threshold to 54.28
|
||||||
|
merge_request: 14920
|
||||||
|
author: Maxim Rydkin
|
||||||
|
type: other
|
|
@ -137,10 +137,12 @@ module Backup
|
||||||
|
|
||||||
# restoring mismatching backups can lead to unexpected problems
|
# restoring mismatching backups can lead to unexpected problems
|
||||||
if settings[:gitlab_version] != Gitlab::VERSION
|
if settings[:gitlab_version] != Gitlab::VERSION
|
||||||
$progress.puts 'GitLab version mismatch:'.color(:red)
|
$progress.puts(<<~HEREDOC.color(:red))
|
||||||
$progress.puts " Your current GitLab version (#{Gitlab::VERSION}) differs from the GitLab version in the backup!".color(:red)
|
GitLab version mismatch:
|
||||||
$progress.puts ' Please switch to the following version and try again:'.color(:red)
|
Your current GitLab version (#{Gitlab::VERSION}) differs from the GitLab version in the backup!
|
||||||
$progress.puts " version: #{settings[:gitlab_version]}".color(:red)
|
Please switch to the following version and try again:
|
||||||
|
version: #{settings[:gitlab_version]}
|
||||||
|
HEREDOC
|
||||||
$progress.puts
|
$progress.puts
|
||||||
$progress.puts "Hint: git checkout v#{settings[:gitlab_version]}"
|
$progress.puts "Hint: git checkout v#{settings[:gitlab_version]}"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
Loading…
Reference in New Issue