diff options
Diffstat (limited to 'lib/tasks/gitlab_danger.rake')
-rw-r--r-- | lib/tasks/gitlab_danger.rake | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/tasks/gitlab_danger.rake b/lib/tasks/gitlab_danger.rake deleted file mode 100644 index c2f5843a9a5..00000000000 --- a/lib/tasks/gitlab_danger.rake +++ /dev/null @@ -1,17 +0,0 @@ -desc 'Run local Danger rules' -task :danger_local do - require 'gitlab_danger' - require_relative '../../lib/gitlab/popen' - - puts("#{GitlabDanger.local_warning_message}\n") - - # _status will _always_ be 0, regardless of failure or success :( - output, _status = Gitlab::Popen.popen(%w{danger dry_run}) - - if output.empty? - puts(GitlabDanger.success_message) - else - puts(output) - exit(1) - end -end |