diff options
Diffstat (limited to 'lib/tasks/flay.rake')
-rw-r--r-- | lib/tasks/flay.rake | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/tasks/flay.rake b/lib/tasks/flay.rake new file mode 100644 index 00000000000..e9587595fef --- /dev/null +++ b/lib/tasks/flay.rake @@ -0,0 +1,9 @@ +desc 'Code duplication analyze via flay' +task :flay do + output = %x(bundle exec flay --mass 35 app/ lib/gitlab/) + + if output.include? "Similar code found" + puts output + exit 1 + end +end |