-
Notifications
You must be signed in to change notification settings - Fork 1
/
BannedSymbols.txt
75 lines (69 loc) · 4.95 KB
/
BannedSymbols.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// Newtonsoft
N:Newtonsoft.Json;Use System.Text.Json instead
// Non-generic collections
T:System.Collections.ArrayList;Use List<T>
T:System.Collections.Hashtable;Use Dictionary<TKey, TValue>
// Blocking Task operations
P:System.Threading.Tasks.Task.Result;Await it
M:System.Threading.Tasks.Task.Wait;Await it
M:System.Threading.Tasks.Task.GetAwaiter;Await it
M:System.Runtime.CompilerServices.TaskAwaiter.GetResult;Await it
M:System.Threading.Tasks.Task.WaitAll`1;Use await Task.WhenAll()
// Same for ValueTasks
P:System.Threading.Tasks.ValueTask.Result;Await it
M:System.Threading.Tasks.ValueTask.Wait;Await it
M:System.Threading.Tasks.ValueTask.GetAwaiter;Await it
// Unsafe numeric conversion
M:System.Convert.ToByte;Use byte.TryParse()
M:System.Convert.ToInt16;Use short.TryParse()
M:System.Convert.ToInt32;Use int.TryParse()
M:System.Convert.ToInt64;Use long.TryParse()
M:System.Convert.ToSingle;Use float.TryParse()
M:System.Convert.ToDouble;Use double.TryParse()
// EF Core stuff
M:Microsoft.EntityFrameworkCore.DbContext.FindAsync``1(System.Object[],System.Threading.CancellationToken)
// M:Microsoft.EntityFrameworkCore.DbContext.Set``1
M:Microsoft.EntityFrameworkCore.DbContext.Set``1(System.String)
M:Microsoft.EntityFrameworkCore.DbContext.SaveChanges
M:Microsoft.EntityFrameworkCore.DbContext.SaveChanges(System.Boolean)
M:Microsoft.EntityFrameworkCore.DbContext.add_SavingChanges(System.EventHandler{Microsoft.EntityFrameworkCore.SavingChangesEventArgs})
M:Microsoft.EntityFrameworkCore.DbContext.remove_SavingChanges(System.EventHandler{Microsoft.EntityFrameworkCore.SavingChangesEventArgs})
M:Microsoft.EntityFrameworkCore.DbContext.add_SavedChanges(System.EventHandler{Microsoft.EntityFrameworkCore.SavedChangesEventArgs})
M:Microsoft.EntityFrameworkCore.DbContext.remove_SavedChanges(System.EventHandler{Microsoft.EntityFrameworkCore.SavedChangesEventArgs})
M:Microsoft.EntityFrameworkCore.DbContext.add_SaveChangesFailed(System.EventHandler{Microsoft.EntityFrameworkCore.SaveChangesFailedEventArgs})
M:Microsoft.EntityFrameworkCore.DbContext.remove_SaveChangesFailed(System.EventHandler{Microsoft.EntityFrameworkCore.SaveChangesFailedEventArgs})
M:Microsoft.EntityFrameworkCore.DbContext.Entry``1(``0)
M:Microsoft.EntityFrameworkCore.DbContext.Entry(System.Object)
M:Microsoft.EntityFrameworkCore.DbContext.Add``1(``0)
M:Microsoft.EntityFrameworkCore.DbContext.AddAsync``1(``0,System.Threading.CancellationToken)
M:Microsoft.EntityFrameworkCore.DbContext.Attach``1(``0)
M:Microsoft.EntityFrameworkCore.DbContext.Update``1(``0)
M:Microsoft.EntityFrameworkCore.DbContext.Add(System.Object)
M:Microsoft.EntityFrameworkCore.DbContext.AddAsync(System.Object,System.Threading.CancellationToken)
M:Microsoft.EntityFrameworkCore.DbContext.Attach(System.Object)
M:Microsoft.EntityFrameworkCore.DbContext.Update(System.Object)
M:Microsoft.EntityFrameworkCore.DbContext.AddRange(System.Object[])
M:Microsoft.EntityFrameworkCore.DbContext.AddRangeAsync(System.Object[])
M:Microsoft.EntityFrameworkCore.DbContext.AttachRange(System.Object[])
M:Microsoft.EntityFrameworkCore.DbContext.UpdateRange(System.Object[])
M:Microsoft.EntityFrameworkCore.DbContext.RemoveRange(System.Object[])
M:Microsoft.EntityFrameworkCore.DbContext.AddRange(System.Collections.Generic.IEnumerable{System.Object})
M:Microsoft.EntityFrameworkCore.DbContext.AddRangeAsync(System.Collections.Generic.IEnumerable{System.Object},System.Threading.CancellationToken)
M:Microsoft.EntityFrameworkCore.DbContext.AttachRange(System.Collections.Generic.IEnumerable{System.Object})
M:Microsoft.EntityFrameworkCore.DbContext.UpdateRange(System.Collections.Generic.IEnumerable{System.Object})
M:Microsoft.EntityFrameworkCore.DbContext.RemoveRange(System.Collections.Generic.IEnumerable{System.Object})
M:Microsoft.EntityFrameworkCore.DbContext.Find(System.Type,System.Object[])
M:Microsoft.EntityFrameworkCore.DbContext.FindAsync(System.Type,System.Object[])
M:Microsoft.EntityFrameworkCore.DbContext.FindAsync(System.Type,System.Object[],System.Threading.CancellationToken)
M:Microsoft.EntityFrameworkCore.DbContext.Find``1(System.Object[])
M:Microsoft.EntityFrameworkCore.DbContext.FindAsync``1(System.Object[])
// More EF Core
// TODO: figure out how to actually reference a method of a generic class 'cause this shit doesn't work
M:Microsoft.EntityFrameworkCore.DbSet`0.AddAsync(`0);Use .Add()
M:Microsoft.EntityFrameworkCore.DbSet`0.AddAsync(`0,System.Threading.CancellationToken);Use .Add()
M:Microsoft.EntityFrameworkCore.DbSet`1.AddRangeAsync(System.Collections.Generic.IEnumerable{`0});Use .AddRange()
M:Microsoft.EntityFrameworkCore.DbSet`1.AddRangeAsync`1(`0,System.Threading.CancellationToken);Use .AddRange()
M:Microsoft.EntityFrameworkCore.DbSet`1.RemoveAsync(`0);Use .Remove()
M:Microsoft.EntityFrameworkCore.DbSet`1.RemoveAsync`1(`0,System.Threading.CancellationToken);Use .Remove()
M:Microsoft.EntityFrameworkCore.DbSet`1.RemoveRangeAsync(`0);Use .RemoveRange()
M:Microsoft.EntityFrameworkCore.DbSet`1.RemoveRangeAsync`1(`0,System.Threading.CancellationToken);Use .RemoveRange()