You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"if true all info and minor issues are promoted to major for Gitlab");
26
-
27
24
varrootPathArgument=newArgument<string?>(
28
25
name:"root",
29
-
description:"The name root of the repository. Gitlab requires Code Quality issues to contain paths relative to the repository, "+
30
-
"but the tools report them as absolute file paths. "+
31
-
"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. ",
26
+
description:"The name root of the repository. Gitlab requires Code Quality issues to contain paths relative to the repository, "
27
+
+"but the tools report them as absolute file paths. "
28
+
+"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. ",
32
29
getDefaultValue:()=>null
33
30
);
34
-
31
+
35
32
varrootCommand=newRootCommand("Tool to convert Dotnet-Formats to Gitlab code quality");
36
-
varroslynatorToCodeQuality=newCommand("roslynator","Convert Roslynator file to Code Quality issue")
33
+
varroslynatorToCodeQuality=newCommand(
34
+
"roslynator",
35
+
"Convert Roslynator file to Code Quality issue"
36
+
)
37
37
{
38
38
sourceArgument,
39
39
targetArgument,
40
40
rootPathArgument
41
41
};
42
-
42
+
43
43
varsarifToCodeQuality=newCommand("sarif","Convert Sarif files to Code Quality issue")
44
44
{
45
45
sourceArgument,
46
46
targetArgument,
47
47
rootPathArgument
48
48
};
49
-
49
+
50
50
varsourcesArgument=newArgument<FileInfo[]>(
51
51
name:"sources",
52
52
description:"The files to merge"
53
53
);
54
-
55
-
varmergeCodeQuality=newCommand("merge","Merge multiple code quality files into one")
54
+
55
+
varmergeCodeQuality=newCommand("merge","Merge multiple code quality files into one")
56
56
{
57
57
targetArgument,
58
58
sourcesArgument,
59
59
bumpToMajorOption
60
60
};
61
-
61
+
62
62
varsourceGlobArgument=newArgument<string>(
63
63
name:"sarifGlob",
64
64
description:"Glob pattern for the sarif files",
65
65
getDefaultValue:()=>"**/*.sarif.json"
66
66
);
67
-
67
+
68
68
varsourceRoslynatorArgument=newArgument<string>(
69
69
name:"roslynatorGlob",
70
70
description:"Glob pattern for the roslynator files",
71
71
getDefaultValue:()=>"**/roslynator.xml"
72
72
);
73
-
74
-
vartransformCodeQuality=newCommand("transform","Transforms files from a glob mapping and merges them to one file")
73
+
74
+
vartransformCodeQuality=newCommand(
75
+
"transform",
76
+
"Transforms files from a glob mapping and merges them to one file"
// nullability says Uri is always set, but there are tools which omit this.
69
72
if(begin.ResultFile.Uri==null)
70
73
{
71
-
Log.Error("There is no valid Path for the issue {@Region}, cannot create a path. Check the source sarif for missing physicalLocation.uri",begin.ResultFile.Region);
74
+
Log.Error(
75
+
"There is no valid Path for the issue {@Region}, cannot create a path. Check the source sarif for missing physicalLocation.uri",
0 commit comments