Skip to content

Commit 98298c5

Browse files
committed
style: Stylecop fixes
1 parent ec4c768 commit 98298c5

38 files changed

+482
-242
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[*.cs]
2+
3+
# SA1124: Do not use regions
4+
dotnet_diagnostic.SA1124.severity = none

Fossology.Rest.Dotnet.Model/Analysis.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
#region Header
2-
// ---------------------------------------------------------------------------
1+
// ---------------------------------------------------------------------------
32
// <copyright file="Analysis.cs" company="Tethys">
43
// Copyright (C) 2020 T. Graf
54
// </copyright>
65
//
76
// Licensed under the MIT License.
87
// SPDX-License-Identifier: MIT
98
//
10-
// Unless required by applicable law or agreed to in writing,
9+
// Unless required by applicable law or agreed to in writing,
1110
// software distributed under the License is distributed on an
1211
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
1312
// either express or implied.
1413
// ---------------------------------------------------------------------------
15-
#endregion
1614

1715
namespace Fossology.Rest.Dotnet.Model
1816
{

Fossology.Rest.Dotnet.Model/Folder.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
#region Header
2-
// ---------------------------------------------------------------------------
1+
// ---------------------------------------------------------------------------
32
// <copyright file="Folder.cs" company="Tethys">
43
// Copyright (C) 2019 T. Graf
54
// </copyright>
65
//
76
// Licensed under the MIT License.
87
// SPDX-License-Identifier: MIT
98
//
10-
// Unless required by applicable law or agreed to in writing,
9+
// Unless required by applicable law or agreed to in writing,
1110
// software distributed under the License is distributed on an
1211
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
1312
// either express or implied.
1413
// ---------------------------------------------------------------------------
15-
#endregion
1614

1715
namespace Fossology.Rest.Dotnet.Model
1816
{
@@ -31,7 +29,7 @@ public class Folder
3129
"description": "string",
3230
"parent": 0
3331
}
34-
]
32+
]
3533
*/
3634

