@@ -63,28 +63,28 @@ let internal expandWildcard (pattern:string) =
6363 | - 1 ->
6464 // Non-recursive pattern
6565 match normalizedPattern.LastIndexOf '/' with
66- | - 1 -> " ." , normalizedPattern, SearchOption.TopDirectoryOnly
66+ | - 1 -> ( " ." , normalizedPattern, SearchOption.TopDirectoryOnly)
6767 | lastSeparator ->
6868 let dir = normalizedPattern.Substring( 0 , lastSeparator)
6969 let pat = normalizedPattern.Substring( lastSeparator + 1 )
70- ( if String.IsNullOrEmpty dir then " ." else dir), pat, SearchOption.TopDirectoryOnly
70+ (( if String.IsNullOrEmpty dir then " ." else dir), pat, SearchOption.TopDirectoryOnly)
7171 | 0 ->
7272 // Pattern starts with **/
7373 let pat = normalizedPattern.Substring 3
74- " ." , pat, SearchOption.AllDirectories
74+ ( " ." , pat, SearchOption.AllDirectories)
7575 | doubleStarIndex ->
7676 // Pattern has **/ in the middle
7777 let dir = normalizedPattern.Substring( 0 , doubleStarIndex) .TrimEnd '/'
7878 let pat = normalizedPattern.Substring( doubleStarIndex + 3 )
79- dir, pat, SearchOption.AllDirectories
79+ ( dir, pat, SearchOption.AllDirectories)
8080
8181 let fullDirectory = Path.GetFullPath directory
8282 if Directory.Exists fullDirectory then
8383 Directory.GetFiles( fullDirectory, searchPattern, searchOption)
8484 |> Array.filter isFSharpFile
8585 |> Array.toList
8686 else
87- []
87+ List.empty
8888
8989let private parserProgress ( output : Output.IOutput ) = function
9090 | Starting file ->
@@ -169,10 +169,11 @@ let private start (arguments:ParseResults<ToolArgs>) (toolsPath:Ionide.ProjInfo.
169169 | FileType.Source -> Lint.lintSource lintParams target
170170 | FileType.Solution -> Lint.lintSolution lintParams target toolsPath
171171 | FileType.Wildcard ->
172+ output.WriteInfo $" Wildcard detected, but not recommended. Using a project (slnx/sln/fsproj) can detect more issues."
172173 let files = expandWildcard target
173174 if List.isEmpty files then
174175 output.WriteInfo $" No files matching pattern '%s {target}' were found."
175- LintResult.Success []
176+ LintResult.Success List.empty
176177 else
177178 output.WriteInfo $" Found %d {List.length files} file(s) matching pattern '%s {target}'."
178179 Lint.lintFiles lintParams files
0 commit comments