Skip to content

Commit

Permalink
WIP11
Browse files Browse the repository at this point in the history
  • Loading branch information
knocte committed Dec 30, 2023
1 parent c5c1ea6 commit 2acc317
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/FileConventions/Library.fs
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,9 @@ let DetectMissingVersionsInNugetPackageReferences(fileInfo: FileInfo) =

let fileLines = File.ReadLines fileInfo.FullName

not(
fileLines
|> Seq.filter(fun line -> line.StartsWith "#r \"nuget:")
|> Seq.filter(fun line -> not(line.Contains ","))
|> Seq.isEmpty
)
fileLines
|> Seq.exists(fun line -> line.StartsWith "#r \"nuget:" && not(line.Contains ","))
|> not

let HasBinaryContent(fileInfo: FileInfo) =
let lines = File.ReadLines fileInfo.FullName
Expand Down

0 comments on commit 2acc317

Please sign in to comment.