Releases: maroontress/StyleChecker
Releases · maroontress/StyleChecker
Add RedundantTypedArrayCreation and EmptyArrayCreation analyzers.
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 RedundantTypedArrayCreation analyzer. See the description for details.
- Add EmptyArrayCreation analyzer. See the description for details.
Add TypeClassParameter analyzer.
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. See the description for details.
Change the schema of the configuration file to customize the behaviors of some analyzers.
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.
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.
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
andforeach
. - Fix UnusedVariable analyzer to handle
catch
andforeach
.
Add NotDesignedForExtension analyzer and fix bugs.
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
orout
parameter.
- incremented or decremented with the unary operator (i.e.
- 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.
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:
interface
sabstract
andextern
methodspartial
methods without the implementationvirtual
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
orforeach
.
Add UnusedVariable analyzer.
Requirements to run
- Visual Studio 2017 or .NET Core 2.1
Requirements to build
- Visual Studio 2017
New
- Add UnusedVariable analyzer.
Add DiscardingReturnValue analyzer.
Requirements to run
- Visual Studio 2017 or .NET Core 2.1
Requirements to build
- Visual Studio 2017
New
- Add DiscardingReturnValue analyzer.
Fix IneffectiveReadByte analyzer.
Requirements to run
- Visual Studio 2017 or .NET Core 2.1
Requirements to build
- Visual Studio 2017
Changed
- Fix UnnecessaryUsing CodeFix provider to keep
SyntaxTrivia
s around theusing
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 thefor
statement has no declaration, or when thefor
statement has no condition.