Skip to content

Commit 93451b1

Browse files
webwarrior-wsknocte
authored andcommitted
scripts: exclude files in conventions repository
When checking for inconsistent versions of Nuget packages in fsx scripts, because it might produce false positives if conventions repository is inside working directory. Don't skip these files if targetDir is rootDir.
1 parent 4d91a99 commit 93451b1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/inconsistentNugetVersionsInFSharpScripts.fsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ let targetDir, _ = Helpers.PreferLessDeeplyNestedDir currentDir rootDir
1616

1717
let inconsistentVersionsInFsharpScripts =
1818
Helpers.GetFiles targetDir "*.fsx"
19+
|> Seq.filter(fun file ->
20+
targetDir = rootDir
21+
|| not(file.Directory.FullName.StartsWith rootDir.FullName)
22+
)
1923
|> FileConventions.DetectInconsistentVersionsInNugetRefsInFSharpScripts
2024

2125
if inconsistentVersionsInFsharpScripts then

0 commit comments

Comments
 (0)