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

How to use it #30

Closed i-salameh95 closed 4 months ago

i-salameh95 commented 6 months ago

I dont know how to use it, I have django project run by docker on my local development, and I need to run this tool within it, How ?

platisd commented 6 months ago

Hi, which part of the instructions are you not able to follow? What have you tried so far?

i-salameh95 commented 6 months ago

Sure, I have download the package, and then I download the prerequisite pip packages, and then I follow the instructions, it shows output for my project, but there are no numbers like the screenshots here, I will attach screenshot of what I mean

i-salameh95 commented 6 months ago

11111 22222

what this output suppose to mean ?

platisd commented 6 months ago

My guess is you should try a different terminal, not the default Windows one.

i-salameh95 commented 6 months ago

if you could recommend specific one, I will be so thankful to u ! ..

platisd commented 6 months ago

Try PowerShell (probably already installed) or bash (you can get it when installing git)

i-salameh95 commented 6 months ago

Thanks, I have tried both of them, but PowerShell is the same like CMD, git bash is perfect.. I have another question: if a file after check it by this package shows 20.59 similarity with red color, then I should change the content of this file or what ? because this file doesn't contain duplicate code.. its my settings !! base.py file

platisd commented 6 months ago

then I should change the content of this file or what

This is up to you to decide by looking at the file's actual contents and compare them to the files the tool thinks are "similar". Sometimes it makes sense to refactor but that's not always the case.