summaryrefslogtreecommitdiff
path: root/lib/tasks/flay.rake
diff options
context:
space:
mode:
authorRobert Speicher <robert@gitlab.com>2018-01-29 21:09:09 +0000
committerRobert Speicher <robert@gitlab.com>2018-01-29 21:09:09 +0000
commit1f309b69df3f71d988d4d31b08a1b683099a46e5 (patch)
treea2e4f382f17511c459f4865754ef9a8ec93f08c6 /lib/tasks/flay.rake
parent7a18675c59d46da7234dd0cdf6960b527b513a80 (diff)
parent02a3f6241af193cabde303de5d1eea0e82c87cc5 (diff)
downloadgitlab-ce-1f309b69df3f71d988d4d31b08a1b683099a46e5.tar.gz
Merge branch '41972-make-sure-no-warnings' into 'master'
Fail static-analysis if there's output to stderr Closes #41972 See merge request gitlab-org/gitlab-ce!16648
Diffstat (limited to 'lib/tasks/flay.rake')
-rw-r--r--lib/tasks/flay.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/flay.rake b/lib/tasks/flay.rake
index 7ad2b2e4d39..b1e012e70c5 100644
--- a/lib/tasks/flay.rake
+++ b/lib/tasks/flay.rake
@@ -1,6 +1,6 @@
desc 'Code duplication analyze via flay'
task :flay do
- output = `bundle exec flay --mass 35 app/ lib/gitlab/`
+ output = `bundle exec flay --mass 35 app/ lib/gitlab/ 2> #{File::NULL}`
if output.include? "Similar code found"
puts output