diff --git a/search/search.go b/search/search.go index f32dc308..c58cc22f 100644 --- a/search/search.go +++ b/search/search.go @@ -19,7 +19,8 @@ type searchOptions struct { } // Search searches for a query in a fs. -func Search(ctx context.Context, fs afero.Fs, scope, query string, checker rules.Checker, found func(path string, f os.FileInfo) error) error { +func Search(ctx context.Context, + fs afero.Fs, scope, query string, checker rules.Checker, found func(path string, f os.FileInfo) error) error { search := parseSearch(query) scope = filepath.ToSlash(filepath.Clean(scope))