Skip to content

Commit

Permalink
Merge pull request #115 from nojaf/dont-run-when-none
Browse files Browse the repository at this point in the history
Don't process any files when no analyzers were loaded.
  • Loading branch information
nojaf authored Oct 10, 2023
2 parents 5b24e4f + 483b73b commit 40f3fdd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/FSharp.Analyzers.Cli/Program.fs
Original file line number Diff line number Diff line change
Expand Up @@ -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 ->
Expand Down

0 comments on commit 40f3fdd

Please sign in to comment.