Describe changes here when they're committed to the master
branch. Move them to a version heading when the project version number is updated in preparation for publishing an updated NuGet package.
Prefix the description of the change with [major]
, [minor]
, or [patch]
in accordance with Semantic Versioning.
New analyzers are considered "minor" changes (even though adding a new analyzer is likely to generate warnings or errors for existing code when the package is upgraded).
- Add FL0019: Local functions used as event handlers (unless they are static, or else they are subscribed and later unsubscribed in the same method).
- Add FL0020: Lambda expressions used as event handlers.
- Add FL0017: Do not switch on a constant value.
- Add FL0018: FormatInvariant deprecation.
- Fix false positive diagnostic for FL0008.
- This bug was introduced in 1.3.0.
- Improve performance of analyzers.
- Add FL0013:
Uri.ToString
should not be used: #66. - Add FL0014: Interpolated strings should not be used without interpolation: #63.
- Add FL0016: Verbatim strings should only be used when necessary: #74.
- Set flag in all analyzers to stop analyzing generated code.
- Add
FL0012
: don't use interpolated string withDbConnector.Command
: #17.
- Add
FL0005
: detect.ToReadOnlyCollection()
in constructors: #17. - Add
FL0006
: detect.OrderBy
without aStringComparer
: #23. - Add
FL0007
: detect$
in interpolated strings: #50. - Add
FL0008
: detect usages ofWorkState.None
andWorkState.ToDo
when alternatives exist: #4. - Add
FL0009
: prefer""
overstring.Empty
: #7. - Add
FL0010
: discourage use ofIfNotNull
: #13. - Add
FL0011
: detectConcurrentDictionary.GetOrAddValue
: #68.
- Ignore
NullReferenceException
that's infrequently thrown byUntilCanceledAnalyzer
.
- Add diagnostic for
NullReferenceException
being thrown byUntilCanceledAnalyzer
.
- Allow
AsyncWorkItem.Current
to be used in lambda passed toAsyncWorkItem.Start
: #20. - Offer
AsyncWorkItem.Current
fix more often: #19.
- Fix bug in
StringComparison
code fix provider that reformatted the entire file.
- Fix NuGet package install script.
- Downgrade
Microsoft.CodeAnalysis.CSharp.Workspaces
dependency to to 2.7.0.
- Fix false positive of
FL0002
forstring.StartsWith(char)
andstring.EndsWith(char)
.
- Initial release, supporting four analyzers.