Added a threshold option to fail the task when too much duplicated lines