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
Dean Herbert
d5f2bdf6cd
Appease message pack new inspections
2025-01-08 03:13:29 +09:00
Huo Yaoyuan
68e400dd0c
Put globalconfig into seperated folder and reference explicitly
2024-12-05 18:00:42 +08:00
Huo Yaoyuan
cd9b5927eb
Enable recommended rules for globalization
2024-11-28 20:41:35 +08:00
Huo Yaoyuan
8f6e5c4754
Convert legacy ruleset to globalconfig
2024-11-28 19:34:56 +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
Dean Herbert
b1cd01ceb8
Apply ConfigureAwait changes to game side
2021-03-08 14:36:35 +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
40b43b85f1
CA1715: use prefix for generic parameters.
2019-12-17 13:00:25 +08:00
Huo Yaoyuan
61a6106e52
CA2200: don't explictly throw caught exception.
2019-12-17 13:00:23 +08:00
Huo Yaoyuan
caf3f774ba
CA1309: compare strings correctly.
2019-12-17 13:00:15 +08:00
Huo Yaoyuan
e46f6627e4
CA1052: make type static.
2019-12-17 13:00:13 +08:00
Huo Yaoyuan
d5994ed484
CA2208: create exceptions correctly.
2019-12-17 13:00:10 +08:00
Huo Yaoyuan
09257b0c6d
CA1820: use IsNullOrEmpty.
2019-12-17 13:00:08 +08:00
Huo Yaoyuan
3c39fde7ff
CA1065: throw NotSupportedException in properties.
2019-12-17 13:00:05 +08:00
Huo Yaoyuan
d7b3578cc6
CA2201: throw correct exception type.
2019-12-17 13:00:02 +08:00
Huo Yaoyuan
ecfc6dfa3d
CA1825: use Array.Empty.
2019-12-17 12:59:48 +08:00
Huo Yaoyuan
46dc2251e8
Add fxcop with every violated rule off.
2019-12-17 12:44:29 +08: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