Skip to content

Commit 3be523e

Browse files
committed
SonarQube workaround
1 parent 3716f65 commit 3be523e

File tree

2 files changed

+153
-150
lines changed

2 files changed

+153
-150
lines changed

.nuke/build.schema.json

Lines changed: 150 additions & 150 deletions
Original file line numberDiff line numberDiff line change
@@ -1,153 +1,153 @@
11
{
2-
"$schema": "http://json-schema.org/draft-04/schema#",
3-
"title": "Build Schema",
4-
"$ref": "#/definitions/build",
5-
"definitions": {
6-
"build": {
7-
"type": "object",
8-
"properties": {
9-
"Configuration": {
10-
"type": "string",
11-
"description": "Configuration to build - Default is 'Debug' (local) or 'Release' (server)"
12-
},
13-
"Continue": {
14-
"type": "boolean",
15-
"description": "Indicates to continue a previously failed build attempt"
16-
},
17-
"CoverletDiag": {
18-
"type": "boolean",
19-
"description": "Enable coverlet diagnostics (log.*.txt)"
20-
},
21-
"Help": {
22-
"type": "boolean",
23-
"description": "Shows the help text for this build assembly"
24-
},
25-
"Host": {
26-
"type": "string",
27-
"description": "Host for execution. Default is 'automatic'",
28-
"enum": [
29-
"AppVeyor",
30-
"AzurePipelines",
31-
"Bamboo",
32-
"Bitrise",
33-
"GitHubActions",
34-
"GitLab",
35-
"Jenkins",
36-
"Rider",
37-
"SpaceAutomation",
38-
"TeamCity",
39-
"Terminal",
40-
"TravisCI",
41-
"VisualStudio",
42-
"VSCode"
43-
]
44-
},
45-
"IsCiBuild": {
46-
"type": "boolean",
47-
"description": "Is CI Build (AppVeyor)"
48-
},
49-
"IsPushTag": {
50-
"type": "boolean",
51-
"description": "Push built NuGet package"
52-
},
53-
"NoLogo": {
54-
"type": "boolean",
55-
"description": "Disables displaying the NUKE logo"
56-
},
57-
"NuGetApiKey": {
58-
"type": "string",
59-
"description": "NuGet API Key"
60-
},
61-
"NuGetSource": {
62-
"type": "string",
63-
"description": "NuGet Source"
64-
},
65-
"Partition": {
66-
"type": "string",
67-
"description": "Partition to use on CI"
68-
},
69-
"Plan": {
70-
"type": "boolean",
71-
"description": "Shows the execution plan (HTML)"
72-
},
73-
"Profile": {
74-
"type": "array",
75-
"description": "Defines the profiles to load",
76-
"items": {
77-
"type": "string"
78-
}
79-
},
80-
"Root": {
81-
"type": "string",
82-
"description": "Root directory during build execution"
83-
},
84-
"Skip": {
85-
"type": "array",
86-
"description": "List of targets to be skipped. Empty list skips all dependencies",
87-
"items": {
88-
"type": "string",
89-
"enum": [
90-
"CiBuild",
91-
"Clean",
92-
"Compile",
93-
"Coverage",
94-
"Package",
95-
"Push",
96-
"Restore",
97-
"Sonar",
98-
"SonarBegin",
99-
"SonarEnd",
100-
"Test"
101-
]
102-
}
103-
},
104-
"Solution": {
105-
"type": "string",
106-
"description": "Path to a solution file that is automatically loaded"
107-
},
108-
"SonarLogin": {
109-
"type": "string",
110-
"description": "The SonarQube login token"
111-
},
112-
"SonarOrganization": {
113-
"type": "string",
114-
"description": "The SonarQube organization"
115-
},
116-
"SonarServer": {
117-
"type": "string",
118-
"description": "The SonarQube server"
119-
},
120-
"Target": {
121-
"type": "array",
122-
"description": "List of targets to be invoked. Default is '{default_target}'",
123-
"items": {
124-
"type": "string",
125-
"enum": [
126-
"CiBuild",
127-
"Clean",
128-
"Compile",
129-
"Coverage",
130-
"Package",
131-
"Push",
132-
"Restore",
133-
"Sonar",
134-
"SonarBegin",
135-
"SonarEnd",
136-
"Test"
137-
]
138-
}
139-
},
140-
"Verbosity": {
141-
"type": "string",
142-
"description": "Logging verbosity during build execution. Default is 'Normal'",
143-
"enum": [
144-
"Minimal",
145-
"Normal",
146-
"Quiet",
147-
"Verbose"
148-
]
149-
}
150-
}
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"title": "Build Schema",
4+
"$ref": "#/definitions/build",
5+
"definitions": {
6+
"build": {
7+
"type": "object",
8+
"properties": {
9+
"Configuration": {
10+
"type": "string",
11+
"description": "Configuration to build - Default is 'Debug' (local) or 'Release' (server)"
12+
},
13+
"Continue": {
14+
"type": "boolean",
15+
"description": "Indicates to continue a previously failed build attempt"
16+
},
17+
"CoverletDiag": {
18+
"type": "boolean",
19+
"description": "Enable coverlet diagnostics (log.*.txt)"
20+
},
21+
"Help": {
22+
"type": "boolean",
23+
"description": "Shows the help text for this build assembly"
24+
},
25+
"Host": {
26+
"type": "string",
27+
"description": "Host for execution. Default is 'automatic'",
28+
"enum": [
29+
"AppVeyor",
30+
"AzurePipelines",
31+
"Bamboo",
32+
"Bitrise",
33+
"GitHubActions",
34+
"GitLab",
35+
"Jenkins",
36+
"Rider",
37+
"SpaceAutomation",
38+
"TeamCity",
39+
"Terminal",
40+
"TravisCI",
41+
"VisualStudio",
42+
"VSCode"
43+
]
44+
},
45+
"IsCiBuild": {
46+
"type": "boolean",
47+
"description": "Is CI Build (AppVeyor)"
48+
},
49+
"IsPushTag": {
50+
"type": "boolean",
51+
"description": "Push built NuGet package"
52+
},
53+
"NoLogo": {
54+
"type": "boolean",
55+
"description": "Disables displaying the NUKE logo"
56+
},
57+
"NuGetApiKey": {
58+
"type": "string",
59+
"description": "NuGet API Key"
60+
},
61+
"NuGetSource": {
62+
"type": "string",
63+
"description": "NuGet Source"
64+
},
65+
"Partition": {
66+
"type": "string",
67+
"description": "Partition to use on CI"
68+
},
69+
"Plan": {
70+
"type": "boolean",
71+
"description": "Shows the execution plan (HTML)"
72+
},
73+
"Profile": {
74+
"type": "array",
75+
"description": "Defines the profiles to load",
76+
"items": {
77+
"type": "string"
78+
}
79+
},
80+
"Root": {
81+
"type": "string",
82+
"description": "Root directory during build execution"
83+
},
84+
"Skip": {
85+
"type": "array",
86+
"description": "List of targets to be skipped. Empty list skips all dependencies",
87+
"items": {
88+
"type": "string",
89+
"enum": [
90+
"CiBuild",
91+
"Clean",
92+
"Compile",
93+
"Coverage",
94+
"Package",
95+
"Push",
96+
"Restore",
97+
"Sonar",
98+
"SonarBegin",
99+
"SonarEnd",
100+
"Test"
101+
]
102+
}
103+
},
104+
"Solution": {
105+
"type": "string",
106+
"description": "Path to a solution file that is automatically loaded"
107+
},
108+
"SonarLogin": {
109+
"type": "string",
110+
"description": "The SonarQube login token"
111+
},
112+
"SonarOrganization": {
113+
"type": "string",
114+
"description": "The SonarQube organization"
115+
},
116+
"SonarServer": {
117+
"type": "string",
118+
"description": "The SonarQube server"
119+
},
120+
"Target": {
121+
"type": "array",
122+
"description": "List of targets to be invoked. Default is '{default_target}'",
123+
"items": {
124+
"type": "string",
125+
"enum": [
126+
"CiBuild",
127+
"Clean",
128+
"Compile",
129+
"Coverage",
130+
"Package",
131+
"Push",
132+
"Restore",
133+
"Sonar",
134+
"SonarBegin",
135+
"SonarEnd",
136+
"Test"
137+
]
138+
}
139+
},
140+
"Verbosity": {
141+
"type": "string",
142+
"description": "Logging verbosity during build execution. Default is 'Normal'",
143+
"enum": [
144+
"Minimal",
145+
"Normal",
146+
"Quiet",
147+
"Verbose"
148+
]
151149
}
150+
}
152151
}
153-
}
152+
}
153+
}

FluentAssertions.Autofac/FluentAssertions.Autofac.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
<!-- https://docs.microsoft.com/en-us/dotnet/standard/frameworks#latest-target-framework-versions -->
99
<TargetFrameworks>net472;net48;netstandard2.0;netstandard2.1;netcoreapp2.1;netcoreapp3.1;net5.0</TargetFrameworks>
1010
<GenerateDocumentationFile>true</GenerateDocumentationFile>
11+
<!-- Mark the project as being a test project -->
12+
<SonarQubeTestProject>false</SonarQubeTestProject>
1113
</PropertyGroup>
14+
1215
<ItemGroup>
1316
<PackageReference Include="Autofac" Version="6.2.0"/>
1417
<PackageReference Include="FluentAssertions" Version="6.0.0"/>

0 commit comments

Comments
 (0)