Skip to content

Releases: maroontress/StyleChecker

Add RedundantTypedArrayCreation and EmptyArrayCreation analyzers.

19 Feb 11:10
cb3756f
Compare
Choose a tag to compare

Requirements to run

  • Visual Studio 2017 (15.9) or .NET Core 2.1 (2.1.500)

Requirements to build

  • Visual Studio 2017 (15.9)

New

Add TypeClassParameter analyzer.

03 Feb 13:45
e3b73f0
Compare
Choose a tag to compare

Requirements to run

  • Visual Studio 2017 (15.9) or .NET Core 2.1 (2.1.500)

Requirements to build

  • Visual Studio 2017 (15.9)

New

Change the schema of the configuration file to customize the behaviors of some analyzers.

18 Jan 15:44
0b699bb
Compare
Choose a tag to compare

Requirements to run

  • Visual Studio 2017 (15.9) or .NET Core 2.1 (2.1.500)

Requirements to build

  • Visual Studio 2017 (15.9)

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.
  • 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.

Fixed

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

Fix bugs of some analyzers.

08 Dec 20:41
8294492
Compare
Choose a tag to compare

Requirements to run

  • Visual Studio 2017 (15.9) or .NET Core 2.1 (2.1.500)

Requirements to build

  • Visual Studio 2017 (15.9)

Fixed

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

Fix bugs of some analyzers.

01 Dec 12:24
cb7de48
Compare
Choose a tag to compare

Requirements to run

  • Visual Studio 2017 (15.9) or .NET Core 2.1 (2.1.500)

Requirements to build

  • Visual Studio 2017 (15.9)

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 UnusedVariable analyzer to handle catch and foreach.

Add NotDesignedForExtension analyzer and fix bugs.

23 Nov 16:04
3b9e422
Compare
Choose a tag to compare

Requirements to run

  • Visual Studio 2017 (15.9) or .NET Core 2.1 (2.1.500)

Requirements to build

  • Visual Studio 2017 (15.9)

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.

Changed

  • Update dependencies:
    • StyleCop.Analyzers 1.1.1-beta.61
    • Microsoft.CodeAnalysis.CSharp.Workspaces 2.10.0

Fixed

  • 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.

Add AssignmentToParameter analyzer and fix bugs of UnusedVariable analyzer.

03 Nov 10:29
6efc40a
Compare
Choose a tag to compare

Requirements to run

  • Visual Studio 2017 or .NET Core 2.1

Requirements to build

  • Visual Studio 2017

New

  • Add AssignmentToParameter analyzer.

Fixed

  • Fix UnusedVariable analyzer to ignore:
    • interfaces
    • abstract and extern methods
    • partial methods without the implementation
    • 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.

Add UnusedVariable analyzer.

02 Nov 15:00
80ab4f7
Compare
Choose a tag to compare

Requirements to run

  • Visual Studio 2017 or .NET Core 2.1

Requirements to build

  • Visual Studio 2017

New

  • Add UnusedVariable analyzer.

Add DiscardingReturnValue analyzer.

26 Oct 04:33
0cb26f7
Compare
Choose a tag to compare

Requirements to run

  • Visual Studio 2017 or .NET Core 2.1

Requirements to build

  • Visual Studio 2017

New

  • Add DiscardingReturnValue analyzer.

Fix IneffectiveReadByte analyzer.

23 Oct 08:48
77cf89c
Compare
Choose a tag to compare

Requirements to run

  • Visual Studio 2017 or .NET Core 2.1

Requirements to build

  • Visual Studio 2017

Changed

  • Fix UnnecessaryUsing CodeFix provider to keep SyntaxTrivias around the using statement to be removed.
  • Fix IneffectiveReadByte CodeFix provider to enclose the CodeFix with a block statement.

Fixed

  • Fix IneffectiveReadByte analyzer to count parameters as well as local variables.
  • Fix bugs that IneffectiveReadByte analyzer throws NPE when the variable declaration of the for statement has no initializer, when the for statement has no declaration, or when the for statement has no condition.