Make duplicate warning checks file and line specific