mirror of
https://github.com/securego/gosec.git
synced 2025-07-03 00:27:05 +02:00
Fix the unit tests (#652)
Signed-off-by: Cosmin Cojocar <ccojocar@cloudbees.com>
This commit is contained in:
@ -446,6 +446,6 @@ func ExcludedDirsRegExp(excludedDirs []string) []*regexp.Regexp {
|
|||||||
|
|
||||||
// RootPath returns the absolute root path of a scan
|
// RootPath returns the absolute root path of a scan
|
||||||
func RootPath(root string) (string, error) {
|
func RootPath(root string) (string, error) {
|
||||||
root = strings.TrimPrefix(root, "...")
|
root = strings.TrimSuffix(root, "...")
|
||||||
return filepath.Abs(root)
|
return filepath.Abs(root)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user