Summary: 79 instances, 67 unique Text Count // TODO: populate other fields here (eg: found license text) 1 // TODO: If someone wanted to scan *every* commit, or a range of commits, rather 1 // TODO: replace with a different short name if one exists 1 // TODO: Replace this with a walk that accepts safepath types instead. 1 // TODO: is it okay to support storing multiple results? 1 backendWeights[licenseClassifierBackend] = 1.0 // TODO: adjust as needed 1 // TODO: can we validate ref somehow? 1 URL: u.String(), // TODO: pass a *net.URL instead? 1 // TODO: should this be io.Reader or io.ReaderAt, or io.Seeker instead? 1 //IsAbs() bool // TODO: add this to allow an Abs to become a Path? 1 // TODO: test with "" and "/" 1 Iterators []interfaces.Iterator // TODO: should this be passed into Run instead? 1 // TODO: we could use a different mutex 1 // TODO: Make sure result aggregation and skipdir support still works! 1 if obj.Confidence != result.Confidence { // TODO: epsilon? 1 // TODO: populate other fields here (eg: found license text) 1 // TODO: add a backend that lets you seek through data yourself in case of very 1 // FIXME: We discard output from lib's that use `log` package directly. 1 // TODO: remove if unused 1 //IsDir() bool // TODO: add this to allow a File to become a Path? 1 // TODO: add a counting semaphore if it's desired 1 //submodule.Branch // TODO: use this? 1 // TODO: replace the *cli.Context with a more general context that can be used 1 // TODO: for now, just assume it can only be a git iterator... 1 // TODO: this API might change. 6 obj.Logf(format, v...) // TODO: add a prefix? 1 // TODO: add support for line number ranges, eg: #L13-L42 or just #L42 1 backendWeights[spdxBackend] = 2.0 // TODO: adjust as needed 1 Iterators: iterators, // TODO: should this be passed into Run instead? 1 obj.Logf(format, v...) // TODO: add a prefix? 1 return fmt.Sprintf("%s(unknown)", obj.Custom) // TODO: display this differently? 1 // TODO: populate other fields here? 1 // TODO: test with "" 5 // backendWeights[exampleBackend] = 99.0 // TODO: adjust as needed 1 Confidence: 1.0, // TODO: what should we put here? 1 // TODO: add tests! 1 // TODO: the different helper functions that are called within could be provided 1 // TODO: populate other fields here (eg: found license text) 1 // TODO: should this be a subpackage? 2 // TODO: This iterator could learn how to identify go.mod files, python, java, 1 // TODO: update with https://github.com/go-git/go-git/issues/289 1 //IsDir() bool // TODO: add this to allow a Dir to become a Path? 1 if !ok1 && !ok2 { // TODO: remove this when we implement them! 1 // TODO: capture err and return it. 1 // TODO: this could be implemented with a layered iterator that's github 1 return err // TODO: errwrap? 1 // TODO: This iterator could grow a Copy option to copy the files into a new 1 return obj.results, nil // TODO: should we pass the Recurse errors here? 1 // TODO: implement a new iterator that simply passes the root dir off to a 1 Umask = 0770 // TODO: what should this be? 1 // TODO: add more --flags to specify which parser/backends to use... 1 // FIXME: If license is not in SPDX, add a custom entry. 1 for uri, m := range results { // FIXME: sort and process properly 1 // TODO: This could be built with a list of rules that we pass into the 1 // TODO: Maybe add a separate flag/switch for it in the options? 1 // TODO: Replace this with a parallel walk for performance 1 // TODO: import the exceptions if we ever decide we want to look at those. 1 //IsAbs() bool // TODO: add this to allow a Rel to become a Path? 1 // TODO: we could switch and avoid doing this if we knew that 1 // TODO: concurrent use of this lib: https://github.com/go-git/go-git/issues/285 1 // TODO: check if path exists? 1 debug := false // TODO: hardcoded for now 1 // TODO: add tests 3 // TODO: consider doing some clever parsing of well-known paths like 1 err := CLI(program, debug, logf) // TODO: put these args in an input struct 1 // FIXME: https://github.com/google/licenseclassifier/issues/31 1 // TODO: this could happen in init() if we wanted to optimize perf a bit 1