Skip to content

Commit

Permalink
w
Browse files Browse the repository at this point in the history
  • Loading branch information
arturcic committed Dec 4, 2024
1 parent 55d0d55 commit 2deb087
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/GitVersion.App/ArgumentParser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -160,8 +160,7 @@ private void ParseTargetPath(Arguments arguments, string? name, IReadOnlyList<st
if (name.IsSwitch("targetpath"))
{
EnsureArgumentValueCount(values);
arguments.TargetPath = value;
Console.WriteLine($"TargetPath: {arguments.TargetPath}");
arguments.TargetPath = value.TrimEnd('"');

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Prepare / macos-15

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Prepare / macos-15

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Prepare / ubuntu-latest

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Prepare / ubuntu-latest

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Prepare / windows-latest

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Prepare / windows-latest

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Analyze (csharp)

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Build & Package / macos-15

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Build & Package / macos-15

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Build & Package / macos-15

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Build & Package / macos-15

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Build & Package / macos-15

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Build & Package / macos-15

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Build & Package / macos-15

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Build & Package / macos-15

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Build & Package / ubuntu-latest

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Build & Package / ubuntu-latest

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Build & Package / ubuntu-latest

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Build & Package / ubuntu-latest

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Build & Package / ubuntu-latest

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Build & Package / ubuntu-latest

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Build & Package / ubuntu-latest

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Build & Package / ubuntu-latest

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Build & Package / ubuntu-latest

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Build & Package / ubuntu-latest

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Test / ubuntu-latest - net8.0

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Test / ubuntu-latest - net8.0

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Test / ubuntu-latest - net8.0

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Test / ubuntu-latest - net8.0

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Build & Package / windows-latest

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Build & Package / windows-latest

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Build & Package / windows-latest

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Build & Package / windows-latest

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Build & Package / windows-latest

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Build & Package / windows-latest

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Build & Package / windows-latest

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Build & Package / windows-latest

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Test / ubuntu-latest - net9.0

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Test / ubuntu-latest - net9.0

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Test / ubuntu-latest - net9.0

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Test / ubuntu-latest - net9.0

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Test / macos-15 - net9.0

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Test / macos-15 - net9.0

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Test / macos-15 - net9.0

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Test / macos-15 - net9.0

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Test / macos-15 - net8.0

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Test / macos-15 - net8.0

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Test / macos-15 - net8.0

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Test / macos-15 - net8.0

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Test / windows-latest - net8.0

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Test / windows-latest - net8.0

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Test / windows-latest - net8.0

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Test / windows-latest - net8.0

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Test / windows-latest - net9.0

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Test / windows-latest - net9.0

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Test / windows-latest - net9.0

Dereference of a possibly null reference.

Check warning on line 163 in src/GitVersion.App/ArgumentParser.cs

View workflow job for this annotation

GitHub Actions / Test / windows-latest - net9.0

Dereference of a possibly null reference.
if (!Directory.Exists(value))
{
this.console.WriteLine($"The working directory '{value}' does not exist.");
Expand Down

0 comments on commit 2deb087

Please sign in to comment.