3735
/// <summary>
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<RuleSet Name="Rules for Fossology.Rest.Dotnet.Model" Description="Code analysis rules for Fossology.Rest.Dotnet.Model.csproj." ToolsVersion="16.0">
3+
<Rules AnalyzerId="Microsoft.Analyzers.ManagedCodeAnalysis" RuleNamespace="Microsoft.Rules.Managed">
4+
<Rule Id="CA1001" Action="Warning" />
5+
<Rule Id="CA1009" Action="Warning" />
6+
<Rule Id="CA1016" Action="Warning" />
7+
<Rule Id="CA1033" Action="Warning" />
8+
<Rule Id="CA1049" Action="Warning" />
9+
<Rule Id="CA1060" Action="Warning" />
10+
<Rule Id="CA1061" Action="Warning" />
11+
<Rule Id="CA1063" Action="Warning" />
12+
<Rule Id="CA1065" Action="Warning" />
13+
<Rule Id="CA1301" Action="Warning" />
14+
<Rule Id="CA1400" Action="Warning" />
15+
<Rule Id="CA1401" Action="Warning" />
16+
<Rule Id="CA1403" Action="Warning" />
17+
<Rule Id="CA1404" Action="Warning" />
18+
<Rule Id="CA1405" Action="Warning" />
19+
<Rule Id="CA1410" Action="Warning" />
20+
<Rule Id="CA1415" Action="Warning" />
21+
<Rule Id="CA1821" Action="Warning" />
22+
<Rule Id="CA1900" Action="Warning" />
23+
<Rule Id="CA1901" Action="Warning" />
24+
<Rule Id="CA2002" Action="Warning" />
25+
<Rule Id="CA2100" Action="Warning" />
26+
<Rule Id="CA2101" Action="Warning" />
27+
<Rule Id="CA2108" Action="Warning" />
28+
<Rule Id="CA2111" Action="Warning" />
29+
<Rule Id="CA2112" Action="Warning" />
30+
<Rule Id="CA2114" Action="Warning" />
31+
<Rule Id="CA2116" Action="Warning" />
32+
<Rule Id="CA2117" Action="Warning" />
33+
<Rule Id="CA2122" Action="Warning" />
34+
<Rule Id="CA2123" Action="Warning" />
35+
<Rule Id="CA2124" Action="Warning" />
36+
<Rule Id="CA2126" Action="Warning" />
37+
<Rule Id="CA2131" Action="Warning" />
38+
<Rule Id="CA2132" Action="Warning" />
39+
<Rule Id="CA2133" Action="Warning" />
40+
<Rule Id="CA2134" Action="Warning" />
41+
<Rule Id="CA2137" Action="Warning" />
42+
<Rule Id="CA2138" Action="Warning" />
43+
<Rule Id="CA2140" Action="Warning" />
44+
<Rule Id="CA2141" Action="Warning" />
45+
<Rule Id="CA2146" Action="Warning" />
46+
<Rule Id="CA2147" Action="Warning" />
47+
<Rule Id="CA2149" Action="Warning" />
48+
<Rule Id="CA2200" Action="Warning" />
49+
<Rule Id="CA2202" Action="Warning" />
50+
<Rule Id="CA2207" Action="Warning" />
51+
<Rule Id="CA2212" Action="Warning" />
52+
<Rule Id="CA2213" Action="Warning" />
53+
<Rule Id="CA2214" Action="Warning" />
54+
<Rule Id="CA2216" Action="Warning" />
55+
<Rule Id="CA2220" Action="Warning" />
56+
<Rule Id="CA2229" Action="Warning" />
57+
<Rule Id="CA2231" Action="Warning" />
58+
<Rule Id="CA2232" Action="Warning" />
59+
<Rule Id="CA2235" Action="Warning" />
60+
<Rule Id="CA2236" Action="Warning" />
61+
<Rule Id="CA2237" Action="Warning" />
62+
<Rule Id="CA2238" Action="Warning" />
63+
<Rule Id="CA2240" Action="Warning" />
64+
<Rule Id="CA2241" Action="Warning" />
65+
<Rule Id="CA2242" Action="Warning" />
66+
</Rules>
67+
<Rules AnalyzerId="StyleCop.Analyzers" RuleNamespace="StyleCop.Analyzers">
68+
<Rule Id="SA0001" Action="None" />
69+
<Rule Id="SA1201" Action="None" />
70+
<Rule Id="SA1515" Action="None" />
71+
<Rule Id="SA1636" Action="None" />
72+
</Rules>
73+
</RuleSet>

Fossology.Rest.Dotnet.Model/Job.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
#region Header
2-
// ---------------------------------------------------------------------------
3-
// <copyright file="TriggerInfo.cs" company="Tethys">
1+
// ---------------------------------------------------------------------------
2+
// <copyright file="Job.cs" company="Tethys">
43
// Copyright (C) 2019 T. Graf
54
// </copyright>
65
//
76
// Licensed under the MIT License.
87
// SPDX-License-Identifier: MIT
98
//
10-
// Unless required by applicable law or agreed to in writing,
9+
// Unless required by applicable law or agreed to in writing,
1110
// software distributed under the License is distributed on an
1211
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
1312
// either express or implied.
1413
// ---------------------------------------------------------------------------
15-
#endregion
1614

1715
namespace Fossology.Rest.Dotnet.Model
1816
{
@@ -33,7 +31,7 @@ public class Job
3331
"groupId": 0,
3432
"eta": 0,
3533
"status": "Completed"
36-
}
34+
}
3735
*/
3836

3937
/// <summary>

