Add error report for function and class duplication