Skip to content

Commit

Permalink
Merge pull request #166 from lucaslorentz/fix-warnings
Browse files Browse the repository at this point in the history
Fix warnings
  • Loading branch information
lucaslorentz committed Apr 4, 2023
2 parents e51c405 + 0680805 commit c428ea9
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion minicover.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

dotnet run -p src/MiniCover/MiniCover.csproj -f net7.0 -- "$@"
dotnet run --project src/MiniCover/MiniCover.csproj -f net7.0 -- "$@"
2 changes: 1 addition & 1 deletion src/MiniCover/CommandLine/Commands/InstrumentCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ private static IFileInfo[] GetFiles(
var fileMatchResult = matcher.Execute(new Microsoft.Extensions.FileSystemGlobbing.Abstractions.DirectoryInfoWrapper(new DirectoryInfo(parentDir.FullName)));

return fileMatchResult.Files
.Select(f => parentDir.FileSystem.FileInfo.FromFileName(Path.GetFullPath(Path.Combine(parentDir.ToString(), f.Path))))
.Select(f => parentDir.FileSystem.FileInfo.New(Path.GetFullPath(Path.Combine(parentDir.ToString(), f.Path))))
.ToArray();
}

Expand Down
2 changes: 1 addition & 1 deletion src/MiniCover/CommandLine/DirectoryOption.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ protected DirectoryOption(IFileSystem fileSystem)

public virtual void ReceiveValue(string value)
{
DirectoryInfo = _fileSystem.DirectoryInfo.FromDirectoryName(value ?? DefaultValue);
DirectoryInfo = _fileSystem.DirectoryInfo.New(value ?? DefaultValue);
}
}
}
2 changes: 1 addition & 1 deletion src/MiniCover/CommandLine/FileOption.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ protected FileOption(IFileSystem fileSystem)

public virtual void ReceiveValue(string value)
{
FileInfo = _fileSystem.FileInfo.FromFileName(value ?? DefaultValue);
FileInfo = _fileSystem.FileInfo.New(value ?? DefaultValue);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public override void ReceiveValue(string value)
{
base.ReceiveValue(value);

var currentDirectory = _fileSystem.DirectoryInfo.FromDirectoryName(_fileSystem.Directory.GetCurrentDirectory());
var currentDirectory = _fileSystem.DirectoryInfo.New(_fileSystem.Directory.GetCurrentDirectory());
if (DirectoryInfo.FullName != currentDirectory.FullName)
{
DirectoryInfo.Create();
Expand Down

0 comments on commit c428ea9

Please sign in to comment.