1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-11 05:17:25 +08:00

26 Commits

Author SHA1 Message Date
Bartłomiej Dach
35b0ff80bb
Mark MathHelper.Clamp() as banned API
See previous commit for partial rationale.

There's an argument to be made about the `NaN`-spreading semantics being
desirable because at least something will loudly fail in that case, but
I'm not so sure about that these days. It feels like either way if
`NaN`s are produced, then things are outside of any control, and chances
are the game can probably continue without crashing. And, this move
reduces our dependence on osuTK, which has already been living on
borrowed time for years now and is only awaiting someone brave to go
excise it.
2025-02-28 13:48:22 +01:00
Huo Yaoyuan
cd9b5927eb Enable recommended rules for globalization 2024-11-28 20:41:35 +08:00
Dean Herbert
5350945340
Update HasFlag usages 2024-07-03 00:19:04 +09:00
Salman Ahmed
678bfb2caa Ban char.ToLower()/char.ToUpper() as well for better safety 2022-10-21 20:56:34 +03:00
Dean Herbert
40a60f7145 Remove all entity framework code and migrations 2022-09-15 16:58:58 +09:00
Bartłomiej Dach
6f37487528
Replace calls to defective Humanizer methods with correct version 2022-07-18 22:34:58 +02:00
Bartłomiej Dach
26c5b59f6d
Replace usages of string.To{Lower,Upper}() 2022-06-24 11:57:45 +02:00
Dean Herbert
ed9c55a776 Ban usage of ManualResetEventSlim.Wait() without a timeout value 2022-06-23 14:45:58 +09:00
Salman Ahmed
f5235f6a56 Correctify recommended method and property 2022-05-18 20:38:13 +03:00
Dean Herbert
df4968a55b Add new Guid bannedsymbols rule 2022-05-18 21:20:14 +09:00
Dean Herbert
00177a3ae1 Update usages to new naming 2022-01-06 22:54:43 +09:00
Dean Herbert
73b40e6833 Replace usage of .Result with .WaitSafelyForResult 2022-01-04 11:51:41 +09:00
Dean Herbert
031a40af6a Replace usages of Wait with WaitSafely 2022-01-04 11:51:41 +09:00
Dean Herbert
a439209535 Add BannedSymbols rules for SubscribeForNotifications variants we use 2021-12-01 15:23:28 +09:00
Dean Herbert
a8c4fd694f Add BannedSymbols entry for NuGet.Packaging 2021-11-23 15:04:44 +09:00
Dean Herbert
3c028ce05c Add IDeepCloneable interface and update existing CreateCopy methods to use it 2021-07-19 12:54:17 +09:00
smoogipoo
dcda7f62df Fix incorrect banned symbol 2021-02-25 16:10:27 +09:00
smoogipoo
996b6a1e57 Add Enum.HasFlag to banned symbols 2021-02-25 15:38:43 +09:00
Dean Herbert
9343f84a68 Add IBindableList.GetBoudCopy to banned symbols for now 2020-11-04 15:21:23 +09:00
Dean Herbert
c3a41c8476 Also avoid using internal TypeExtensions 2020-04-28 17:02:10 +09:00
Dean Herbert
f3fbb3cdc6 Add to banned symbols 2020-04-28 16:49:43 +09:00
Huo Yaoyuan
a42f9447e6 Don't use Equals(object) on T?. 2019-12-03 20:07:22 +08:00
Huo Yaoyuan
41fd3f6749 Correct BannedSymbols.txt. 2019-11-25 23:42:59 +08:00
Dean Herbert
4904346814 Fix false warnings 2019-11-25 11:31:03 +09:00
Dean Herbert
66e2a259f0 Fix usage of SpriteText instead of OsuSpriteText 2019-11-22 18:21:40 +09:00
Huo Yaoyuan
f90a9db2b2 Add BannedApiAnalyzer 2019-11-13 22:29:44 +08:00