platisd / duplicate-code-detection-tool

A simple Python3 tool to detect similarities between files within a repository
MIT License
162 stars 30 forks source link

--ignore-directories option does work on gitbash (Windows) #23

Closed Cael35 closed 1 year ago

Cael35 commented 1 year ago

Hello, I'm using: > duplicate_code_detection.py --ignore-directories general/util/async/file/test -d general in gitbash terminal on Windows, but the files in general/util/async/file/test are not ignored.

Value example of involved variables:

ignore_directories = ['general/util/async/file/test']
files_to_ignore = ['general/util/async/file/test\\util_async_file_test\\File_test.cpp', ...]
source_code_files = [..., 'general\\util\\async\\file\\test\\util_async_file_test\\File_test.cpp',...]

I fixed it, do you want me to submit a PR ? :-)

platisd commented 1 year ago

Please feel free to submit a PR :+1: