중복된 코드를 삭제하시겠습니까?codesim 해보세요.
                                            
                                                
                                                
                                                
                                                
                                                
                                                 1436 단어  pythonshowdevopensource
                    
나는 방금 너에게 도움이 되는 새로운 도구를 발표했다.
그것은'codesim'(github에서:https://github.com/aclarembeau/codesim이라고 불린다.
이것은 원본 코드에서 중복된 코드 부분을 찾을 수 있도록 도와주는 실용 프로그램입니다.
당신은 다음과 같은 방법으로 획득할 수 있습니다.
wget --no-cache https://raw.githubusercontent.com/aclarembeau/codesim/master/main.py -O /usr/local/bin/codesim ; chmod +x /usr/local/bin/codesim
다음 매개변수와 함께 사용됩니다.usage: codesim [-h] [--exclude EXCLUDE] [--ratio RATIO]
               [--min-lines MIN_LINES]
               dir
positional arguments:
  dir                   Directory containing all the source files
optional arguments:
  -h, --help            show this help message and exit
  --exclude EXCLUDE     Exclude files matching the given pattern (ex:
                        node_modules)
  --ratio RATIO         Minimum percentage of common code (default: 0.9)
  --min-lines MIN_LINES
                        Minimum number of common lines (default: 10)
코드의 모든 중복된 부분을 포함하는 테이블을 만들 수 있으며 웹 프로젝트를 실행할 때 매우 유용합니다.== Results ==
changes ratio   lines a lines b
6.00    0.92    37  37  ./projects/hook_logs/_index.html.haml -> ./admin/hook_logs/_index.html.haml
만약 당신이 좋아한다면, Github에 나에게 별을 하나 남겨 주세요:)가장 좋은,
Reference
이 문제에 관하여(중복된 코드를 삭제하시겠습니까?codesim 해보세요.), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://dev.to/aclarembeau/looking-to-remove-duplicated-code-try-codesim-44ib텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
                                
                                
                                
                                
                                
                                우수한 개발자 콘텐츠 발견에 전념
                                (Collection and Share based on the CC Protocol.)