Merge changes from topic "lint-unbundled-apps"
* changes: Build a zip of transitive lint reports for apps Add DepSets
This commit is contained in:
@@ -486,6 +486,10 @@ func (p Paths) Strings() []string {
|
||||
return ret
|
||||
}
|
||||
|
||||
func CopyOfPaths(paths Paths) Paths {
|
||||
return append(Paths(nil), paths...)
|
||||
}
|
||||
|
||||
// FirstUniquePaths returns all unique elements of a Paths, keeping the first copy of each. It
|
||||
// modifies the Paths slice contents in place, and returns a subslice of the original slice.
|
||||
func FirstUniquePaths(list Paths) Paths {
|
||||
@@ -496,7 +500,8 @@ func FirstUniquePaths(list Paths) Paths {
|
||||
return firstUniquePathsList(list)
|
||||
}
|
||||
|
||||
// SortedUniquePaths returns what its name says
|
||||
// SortedUniquePaths returns all unique elements of a Paths in sorted order. It modifies the
|
||||
// Paths slice contents in place, and returns a subslice of the original slice.
|
||||
func SortedUniquePaths(list Paths) Paths {
|
||||
unique := FirstUniquePaths(list)
|
||||
sort.Slice(unique, func(i, j int) bool {
|
||||
|
Reference in New Issue
Block a user