Skip to content

Commit 3b39c0f

Browse files
committed
Upgrade to .NET 6, remove old code, enable SonarLint
1 parent 83422ed commit 3b39c0f

File tree

44 files changed

+714
-1235
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+714
-1235
lines changed

.vscode/launch.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
// Use IntelliSense to find out which attributes exist for C# debugging
6+
// Use hover for the description of the existing attributes
7+
// For further information visit https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger-launchjson.md
8+
"name": ".NET Core Launch (console)",
9+
"type": "coreclr",
10+
"request": "launch",
11+
"preLaunchTask": "build",
12+
// If you have changed target frameworks, make sure to update the program path.
13+
"program": "${workspaceFolder}/src/WorkloadManager/bin/Debug/net5.0/Monai.Deploy.WorkloadManager.dll",
14+
"args": [],
15+
"cwd": "${workspaceFolder}/src/WorkloadManager",
16+
// For more information about the 'console' field, see https://aka.ms/VSCode-CS-LaunchJson-Console
17+
"console": "internalConsole",
18+
"stopAtEntry": false
19+
},
20+
{
21+
"name": ".NET Core Attach",
22+
"type": "coreclr",
23+
"request": "attach"
24+
}
25+
]
26+
}

.vscode/tasks.json

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "build",
6+
"command": "dotnet",
7+
"type": "process",
8+
"args": [
9+
"build",
10+
"${workspaceFolder}/src/WorkloadManager/Monai.Deploy.WorkloadManager.csproj",
11+
"/property:GenerateFullPaths=true",
12+
"/consoleloggerparameters:NoSummary"
13+
],
14+
"problemMatcher": "$msCompile"
15+
},
16+
{
17+
"label": "publish",
18+
"command": "dotnet",
19+
"type": "process",
20+
"args": [
21+
"publish",
22+
"${workspaceFolder}/src/WorkloadManager/Monai.Deploy.WorkloadManager.csproj",
23+
"/property:GenerateFullPaths=true",
24+
"/consoleloggerparameters:NoSummary"
25+
],
26+
"problemMatcher": "$msCompile"
27+
},
28+
{
29+
"label": "watch",
30+
"command": "dotnet",
31+
"type": "process",
32+
"args": [
33+
"watch",
34+
"run",
35+
"${workspaceFolder}/src/WorkloadManager/Monai.Deploy.WorkloadManager.csproj",
36+
"/property:GenerateFullPaths=true",
37+
"/consoleloggerparameters:NoSummary"
38+
],
39+
"problemMatcher": "$msCompile"
40+
}
41+
]
42+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"ServerUri": "https://sonarcloud.io/",
3+
"Organization": {
4+
"Key": "project-monai",
5+
"Name": "Project MONAI"
6+
},
7+
"ProjectKey": "Project-MONAI_monai-deploy-workflow-manager",
8+
"ProjectName": "monai-deploy-workflow-manager",
9+
"Profiles": {
10+
"CSharp": {
11+
"ProfileKey": "AX96ONQSnTk2GEVJ9ILJ",
12+
"ProfileTimestamp": "2022-03-31T10:15:41Z"
13+
}
14+
}
15+
}
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<AnalysisInput xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
3+
<Settings>
4+
<Setting>
5+
<Key>sonar.cs.analyzeGeneratedCode</Key>
6+
<Value>false</Value>
7+
</Setting>
8+
<Setting>
9+
<Key>sonar.cs.file.suffixes</Key>
10+
<Value>.cs</Value>
11+
</Setting>
12+
<Setting>
13+
<Key>sonar.cs.ignoreHeaderComments</Key>
14+
<Value>true</Value>
15+
</Setting>
16+
<Setting>
17+
<Key>sonar.cs.roslyn.ignoreIssues</Key>
18+
<Value>false</Value>
19+
</Setting>
20+
</Settings>
21+
<Rules>
22+
<Rule>
23+
<Key>S107</Key>
24+
<Parameters>
25+
<Parameter>
26+
<Key>max</Key>
27+
<Value>7</Value>
28+
</Parameter>
29+
</Parameters>
30+
</Rule>
31+
<Rule>
32+
<Key>S110</Key>
33+
<Parameters>
34+
<Parameter>
35+
<Key>max</Key>
36+
<Value>5</Value>
37+
</Parameter>
38+
</Parameters>
39+
</Rule>
40+
<Rule>
41+
<Key>S1479</Key>
42+
<Parameters>
43+
<Parameter>
44+
<Key>maximum</Key>
45+
<Value>30</Value>
46+
</Parameter>
47+
</Parameters>
48+
</Rule>
49+
<Rule>
50+
<Key>S2342</Key>
51+
<Parameters>
52+
<Parameter>
53+
<Key>flagsAttributeFormat</Key>
54+
<Value>^([A-Z]{1,3}[a-z0-9]+)*([A-Z]{2})?s$</Value>
55+
</Parameter>
56+
<Parameter>
57+
<Key>format</Key>
58+
<Value>^([A-Z]{1,3}[a-z0-9]+)*([A-Z]{2})?$</Value>
59+
</Parameter>
60+
</Parameters>
61+
</Rule>
62+
<Rule>
63+
<Key>S2436</Key>
64+
<Parameters>
65+
<Parameter>
66+
<Key>max</Key>
67+
<Value>2</Value>
68+
</Parameter>
69+
<Parameter>
70+
<Key>maxMethod</Key>
71+
<Value>3</Value>
72+
</Parameter>
73+
</Parameters>
74+
</Rule>
75+
<Rule>
76+
<Key>S3776</Key>
77+
<Parameters>
78+
<Parameter>
79+
<Key>propertyThreshold</Key>
80+
<Value>3</Value>
81+
</Parameter>
82+
<Parameter>
83+
<Key>threshold</Key>
84+
<Value>15</Value>
85+
</Parameter>
86+
</Parameters>
87+
</Rule>
88+
</Rules>
89+
</AnalysisInput>

0 commit comments

Comments
 (0)