Skip to content

Commit 759acb0

Browse files
feat: default to cwd for current directory
1 parent 4d6119a commit 759acb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CodeQualityToGitlab/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ private static async Task<int> Main(string[] args)
2727
description: "The name root of the repository. Gitlab requires Code Quality issues to contain paths relative to the repository, "
2828
+ "but the tools report them as absolute file paths. "
2929
+ "Everything given in with this option will be removed. E.g. root is 'c:/dev' and the file name is something like 'c:/dev/myrepo/file.cs' it will transformed to 'myrepo/file.cs'. Can often be omitted. ",
30-
getDefaultValue: () => null
30+
getDefaultValue: Directory.GetCurrentDirectory
3131
);
3232

3333
var rootCommand = new RootCommand("Tool to convert Dotnet-Formats to Gitlab code quality");

0 commit comments

Comments
 (0)