-
Notifications
You must be signed in to change notification settings - Fork 11
Home
Dave Dunkin edited this page Jan 18, 2023
·
15 revisions
Faithlife.Analyzers contains the C# Roslyn analyzers used at Faithlife.
-
FL0001
AsyncWorkItem.Current
must only be used in methods that returnIEnumerable
-
FL0002 Optional
StringComparison
arguments must always be specified -
FL0003
UntilCanceled()
may only be used in methods that returnIEnumerable<AsyncAction>
-
FL0004 Use
operator==
or a non-ordinalStringComparison
-
FL0005 Avoid
ToReadOnlyCollection
in constructors -
FL0006 Optional
IComparer<string>
arguments must always be specified -
FL0007 Avoid
$
in interpolated strings -
FL0008
WorkState.None
andWorkState.ToDo
must not be used when anIWorkState
is available -
FL0009 Prefer
""
overstring.Empty
-
FL0010 Prefer modern language features over
IfNotNull
-
FL0011
GetOrAddValue
should not be used withConcurrentDictionary
-
FL0012
DbConnector.Command
should not be used with an interpolated string -
FL0013 Do not use
Uri.ToString()
- FL0014 Interpolated strings should not be used without interpolation
- FL0015 Prefer null-conditional operators over ternaries
- FL0016 Verbatim strings should only be used with certain special characters
- FL0017 Do not use a switch expression on a constant value
-
FL0018 Prefer string interpolation over
FormatInvariant