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
RoosterDragon
cfde11556f
Enable Net 7 and Net 8 style rules.
2025-02-16 20:01:50 +02:00
RoosterDragon
bf7f81b7fe
Improve some String.Split calls.
2024-11-15 22:28:18 +02:00
RoosterDragon
fbe147ce61
Fix RCS1118
2023-11-10 10:38:41 +02:00
RoosterDragon
285443f10f
Fix CA1310, CA1311
2023-08-07 21:38:09 +02:00
Matthias Mailänder
8433bc0948
Throw early when Lua function parameters are null.
2023-05-23 17:30:03 +03:00
RoosterDragon
164abfdae1
Fix IDE0083
2023-04-08 16:51:51 +03:00
RoosterDragon
53e9f44972
Spelling fixes
2023-03-02 20:11:54 +02:00
abcdefg30
5bf7fe852c
Remove the copyright year numbers
2023-01-11 11:58:54 +02:00
Vapre
215898c7ec
ScriptActorInterfaces, unbind on actor destroy.
2022-08-30 21:44:39 +02:00
abcdefg30
6a31b1f9f3
Update the copyright header year
2022-05-28 00:35:10 -05:00
Matthias Mailänder
709512b166
Add Lua API export in EmmyLua syntax.
2022-05-24 21:07:54 -05:00
Eduardo Cáceres
2677e9c013
Use pattern matching
2022-05-18 11:42:36 -05:00
Matthias Mailänder
0e7ad43425
Remove unused parameters.
2022-04-01 23:30:26 +02:00
Andre Mohren
6810469634
Updated copyright years.
2021-06-29 18:33:21 -05:00
teinarss
10676be377
Replace F extension with string interpolation
2021-05-08 22:20:59 +02:00
abcdefg30
1a4b773fda
Replace 'is' by 'as' and a null check in ScriptMemberWrapper
2020-09-27 22:17:20 +02:00
teinarss
27f1a7ab27
Use out var syntax
2020-08-19 18:11:07 +01:00
abcdefg30
23b3c237b7
Update the year numbers in all license headers to 2020
2020-01-05 17:00:34 +00:00
abcdefg30
cadbd0d9ab
Change the year number in all cs headers from 2018 to 2019
2019-01-26 23:15:21 +01:00
Arular101
8a60918841
Update copyright notice year to 2018
2018-01-17 00:47:34 +01:00
Taryn Hill
43317e0f5d
Update copyright notice year to 2017
2016-12-31 23:46:13 -06:00
Paul Chote
e71225496b
Clarify GPL version.
2016-02-21 16:30:48 +00:00
Paul Chote
b396965fd9
Update licence header year.
2016-02-21 16:27:31 +00:00
RoosterDragon
6ab6d774a7
Ensure LuaValues are disposed.
...
Adding in these missing calls prevents these instances from having to be finalized.
2015-12-23 17:22:51 +00:00
abcdefg30
8ca61aa917
Updated all year numbers
2015-01-09 21:18:05 +01:00
Hellhake
5a97a4b63b
Fix StyleCop warnings in OpenRA.Game
2015-01-02 12:11:01 +01:00
ScottNZ
90894aa03e
Use var everywhere
2014-06-15 22:17:34 +12:00
ScottNZ
dbffce81a6
Remove unused usings
2014-06-15 22:16:40 +12:00
RoosterDragon
b733465f33
General uncontroversial cleanup:
...
- Made private methods static where possible (runtime can elide checking the object for null).
- Declared attribute classes as sealed (allows reflection on attributes to complete faster).
- Moved some static cctor's into field initializers (static cctor's are slower than static field initializers).
- Made classes static if they contained only static methods (can't create instances of useless objects).
- Use inferable Exts.Lazy and not new Lazy<T>().
- Added required STAThread attribute to CrashDialog.
- Removed unused parameters in private methods.
- Added Serializable attribute to exceptions.
- Added parameter name in calls to ArgumentNullException.
- Use of as operator instead of is + cast.
- Changed (x as Foo).Bar anti-pattern into ((Foo)x).Bar. Results in sensible cast exceptions on error rather than null dereferences.
- Removed unused method in NullShader.
2014-05-23 15:50:54 +01:00
Paul Chote
d73af0190f
Add a new native-lua implementation.
2014-05-02 22:18:34 +12:00