From 483b73b29a7a6678b8ae6abceeed2e4325eeb29e Mon Sep 17 00:00:00 2001 From: nojaf Date: Tue, 10 Oct 2023 12:02:11 +0200 Subject: [PATCH] Don't process any files when no analyzers were loaded. --- src/FSharp.Analyzers.Cli/Program.fs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/FSharp.Analyzers.Cli/Program.fs b/src/FSharp.Analyzers.Cli/Program.fs index cd75a13..72cd09c 100644 --- a/src/FSharp.Analyzers.Cli/Program.fs +++ b/src/FSharp.Analyzers.Cli/Program.fs @@ -178,6 +178,10 @@ let main argv = let projOpt = results.TryGetResult <@ Project @> let results = + if analyzers = 0 then + None + else + async { match projOpt with | None ->