hhatto / gocloc

A little fast cloc(Count Lines Of Code)
MIT License
799 stars 79 forks source link

Is the SkipDuplicated option judged to be reversed? #74

Open boycs007 opened 1 year ago

boycs007 commented 1 year ago

SkipDuplicated ,when the option set false , duplicated content will be skipped.

utils.go

if !opts.SkipDuplicated {
    ignore := checkMD5Sum(path, fileCache)
    if ignore {
        if opts.Debug {
            fmt.Printf("[ignore=%v] find same md5\n", path)
        }
        return nil
    }
}
hhatto commented 1 year ago

ref: #68