体验新版 GitCode,发现更多精彩内容 >>
desc 'Code duplication analyze via flay' task :flay do
output = %x(bundle exec flay --mass 30 app/ lib/gitlab/)
if output.include? "Similar code found" puts output exit 1 end end