diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-11-11 19:21:35 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-11-11 19:21:35 +0300 |
commit | 12b35c6fe85073d809a764d24b51937f63b9d098 (patch) | |
tree | 0491968d7ce8b501cb76be59b29b59efb3100ab0 /lib | |
parent | 0667f050f33134ec7e11e546eb9846b231e053fc (diff) | |
parent | 98c954ee815823f27cf021b34684c2c3d5bb0917 (diff) |
Merge branch 'flay' into 'master'
Add flay: tool to find duplicate code
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
See merge request !1789
Diffstat (limited to 'lib')
-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..5efffc2cdac --- /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 app/ lib/gitlab/) + + if output.include? "Similar code found" + puts output + exit 1 + end +end |