diff --git a/StyleChecker/diagnostics/AssignmentToParameter.html b/StyleChecker/diagnostics/AssignmentToParameter.html index b6b0daf..95b67c8 100644 --- a/StyleChecker/diagnostics/AssignmentToParameter.html +++ b/StyleChecker/diagnostics/AssignmentToParameter.html @@ -177,10 +177,10 @@

References

NoSingleSpaceAfterTripleSlash
  • - NoSpaceAfterSemicolon + NoSpaceAfterBrace
  • - NoSpaceAfterBrace + NoSpaceAfterSemicolon
  • NoSpaceBeforeBrace diff --git a/StyleChecker/diagnostics/ByteOrderMark.html b/StyleChecker/diagnostics/ByteOrderMark.html index cf9cda9..c593c52 100644 --- a/StyleChecker/diagnostics/ByteOrderMark.html +++ b/StyleChecker/diagnostics/ByteOrderMark.html @@ -159,10 +159,10 @@

    Code fix

    NoSingleSpaceAfterTripleSlash
  • - NoSpaceAfterSemicolon + NoSpaceAfterBrace
  • - NoSpaceAfterBrace + NoSpaceAfterSemicolon
  • NoSpaceBeforeBrace diff --git a/StyleChecker/diagnostics/DiscardingReturnValue.html b/StyleChecker/diagnostics/DiscardingReturnValue.html index 053ed28..011b960 100644 --- a/StyleChecker/diagnostics/DiscardingReturnValue.html +++ b/StyleChecker/diagnostics/DiscardingReturnValue.html @@ -273,10 +273,10 @@

    References

    NoSingleSpaceAfterTripleSlash
  • - NoSpaceAfterSemicolon + NoSpaceAfterBrace
  • - NoSpaceAfterBrace + NoSpaceAfterSemicolon
  • NoSpaceBeforeBrace diff --git a/StyleChecker/diagnostics/EmptyArrayCreation.html b/StyleChecker/diagnostics/EmptyArrayCreation.html index 828bbad..4fd4b65 100644 --- a/StyleChecker/diagnostics/EmptyArrayCreation.html +++ b/StyleChecker/diagnostics/EmptyArrayCreation.html @@ -126,10 +126,10 @@

    Code fix

    NoSingleSpaceAfterTripleSlash
  • - NoSpaceAfterSemicolon + NoSpaceAfterBrace
  • - NoSpaceAfterBrace + NoSpaceAfterSemicolon
  • NoSpaceBeforeBrace diff --git a/StyleChecker/diagnostics/EqualsNull.html b/StyleChecker/diagnostics/EqualsNull.html index d6ef36e..14e1296 100644 --- a/StyleChecker/diagnostics/EqualsNull.html +++ b/StyleChecker/diagnostics/EqualsNull.html @@ -209,10 +209,10 @@

    Code fix (with the property pattern)

    NoSingleSpaceAfterTripleSlash
  • - NoSpaceAfterSemicolon + NoSpaceAfterBrace
  • - NoSpaceAfterBrace + NoSpaceAfterSemicolon
  • NoSpaceBeforeBrace diff --git a/StyleChecker/diagnostics/IneffectiveReadByte.html b/StyleChecker/diagnostics/IneffectiveReadByte.html index 8f8202a..1302fce 100644 --- a/StyleChecker/diagnostics/IneffectiveReadByte.html +++ b/StyleChecker/diagnostics/IneffectiveReadByte.html @@ -221,10 +221,10 @@

    References

    NoSingleSpaceAfterTripleSlash
  • - NoSpaceAfterSemicolon + NoSpaceAfterBrace
  • - NoSpaceAfterBrace + NoSpaceAfterSemicolon
  • NoSpaceBeforeBrace diff --git a/StyleChecker/diagnostics/InvalidConfig.html b/StyleChecker/diagnostics/InvalidConfig.html index a3cda16..7ffc37c 100644 --- a/StyleChecker/diagnostics/InvalidConfig.html +++ b/StyleChecker/diagnostics/InvalidConfig.html @@ -148,10 +148,10 @@

    Code fix

    NoSingleSpaceAfterTripleSlash
  • - NoSpaceAfterSemicolon + NoSpaceAfterBrace
  • - NoSpaceAfterBrace + NoSpaceAfterSemicolon
  • NoSpaceBeforeBrace diff --git a/StyleChecker/diagnostics/IsNull.html b/StyleChecker/diagnostics/IsNull.html index 00cda98..c68b457 100644 --- a/StyleChecker/diagnostics/IsNull.html +++ b/StyleChecker/diagnostics/IsNull.html @@ -145,10 +145,10 @@

    Code fix (with the property pattern)

    NoSingleSpaceAfterTripleSlash
  • - NoSpaceAfterSemicolon + NoSpaceAfterBrace
  • - NoSpaceAfterBrace + NoSpaceAfterSemicolon
  • NoSpaceBeforeBrace diff --git a/StyleChecker/diagnostics/LongLine.html b/StyleChecker/diagnostics/LongLine.html index c1be91d..2bd9ded 100644 --- a/StyleChecker/diagnostics/LongLine.html +++ b/StyleChecker/diagnostics/LongLine.html @@ -115,10 +115,10 @@

    Code fix

    NoSingleSpaceAfterTripleSlash
  • - NoSpaceAfterSemicolon + NoSpaceAfterBrace
  • - NoSpaceAfterBrace + NoSpaceAfterSemicolon
  • NoSpaceBeforeBrace diff --git a/StyleChecker/diagnostics/NoDocumentation.html b/StyleChecker/diagnostics/NoDocumentation.html index 9f1f516..cb27a18 100644 --- a/StyleChecker/diagnostics/NoDocumentation.html +++ b/StyleChecker/diagnostics/NoDocumentation.html @@ -155,10 +155,10 @@

    Code fix

    NoSingleSpaceAfterTripleSlash
  • - NoSpaceAfterSemicolon + NoSpaceAfterBrace
  • - NoSpaceAfterBrace + NoSpaceAfterSemicolon
  • NoSpaceBeforeBrace diff --git a/StyleChecker/diagnostics/NoSingleSpaceAfterTripleSlash.html b/StyleChecker/diagnostics/NoSingleSpaceAfterTripleSlash.html index 6f3297d..e445b8a 100644 --- a/StyleChecker/diagnostics/NoSingleSpaceAfterTripleSlash.html +++ b/StyleChecker/diagnostics/NoSingleSpaceAfterTripleSlash.html @@ -32,6 +32,7 @@
    +

    NoSingleSpaceAfterTripleSlash

    @@ -61,6 +62,43 @@

    Description

    This analyzer does not report diagnostics to the code, which includes a line break inside the start/end tags of an XML element, as long as a single space follows ///.

    +

    Remarks

    +

    It is not sufficient to write a /// followed by a single whitespace character. +More precisely, /// must be followed by a single whitespace character followed +by an XML Element (<element>…</element> or <element … />). If the XML +element is long, it can be wrapped, but each wrapped line must begin with /// +followed by one or more whitespace characters. The following is a conformance +example:

    +
    /// <summary>Hello.</summary>
    +/// <seealso cref="Good"/>
    +public static void Good()
    +{
    +}
    +
    +/// <summary>Hello
    +/// World.</summary>
    +public static void GoodWithWrapping()
    +{
    +}
    +
    +

    The following is a nonconformance example:

    +
    /// Hello <summary>World.</summary>
    +/// See <seealso cref="Bad"/>
    +public static void Bad()
    +{
    +}
    +
    +/// Hello.
    +public static void BadWithNoElements()
    +{
    +}
    +
    +

    Before version 2.0.1, this analyzer issued diagnostics for Hello and See in +Bad(). The warning was “A single white space is needed after +'///',” but a more appropriate warning should have been “Only one +whitespace character should be placed between /// and the XML element.”

    +

    Even after version 2.0.1, StrayText analyzer reports Bad() and +BadWithNoElements() instead of this analyzer.

    Code fix

    The code fix provides an option inserting a single space after ///, or replacing two or more spaces after /// with a single space. @@ -150,10 +188,10 @@

    Code fix

  • - NoSpaceAfterSemicolon + NoSpaceAfterBrace
  • - NoSpaceAfterBrace + NoSpaceAfterSemicolon
  • NoSpaceBeforeBrace diff --git a/StyleChecker/diagnostics/NoSpaceAfterBrace.html b/StyleChecker/diagnostics/NoSpaceAfterBrace.html index 2318d5e..fc628f7 100644 --- a/StyleChecker/diagnostics/NoSpaceAfterBrace.html +++ b/StyleChecker/diagnostics/NoSpaceAfterBrace.html @@ -136,14 +136,14 @@

    Code fix

  • NoSingleSpaceAfterTripleSlash
  • -
  • - NoSpaceAfterSemicolon -
  • NoSpaceAfterBrace
    +
  • + NoSpaceAfterSemicolon +
  • NoSpaceBeforeBrace
  • diff --git a/StyleChecker/diagnostics/NoSpaceAfterSemicolon.html b/StyleChecker/diagnostics/NoSpaceAfterSemicolon.html index 3a2a96e..4d9e69b 100644 --- a/StyleChecker/diagnostics/NoSpaceAfterSemicolon.html +++ b/StyleChecker/diagnostics/NoSpaceAfterSemicolon.html @@ -134,14 +134,14 @@

    Code fix

  • NoSingleSpaceAfterTripleSlash
  • +
  • + NoSpaceAfterBrace +
  • NoSpaceAfterSemicolon
    -
  • - NoSpaceAfterBrace -
  • NoSpaceBeforeBrace
  • diff --git a/StyleChecker/diagnostics/NoSpaceBeforeBrace.html b/StyleChecker/diagnostics/NoSpaceBeforeBrace.html index bb5be06..38580fa 100644 --- a/StyleChecker/diagnostics/NoSpaceBeforeBrace.html +++ b/StyleChecker/diagnostics/NoSpaceBeforeBrace.html @@ -135,10 +135,10 @@

    Code fix

    NoSingleSpaceAfterTripleSlash
  • - NoSpaceAfterSemicolon + NoSpaceAfterBrace
  • - NoSpaceAfterBrace + NoSpaceAfterSemicolon
  • NoSpaceBeforeBrace diff --git a/StyleChecker/diagnostics/NotDesignedForExtension.html b/StyleChecker/diagnostics/NotDesignedForExtension.html index ae6f319..34110e4 100644 --- a/StyleChecker/diagnostics/NotDesignedForExtension.html +++ b/StyleChecker/diagnostics/NotDesignedForExtension.html @@ -189,10 +189,10 @@

    References

    NoSingleSpaceAfterTripleSlash
  • - NoSpaceAfterSemicolon + NoSpaceAfterBrace
  • - NoSpaceAfterBrace + NoSpaceAfterSemicolon
  • NoSpaceBeforeBrace diff --git a/StyleChecker/diagnostics/NotOneShotInitialization.html b/StyleChecker/diagnostics/NotOneShotInitialization.html index 48ff5fb..644fee1 100644 --- a/StyleChecker/diagnostics/NotOneShotInitialization.html +++ b/StyleChecker/diagnostics/NotOneShotInitialization.html @@ -313,10 +313,10 @@

    References

    NoSingleSpaceAfterTripleSlash
  • - NoSpaceAfterSemicolon + NoSpaceAfterBrace
  • - NoSpaceAfterBrace + NoSpaceAfterSemicolon
  • NoSpaceBeforeBrace diff --git a/StyleChecker/diagnostics/PostIncrement.html b/StyleChecker/diagnostics/PostIncrement.html index 881fe48..d592cba 100644 --- a/StyleChecker/diagnostics/PostIncrement.html +++ b/StyleChecker/diagnostics/PostIncrement.html @@ -114,10 +114,10 @@

    Code fix

    NoSingleSpaceAfterTripleSlash
  • - NoSpaceAfterSemicolon + NoSpaceAfterBrace
  • - NoSpaceAfterBrace + NoSpaceAfterSemicolon
  • NoSpaceBeforeBrace diff --git a/StyleChecker/diagnostics/RedundantTypedArrayCreation.html b/StyleChecker/diagnostics/RedundantTypedArrayCreation.html index 0c671a0..7a975fe 100644 --- a/StyleChecker/diagnostics/RedundantTypedArrayCreation.html +++ b/StyleChecker/diagnostics/RedundantTypedArrayCreation.html @@ -146,10 +146,10 @@

    References

    NoSingleSpaceAfterTripleSlash
  • - NoSpaceAfterSemicolon + NoSpaceAfterBrace
  • - NoSpaceAfterBrace + NoSpaceAfterSemicolon
  • NoSpaceBeforeBrace diff --git a/StyleChecker/diagnostics/SingleTypeParameter.html b/StyleChecker/diagnostics/SingleTypeParameter.html index 940a46e..e8c1b39 100644 --- a/StyleChecker/diagnostics/SingleTypeParameter.html +++ b/StyleChecker/diagnostics/SingleTypeParameter.html @@ -141,10 +141,10 @@

    References

    NoSingleSpaceAfterTripleSlash
  • - NoSpaceAfterSemicolon + NoSpaceAfterBrace
  • - NoSpaceAfterBrace + NoSpaceAfterSemicolon
  • NoSpaceBeforeBrace diff --git a/StyleChecker/diagnostics/SpaceBeforeSemicolon.html b/StyleChecker/diagnostics/SpaceBeforeSemicolon.html index 27e3047..77ceea6 100644 --- a/StyleChecker/diagnostics/SpaceBeforeSemicolon.html +++ b/StyleChecker/diagnostics/SpaceBeforeSemicolon.html @@ -134,10 +134,10 @@

    Code fix

    NoSingleSpaceAfterTripleSlash
  • - NoSpaceAfterSemicolon + NoSpaceAfterBrace
  • - NoSpaceAfterBrace + NoSpaceAfterSemicolon
  • NoSpaceBeforeBrace diff --git a/StyleChecker/diagnostics/StaticGenericClass.html b/StyleChecker/diagnostics/StaticGenericClass.html index 25192f0..ca281af 100644 --- a/StyleChecker/diagnostics/StaticGenericClass.html +++ b/StyleChecker/diagnostics/StaticGenericClass.html @@ -146,10 +146,10 @@

    Code fix

    NoSingleSpaceAfterTripleSlash
  • - NoSpaceAfterSemicolon + NoSpaceAfterBrace
  • - NoSpaceAfterBrace + NoSpaceAfterSemicolon
  • NoSpaceBeforeBrace diff --git a/StyleChecker/diagnostics/StinkyBooleanExpression.html b/StyleChecker/diagnostics/StinkyBooleanExpression.html index 4a3c2de..efb4520 100644 --- a/StyleChecker/diagnostics/StinkyBooleanExpression.html +++ b/StyleChecker/diagnostics/StinkyBooleanExpression.html @@ -137,10 +137,10 @@

    Code fix

    NoSingleSpaceAfterTripleSlash
  • - NoSpaceAfterSemicolon + NoSpaceAfterBrace
  • - NoSpaceAfterBrace + NoSpaceAfterSemicolon
  • NoSpaceBeforeBrace diff --git a/StyleChecker/diagnostics/StrayText.html b/StyleChecker/diagnostics/StrayText.html index ba93b42..2063605 100644 --- a/StyleChecker/diagnostics/StrayText.html +++ b/StyleChecker/diagnostics/StrayText.html @@ -153,10 +153,10 @@

    References

    NoSingleSpaceAfterTripleSlash
  • - NoSpaceAfterSemicolon + NoSpaceAfterBrace
  • - NoSpaceAfterBrace + NoSpaceAfterSemicolon
  • NoSpaceBeforeBrace diff --git a/StyleChecker/diagnostics/ThoughtlessName.html b/StyleChecker/diagnostics/ThoughtlessName.html index 41884a3..8a64c8b 100644 --- a/StyleChecker/diagnostics/ThoughtlessName.html +++ b/StyleChecker/diagnostics/ThoughtlessName.html @@ -164,10 +164,10 @@

    References

    NoSingleSpaceAfterTripleSlash
  • - NoSpaceAfterSemicolon + NoSpaceAfterBrace
  • - NoSpaceAfterBrace + NoSpaceAfterSemicolon
  • NoSpaceBeforeBrace diff --git a/StyleChecker/diagnostics/TypeClassParameter.html b/StyleChecker/diagnostics/TypeClassParameter.html index bda09cf..c7ed89a 100644 --- a/StyleChecker/diagnostics/TypeClassParameter.html +++ b/StyleChecker/diagnostics/TypeClassParameter.html @@ -177,10 +177,10 @@

    Remarks

    NoSingleSpaceAfterTripleSlash
  • - NoSpaceAfterSemicolon + NoSpaceAfterBrace
  • - NoSpaceAfterBrace + NoSpaceAfterSemicolon
  • NoSpaceBeforeBrace diff --git a/StyleChecker/diagnostics/Underscore.html b/StyleChecker/diagnostics/Underscore.html index e2a3ae8..cee63d4 100644 --- a/StyleChecker/diagnostics/Underscore.html +++ b/StyleChecker/diagnostics/Underscore.html @@ -178,10 +178,10 @@

    References

    NoSingleSpaceAfterTripleSlash
  • - NoSpaceAfterSemicolon + NoSpaceAfterBrace
  • - NoSpaceAfterBrace + NoSpaceAfterSemicolon
  • NoSpaceBeforeBrace diff --git a/StyleChecker/diagnostics/UninitializedLocalVariable.html b/StyleChecker/diagnostics/UninitializedLocalVariable.html index d6ac6ec..5a6d28e 100644 --- a/StyleChecker/diagnostics/UninitializedLocalVariable.html +++ b/StyleChecker/diagnostics/UninitializedLocalVariable.html @@ -107,10 +107,10 @@

    Diagnostic

    NoSingleSpaceAfterTripleSlash
  • - NoSpaceAfterSemicolon + NoSpaceAfterBrace
  • - NoSpaceAfterBrace + NoSpaceAfterSemicolon
  • NoSpaceBeforeBrace diff --git a/StyleChecker/diagnostics/UnnecessaryUsing.html b/StyleChecker/diagnostics/UnnecessaryUsing.html index 94b717a..ae5a326 100644 --- a/StyleChecker/diagnostics/UnnecessaryUsing.html +++ b/StyleChecker/diagnostics/UnnecessaryUsing.html @@ -150,10 +150,10 @@

    References

    NoSingleSpaceAfterTripleSlash
  • - NoSpaceAfterSemicolon + NoSpaceAfterBrace
  • - NoSpaceAfterBrace + NoSpaceAfterSemicolon
  • NoSpaceBeforeBrace diff --git a/StyleChecker/diagnostics/UnusedUsing.html b/StyleChecker/diagnostics/UnusedUsing.html index e42f76c..51b7907 100644 --- a/StyleChecker/diagnostics/UnusedUsing.html +++ b/StyleChecker/diagnostics/UnusedUsing.html @@ -115,10 +115,10 @@

    Diagnostic

    NoSingleSpaceAfterTripleSlash
  • - NoSpaceAfterSemicolon + NoSpaceAfterBrace
  • - NoSpaceAfterBrace + NoSpaceAfterSemicolon
  • NoSpaceBeforeBrace diff --git a/StyleChecker/diagnostics/UnusedVariable.html b/StyleChecker/diagnostics/UnusedVariable.html index 847b0d7..eb21e6b 100644 --- a/StyleChecker/diagnostics/UnusedVariable.html +++ b/StyleChecker/diagnostics/UnusedVariable.html @@ -182,10 +182,10 @@

    Diagnostic

    NoSingleSpaceAfterTripleSlash
  • - NoSpaceAfterSemicolon + NoSpaceAfterBrace
  • - NoSpaceAfterBrace + NoSpaceAfterSemicolon
  • NoSpaceBeforeBrace diff --git a/StyleChecker/releasenotes.html b/StyleChecker/releasenotes.html index 7f8ec6a..224ffe1 100644 --- a/StyleChecker/releasenotes.html +++ b/StyleChecker/releasenotes.html @@ -32,6 +32,7 @@
    +

    Release Notes

    @@ -42,11 +43,11 @@

    Release Notes

    ### Requirements to run -- Visual Studio 2022 (17.9.6) or .NET 8 (SDK 8.0.204) +- Visual Studio 2022 (17.10.5) or .NET 8 (SDK 8.0.303) ### Requirements to build -- Visual Studio 2022 (17.9.6) or .NET 8 (SDK 8.0.204) +- Visual Studio 2022 (17.10.5) or .NET 8 (SDK 8.0.303) ### New ### Removed @@ -56,6 +57,34 @@

    Release Notes

    --- --> +

    2.0.1 (2024-08-14)

    +

    Fix NoSingleSpaceAfterTripleSlash analyzer

    +

    Requirements to run

    +
      +
    • Visual Studio 2022 (17.10.5) or .NET 8 (SDK 8.0.303)
    • +
    +

    Requirements to build

    +
      +
    • Visual Studio 2022 (17.10.5) or .NET 8 (SDK 8.0.303)
    • +
    +

    Changed

    +
      +
    • +

      Fix NoSingleSpaceAfterTripleSlash analyzer not to issue diagnostics when +there are characters that start with a whitespace character and contain a +non-whitespace character between /// and an XML element, as in the following +code:

      +
      /// Hello <summary>World.</summary>
      +/// See <seealso cref="Bad"/>
      +public static void Bad()
      +{
      +}
      +
      +

      Note that StrayText analyzer still issues diagnostics against the Hello +and See in the example.

      +
    • +
    +

    2.0.0 (2024-05-17)

    C# 12 Support and New Enhancements

    Requirements to run

    @@ -69,17 +98,17 @@

    Requirements to build

    New

    • Handle C# 12 source codes
    • -
    • Add NoSpaceAfterBrace and -NoSpaceBeforeBrace analyzers
    • -
    • EqualsNull analyzers provides a new option of Code Fix to -replace: +
    • Add NoSpaceAfterBrace and NoSpaceBeforeBrace analyzers
    • +
    • EqualsNull analyzers provides a new option of Code Fix to replace:
        -
      • … != null or … != null with the property pattern … is {} or !(… is {})
      • +
      • … != null or … != null with the property pattern … is {} or +!(… is {})
    • -
    • IsNull analyzers provides a new option of Code Fix to replace: +
    • IsNull analyzers provides a new option of Code Fix to replace:
        -
      • !(… is null) or … is null with the property pattern … is {} or !(… is {})
      • +
      • !(… is null) or … is null with the property pattern … is {} or +!(… is {})
    @@ -103,10 +132,10 @@

    Changed

    Fixed

    • Fix warnings
    • -
    • Fix SingleTypeParameter analyzer to ignore the -following cases: +
    • Fix SingleTypeParameter analyzer to ignore the following cases:
        -
      • The type name is T and it has one type parameter (e.g., public class T<U> …)
      • +
      • The type name is T and it has one type parameter (e.g., +public class T<U> …)
      • The type T is already contained in the type or member
    • @@ -126,11 +155,9 @@

      Requirements to build

      New


      1.0.26 (2020-06-16)

      @@ -145,8 +172,9 @@

      Requirements to build

    New

    Fixed

      @@ -168,8 +196,8 @@

      Fixed

    Changed

      -
    • Fix NoSingleSpaceAfterTripleSlash analyzer to emit the diagnostics whose location -is just after '///'.
    • +
    • Fix NoSingleSpaceAfterTripleSlash analyzer to emit the diagnostics whose +location is just after '///'.

    1.0.25 (2020-03-28)

    @@ -246,8 +274,10 @@

    Requirements to build

    New

      -
    • Add NoSingleSpaceAfterTripleSlash analyzer and code fix provider. See the description for details.
    • -
    • Add NoDocumentation analyzer. See the description for details.
    • +
    • Add NoSingleSpaceAfterTripleSlash analyzer and code fix provider. See +the description for details.
    • +
    • Add NoDocumentation analyzer. See the description for +details.

    Changed

      @@ -255,8 +285,10 @@

      Changed

    Fixed

      -
    • Fix DiscardingReturnValue analyzer and IneffectiveReadByte code fix provider to be built on the Linux platform.
    • -
    • Fix EmptyArrayCreation, EqualsNull and IsNull analyzers to be in the Refactoring category.
    • +
    • Fix DiscardingReturnValue analyzer and IneffectiveReadByte code fix provider +to be built on the Linux platform.
    • +
    • Fix EmptyArrayCreation, EqualsNull and IsNull analyzers to be in the +Refactoring category.

    1.0.22 (2019-04-07)

    @@ -271,11 +303,12 @@

    Requirements to build

    New

    Changed

      -
    • Remove StyleChecker.Annotations and Maroontress.Oxbind from the source tree. Instead, integrate them with NuGet.
    • +
    • Remove StyleChecker.Annotations and Maroontress.Oxbind from the source tree. +Instead, integrate them with NuGet.

    Fixed

      @@ -296,17 +329,23 @@

      Requirements to build

    New

    Changed

      -
    • Fix UnnecessaryUsing analyzer to count more classes: System.IO.StringReader, System.IO.StringWriter and System.IO.UnmanagedMemoryAccessor.
    • +
    • Fix UnnecessaryUsing analyzer to count more classes: System.IO.StringReader, +System.IO.StringWriter and System.IO.UnmanagedMemoryAccessor.

    Fixed

      -
    • Fix bugs of RedundantTypedArrayCreation, PostIncrement, EmptyArrayCreation, IneffectiveReadByte, StaticGenericClass, TypeClassParameter and UnnecessaryUsing code fix providers to work in some cases. For example, the EmptyArrayCreation code fix provider is fixed to work if there is an empty array creation as an argument.
    • -
    • Fix bugs of TypeClassParameter analyzer to count the typeof operator with the operand that is static class.
    • +
    • Fix bugs of RedundantTypedArrayCreation, PostIncrement, EmptyArrayCreation, +IneffectiveReadByte, StaticGenericClass, TypeClassParameter and +UnnecessaryUsing code fix providers to work in some cases. For example, the +EmptyArrayCreation code fix provider is fixed to work if there is an empty +array creation as an argument.
    • +
    • Fix bugs of TypeClassParameter analyzer to count the typeof operator with +the operand that is static class.

    1.0.20 (2019-02-19)

    @@ -321,8 +360,8 @@

    Requirements to build

    New


    1.0.19 (2019-02-03)

    @@ -337,7 +376,8 @@

    Requirements to build

    New


    1.0.18 (2019-01-18)

    @@ -353,20 +393,25 @@

    Requirements to build

    New

      -
    • Fix ThoughtlessName analyzer to report identifiers not allowed to use which are specified with the configuration file.
    • -
    • Fix DiscardingReturnValue analyzer to report the methods discarding the return value which are specified with the configuration file.
    • +
    • Fix ThoughtlessName analyzer to report identifiers not allowed to use which +are specified with the configuration file.
    • +
    • Fix DiscardingReturnValue analyzer to report the methods discarding the return +value which are specified with the configuration file.
    • Add the help link URI to each analyzer.
    • Fix the NuGet package to contain readme.txt and some documents.
    • Merge Oxbind.CSharp 1.0.0.

    Changed

      -
    • Rename NoSpaceBeforeSemicolon and SpaceAfterSemicolon analyzer to SpaceBeforeSemicolon and NoSpaceAfterSemicolon, respectively.
    • -
    • Change the schema of the configuration file StyleChecker.xml. See README.md for details.
    • +
    • Rename NoSpaceBeforeSemicolon and SpaceAfterSemicolon analyzer to +SpaceBeforeSemicolon and NoSpaceAfterSemicolon, respectively.
    • +
    • Change the schema of the configuration file StyleChecker.xml. See +README.md for details.

    Fixed

      -
    • Fix UnusedVariable and ThoughtlessName analyzers throwing InvalidOperationException with message 'Sequence contains no elements'.
    • +
    • Fix UnusedVariable and ThoughtlessName analyzers throwing +InvalidOperationException with message 'Sequence contains no elements'.

    1.0.17 (2018-12-09)

    @@ -381,7 +426,8 @@

    Requirements to build

    Fixed

      -
    • Fix the bugs of UnusedVariable and ThoughtlessName analyzer throwing an exception when they handle catch clauses without an exception variable.
    • +
    • Fix the bugs of UnusedVariable and ThoughtlessName analyzer throwing an +exception when they handle catch clauses without an exception variable.

    1.0.16 (2018-11-30)

    @@ -396,8 +442,10 @@

    Requirements to build

    Fixed

      -
    • Fix the bugs of UnnecessaryUsing and ThoughtlessName analyzer throwing an exception when used with verbatim identifiers.
    • -
    • Fix ThoughtlessName analyzer to count parameters, out-var, pattern matching, catch and foreach.
    • +
    • Fix the bugs of UnnecessaryUsing and ThoughtlessName analyzer throwing an +exception when used with verbatim identifiers.
    • +
    • Fix ThoughtlessName analyzer to count parameters, out-var, pattern matching, +catch and foreach.
    • Fix UnusedVariable analyzer to handle catch and foreach.

    @@ -414,8 +462,13 @@

    Requirements to build

    New

    • Add NotDesignedForExtension analyzer.
    • -
    • Fix DiscardingReturnValue analyzer to count more methods. The added methods are of immutable types (e.g. string, Type, ImmutableArray and so on). See the description for details.
    • -
    • Fix DiscardingReturnValue analyzer to count the methods whose return value is annotated with the DoNotIgnoreAttribute. Note that the attribute is provided with the NuGet package StyleChecker.Annotations.
    • +
    • Fix DiscardingReturnValue analyzer to count more methods. The added methods +are of immutable types (e.g. string, Type, ImmutableArray and so on). +See the description for details.
    • +
    • Fix DiscardingReturnValue analyzer to count the methods whose return value is +annotated with the DoNotIgnoreAttribute. Note that the attribute is provided +with the NuGet package +StyleChecker.Annotations.

    Changed

      @@ -428,15 +481,20 @@

      Changed

    Fixed

      -
    • Fix AssignmentToParameter analyzer to report that a local variable passed by value if it is as follows: +
    • Fix AssignmentToParameter analyzer to report that a local variable passed by +value if it is as follows:
      • incremented or decremented with the unary operator (i.e. ++ or -- )
      • passed to a method as a ref or out parameter.
    • -
    • Fix UnusedVariable analyzer to handle a verbatim identifier, that is a variable name starting with the special character '@'.
    • -
    • Fix IneffectiveReadByte analyzer throwing exceptions if the integer constant uses binary literals or digit separators, or if it cannot be represented with int.
    • -
    • Fix Underscore CodeFix provider to handle the identifier that contains only an underscore character.
    • +
    • Fix UnusedVariable analyzer to handle a verbatim identifier, that is a +variable name starting with the special character '@'.
    • +
    • Fix IneffectiveReadByte analyzer throwing exceptions if the integer constant +uses binary literals or digit separators, or if it cannot be represented with +int.
    • +
    • Fix Underscore CodeFix provider to handle the identifier that contains only an +underscore character.

    1.0.14 (2018-11-03)

    @@ -463,9 +521,13 @@

    Fixed

  • virtual empty methods
  • -
  • Fix UnusedVariable analyzer to ignore parameters annotated with UnusedAttribute. Note that the attribute is provided with the NuGet package StyleChecker.Annotations.
  • -
  • Fix UnusedVariable analyzer to report the parameters annotated with UnusedAttribute if the annotation is not necessary.
  • -
  • Fix Underscore, ThoughtlessName and UnusedVariable analyzers to count local variables declared with catch or foreach.
  • +
  • Fix UnusedVariable analyzer to ignore parameters annotated with +UnusedAttribute. Note that the attribute is provided with the NuGet package +StyleChecker.Annotations.
  • +
  • Fix UnusedVariable analyzer to report the parameters annotated with +UnusedAttribute if the annotation is not necessary.
  • +
  • Fix Underscore, ThoughtlessName and UnusedVariable analyzers to count local +variables declared with catch or foreach.

  • 1.0.13 (2018-10-31)

    @@ -510,13 +572,18 @@

    Requirements to build

    Changed

    Fixed


    1.0.10 (2018-10-21)

    @@ -591,7 +658,8 @@

    Requirements to build

    New


    @@ -608,7 +676,8 @@

    Requirements to build

    New

    Changed

    Fixed

    +
  • +

    Fix the following warning, with changing the target framework to +netstandard1.3.

    -

    ... depends on 'netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51' but it was not found. Analyzers may not run correctly unless the missing assembly is added as an analyzer reference as well.

    +

    ... depends on 'netstandard, Version=2.0.0.0, Culture=neutral, +PublicKeyToken=cc7b13ffcd2ddd51' but it was not found. Analyzers may not run +correctly unless the missing assembly is added as an analyzer reference as +well.

    +
  • +

    1.0.5 (2018-09-02)

    Remove UnusedUsing analyzer.

    @@ -659,7 +734,8 @@

    New

    Changed

    Fixed

    New

    Changed

    Changed

    New


    1.0.1 (2018-07-24)

    @@ -734,8 +817,10 @@

    Requirements to build

    New