Skip to content

Releases: Vannevelj/VSDiagnostics

VSDiagnostics

25 May 23:45
Compare
Choose a tag to compare
VSDiagnostics Pre-release
Pre-release

This new release brings two new diagnostics and fixes a usability issue where some analyzers marked an entire method instead of just the method name. This has now been fixed.

The newly introduced diagnostics are the following:

Category Name Description Analyzer Code Fix
Exceptions RethrowExceptionWithoutLosingStacktrace Warns when an exception is rethrown in a way that it loses the stacktrace. Yes Yes
General ConditionalOperatorReturnsDefaultOptions The conditional operator shouldn't return redundant true and false literals. Yes Yes

VSDiagnostics

24 May 22:14
Compare
Choose a tag to compare
VSDiagnostics Pre-release
Pre-release

Refer to issues #43 and #41 for the changes in this intermediate release.

VSDiagnostics

24 May 20:28
Compare
Choose a tag to compare
VSDiagnostics Pre-release
Pre-release

This release contains the following diagnostics:

Category Name Description Analyzer Code Fix
Exceptions EmptyArgumentException Guards against using an ArgumentException without specifying which argument. Yes No
Exceptions SingleGeneralException Guards against using a catch-all clause. Yes No
Exceptions CatchNullReferenceException Guards against catching a NullReferenceException Yes No
Exceptions ArgumentExceptionWithNameofOperator ArgumentException and its subclasses should use nameof() when they refer to a method parameter. Yes Yes
Async AsyncMethodWithoutAsyncSuffix Asynchronous methods should end with -Async Yes Yes
Strings ReplaceEmptyStringWithStringDotEmpty Use string.Empty instead of "". Yes Yes
Tests TestMethodWithoutPublicModifier Change the access modifier to public for all methods annotated as test. Supports NUnit, MSTest and xUnit.net. Yes Yes
General NullableToShorthand Changes Nullable<T> to T? Yes Yes
General IfStatementWithoutBraces Changes one-liner if and else statements to be surrounded in a block. Yes Yes

This release is considered a pre-release because of the general Roslyn status, not because of VSDiagnostics itself.