Skip to content

Commit

Permalink
scripts/inconsistentVersionsInFSharpScripts: add
Browse files Browse the repository at this point in the history
  • Loading branch information
tehraninasab committed Jun 26, 2023
1 parent 0dd7b9d commit 3e72803
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions scripts/inconsistentVersionsInFSharpScripts.fsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#!/usr/bin/env -S dotnet fsi

open System.IO

#load "../src/FileConventions/Library.fs"
#load "../src/FileConventions/Helpers.fs"

let rootDir = Path.Combine(__SOURCE_DIRECTORY__, "..") |> DirectoryInfo

let inconsistentVersionsInFsharpScripts =
Helpers.GetFiles rootDir "*.fsx"
|> FileConventions.DetectInconsistentVersionsInNugetRefsInFSharpScripts

if inconsistentVersionsInFsharpScripts then
failwith
"You shouldn't use inconsistent versions in nuget package references of F# scripts."

0 comments on commit 3e72803

Please sign in to comment.