RoosterDragon
36660b89e9
Silence IDE0290.
...
This rule recommends use of primary constructors. Apply the suggestions on simple POCOs, adjusting some to readonly/structs/records at the same time. For more complex classes, the use of primary constructors is more distracting than helpful, so silence the rule. IDEs can still offer fixes for using primary constructors, but it will not show up as a build issue.
2025-04-02 10:18:32 +03:00
RoosterDragon
79454d8fd2
Fix IDE0028, IDE0300, IDE0301, IDE0302, IDE0303, IDE0304.
...
Silence IDE0305.
2025-03-31 12:02:41 +03:00
RoosterDragon
0338258b45
Fix IDE0200
2025-02-22 14:56:25 +02:00
RoosterDragon
1b2c119b58
Fix RCS1257, RCS1258, RCS1261, RCS1262, RCS1265, RCS1266, RCS1267
2025-02-22 14:35:57 +02:00
RoosterDragon
a324af1afd
Fix CA2024
2025-02-21 16:07:56 +02:00
RoosterDragon
715d882456
Update LangVersion to C# 12.
...
Now that we have moved to net 8 from net 6, and with us no longer supporting the mono runtime, we can raise the C# version to match that supported by the net 8 runtime.
This unlocks C# 10, C# 11 and C# 12 features previously unavailable to us.
- https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-version-history#c-version-10
- https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-version-history#c-version-11
- https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-version-history#c-version-12
A newer version of StyleCop is required to avoid rules tripping up on the new syntax.
Enable a handful of style rules that don't have many violations.
2025-02-20 12:54:12 +02:00
Gustas
85999d7a40
vs seems more standard
2025-02-19 21:01:26 +00:00
RoosterDragon
cfde11556f
Enable Net 7 and Net 8 style rules.
2025-02-16 20:01:50 +02:00
RoosterDragon
cf7f57252e
Fix CA2265
2024-11-15 22:28:18 +02:00
RoosterDragon
e2296ad2d1
Fix CA2263
2024-11-15 22:28:18 +02:00
RoosterDragon
332ab244a7
Fix CA1862
2024-11-15 22:28:18 +02:00
RoosterDragon
9809f6ed08
Add new .NET 9 rules to editorconfig.
...
Don't enforce all the rules yet, since we are still targeting .NET 6.
Adjust cast to nullable in UnloadCargo.ChooseExitSubCell. Avoid this cast tripping up CA2021 on older NET SDK versions.
2024-11-15 22:28:18 +02:00
RoosterDragon
0649f3dc32
RCS0056 - roslynator_max_line_length = 160
2024-07-29 21:56:36 +02:00
RoosterDragon
9d5d2ab493
RCS0056 - roslynator_max_line_length = 180
2024-07-29 21:56:36 +02:00
Gustas
64b2bd4735
Update to HTTPS
2024-06-03 10:25:06 +02:00
RoosterDragon
acca837142
Fix RCS1246
2023-11-19 19:28:57 +02:00
RoosterDragon
330ca92045
Fix RCS1077
2023-11-19 19:28:57 +02:00
RoosterDragon
499efa1d0a
Change CA2211 from suggestion (analyser default level) to silent.
...
The codebase has a lot of violations of this rule, reduce the amount of noise by reducing the severity.
2023-11-17 12:03:00 +02:00
RoosterDragon
2996a1ddde
Fix CA1868
2023-11-16 09:29:17 +02:00
RoosterDragon
2ea2106eca
Fix CA1865
2023-11-16 09:29:17 +02:00
RoosterDragon
9f526610dd
Fix CA1864
2023-11-16 09:29:17 +02:00
RoosterDragon
3259737774
Add new .NET 8 rules to editorconfig.
...
Don't enforce the rules yet, since we are still targeting .NET 6.
2023-11-16 09:29:17 +02:00
RoosterDragon
360f24f609
Fix IDE0055
...
This rule no longer appears to be buggy, so enforce it. Some of the automated fixes are adjusted in order to improve the result. #pragma directives have no option to control indentation, so remove them where possible.
2023-11-16 08:45:10 +02:00
RoosterDragon
d1797a021f
Disable CA2241 try_determine_additional_string_formatting_methods_automatically
...
This is creating some false warnings, so disable for now.
2023-11-15 19:13:17 +02:00
RoosterDragon
9a3c39878d
Fix RCS1236
2023-11-10 10:38:41 +02:00
RoosterDragon
498c6e3d8b
Fix RCS1205
2023-11-10 10:38:41 +02:00
RoosterDragon
25cb3728ca
Fix RCS1170
2023-11-10 10:38:41 +02:00
RoosterDragon
fbe147ce61
Fix RCS1118
2023-11-10 10:38:41 +02:00
RoosterDragon
eb287d9b8d
Fix RCS1089
2023-11-10 10:38:41 +02:00
RoosterDragon
4dd787be13
Fix RCS1061
2023-11-10 10:38:41 +02:00
RoosterDragon
fc0bdce151
Fix RCS1239
2023-10-30 23:31:33 +02:00
RoosterDragon
64de28427c
Fix RCS1227
2023-10-30 23:31:33 +02:00
RoosterDragon
c4ca3ca743
Fix RCS1226
2023-10-30 23:31:33 +02:00
RoosterDragon
724511e244
Fix RCS1225
2023-10-30 23:31:33 +02:00
RoosterDragon
e3646595ab
Fix RCS1218
2023-10-30 23:31:33 +02:00
RoosterDragon
d2ecd0c777
Fix RCS1216
2023-10-30 23:31:33 +02:00
RoosterDragon
a24308baa5
Fix RCS1214
2023-10-30 23:31:33 +02:00
RoosterDragon
aa8e85fbf4
Fix RCS1192
2023-10-30 23:31:33 +02:00
RoosterDragon
11a892f991
Fix RCS1191
2023-10-30 23:31:33 +02:00
RoosterDragon
cf255fc78e
Fix RCS1190
2023-10-30 23:31:33 +02:00
RoosterDragon
258de7a6fd
Fix RCS1179
2023-10-30 23:31:33 +02:00
RoosterDragon
fcfee31972
Fix RCS1134
2023-10-30 23:31:33 +02:00
RoosterDragon
11b59b0a65
Fix RCS1132
2023-10-30 23:31:33 +02:00
RoosterDragon
0bb2bc651b
Fix RCS1112
2023-10-30 23:31:33 +02:00
RoosterDragon
c63788b686
Fix RCS1099
2023-10-30 23:31:33 +02:00
RoosterDragon
60e86f563c
Fix RCS1084
2023-10-30 23:31:33 +02:00
RoosterDragon
ce39e97b86
Fix RCS1080
2023-10-30 23:31:33 +02:00
RoosterDragon
06aa378dfd
Fix RCS1074
2023-10-30 23:31:33 +02:00
RoosterDragon
43ebb93ff6
Fix RCS1071
2023-10-30 23:31:33 +02:00
RoosterDragon
4fe2ed3df0
Fix RCS1068
2023-10-30 23:31:33 +02:00