path/filepathutil/filepathutil.go
Consider simplifying this complex logical expression. Open
Open
if !(inclExists && inclNotExists) &&
((!inclExists && exists) || (!inclNotExists && !exists)) {
Function UserToAbsolute
has 5 return statements (exceeds 4 allowed). Open
Open
func UserToAbsolute(file string) (string, error) {
file = strings.TrimSpace(file)
parts := strings.Split(file, string(os.PathSeparator))
if len(parts) == 0 {
return file, nil