Fossology.Rest.Dotnet.Model/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
#region Header
2-
// ---------------------------------------------------------------------------
1+
// ---------------------------------------------------------------------------
32
// <copyright file="AssemblyInfo.cs" company="Tethys">
43
// Copyright (C) 2019-2020 T. Graf
54
// </copyright>
65
//
76
// Licensed under the MIT License.
87
// SPDX-License-Identifier: MIT
98
//
10-
// Unless required by applicable law or agreed to in writing,
9+
// Unless required by applicable law or agreed to in writing,
1110
// software distributed under the License is distributed on an
1211
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
1312
// either express or implied.
1413
// ---------------------------------------------------------------------------
15-
#endregion
1614

1715
using System.Reflection;
1816
using System.Runtime.InteropServices;

Fossology.Rest.Dotnet.Model/Result.cs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
#region Header
2-
// ---------------------------------------------------------------------------
1+
// ---------------------------------------------------------------------------
32
// <copyright file="Result.cs" company="Tethys">
43
// Copyright (C) 2019 T. Graf
54
// </copyright>
65
//
76
// Licensed under the MIT License.
87
// SPDX-License-Identifier: MIT
98
//
10-
// Unless required by applicable law or agreed to in writing,
9+
// Unless required by applicable law or agreed to in writing,
1110
// software distributed under the License is distributed on an
1211
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
1312
// either express or implied.
1413
// ---------------------------------------------------------------------------
15-
#endregion
1614

1715
namespace Fossology.Rest.Dotnet.Model
1816
{
@@ -30,7 +28,7 @@ public class Result
3028
"message": "string",
3129
"type": "INFO"
3230
}
33-
]
31+
]
3432
*/
3533

3634
/// <summary>

Fossology.Rest.Dotnet.Model/SearchResult.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
#region Header
2-
// ---------------------------------------------------------------------------
1+
// ---------------------------------------------------------------------------
32
// <copyright file="SearchResult.cs" company="Tethys">
43
// Copyright (C) 2019 T. Graf
54
// </copyright>
65
//
76
// Licensed under the MIT License.
87
// SPDX-License-Identifier: MIT
98
//
10-
// Unless required by applicable law or agreed to in writing,
9+
// Unless required by applicable law or agreed to in writing,
1110
// software distributed under the License is distributed on an
1211
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
1312
// either express or implied.
1413
// ---------------------------------------------------------------------------
15-
#endregion
1614

1715
namespace Fossology.Rest.Dotnet.Model
1816
{

Fossology.Rest.Dotnet.Model/ServerUpload.cs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
#region Header
2-
// ---------------------------------------------------------------------------
1+
// ---------------------------------------------------------------------------
32
// <copyright file="ServerUpload.cs" company="Tethys">
43
// Copyright (C) 2020 T. Graf
54
// </copyright>
65
//
76
// Licensed under the MIT License.
87
// SPDX-License-Identifier: MIT
98
//
10-
// Unless required by applicable law or agreed to in writing,
9+
// Unless required by applicable law or agreed to in writing,
1110
// software distributed under the License is distributed on an
1211
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
1312
// either express or implied.
1413
// ---------------------------------------------------------------------------
15-
#endregion
1614

1715
namespace Fossology.Rest.Dotnet.Model
1816
{
@@ -37,7 +35,6 @@ public class ServerUpload
3735
[JsonProperty("name")]
3836
public string Name { get; set; }
3937

40-
4138
/// <inheritdoc />
4239
public override string ToString()
4340
{

Fossology.Rest.Dotnet.Model/Support.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
#region Header
2-
// ---------------------------------------------------------------------------
1+
// ---------------------------------------------------------------------------
32
// <copyright file="Support.cs" company="Tethys">
43
// Copyright (C) 2020 T. Graf
54
// </copyright>
65
//
76
// Licensed under the MIT License.
87
// SPDX-License-Identifier: MIT
98
//
10-
// Unless required by applicable law or agreed to in writing,
9+
// Unless required by applicable law or agreed to in writing,
1110
// software distributed under the License is distributed on an
1211
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
1312
// either express or implied.
1413
// ---------------------------------------------------------------------------
15-
#endregion
1614

1715
namespace Fossology.Rest.Dotnet.Model
1816
{

0 commit comments

Comments
 (0)