Skip to content

Commit

Permalink
release: v0.9.0 (#95)
Browse files Browse the repository at this point in the history
  • Loading branch information
Flash0ver authored Feb 4, 2022
1 parent acf5fe7 commit 03f07c4
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 13 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
CHANGELOG

## vNext

## v0.9.0 (2022-02-04)
### Analyzers
- Added `ImplicitRecordClassDeclaration` diagnostic analyzer, reporting _Warning F02001_ for `record` declarations without the `class` or `struct` keyword.
- Added `DeclareRecordClassExplicitly` code fix provider, adding the optional `class` keyword to `record` declarations that are _reference types_.
Expand Down
4 changes: 2 additions & 2 deletions documentation/diagnostics/F02001.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ DiagnosticAnalyzer: [F02001ImplicitRecordClassDeclaration.cs](../../source/produ
| ID | F02001 |
| Category | CleanCode |
| Language | C# 10.0 or greater |
| Applies to | `[vNext,)` |
| Applies to | `[0.9.0,)` |

## Summary

Expand Down Expand Up @@ -36,4 +36,4 @@ public readonly record struct ReadonlyRecordStruct(int Number, string Text);

## History

- [vNext](../../CHANGELOG.md#vNext)
- [0.9.0](../../CHANGELOG.md#v090-2022-02-04)
4 changes: 2 additions & 2 deletions documentation/fixes/DeclareRecordClassExplicitly.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ CodeFixProvider: [DeclareRecordClassExplicitly.cs](../../source/production/F0.An
| Title | Explicitly add class keyword to reference record declaration |
| Fixes | [F02001][F02001] |
| Language | C# 10.0 or greater |
| Applies to | `[vNext,)` |
| Applies to | `[0.9.0,)` |

## Summary

Expand Down Expand Up @@ -36,7 +36,7 @@ public record class Record(int Number, string Text);

## History

- [vNext](../../CHANGELOG.md#vNext)
- [0.9.0](../../CHANGELOG.md#v090-2022-02-04)


[F02001]: ../diagnostics/F02001.md
5 changes: 3 additions & 2 deletions source/Release.props
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
<Project>

<PropertyGroup>
<F0Version>0.8.0</F0Version>
<F0ReleaseNotes>Changed the object initializer code refactoring to also support C# 9 target-typed new expressions (implicit object creation expressions).</F0ReleaseNotes>
<F0Version>0.9.0</F0Version>
<F0ReleaseNotes>- Added explicit record class declaration analyzer diagnostic (Warning F02001) and code fix to add the optional class keyword to record declarations without the class or struct keyword.
- Fixed null check analyzer diagnostics throwing on invocations of static bool-returning methods named Equals with a single null argument.</F0ReleaseNotes>
</PropertyGroup>

</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<PackageManifest Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vsx-schema/2011" xmlns:d="http://schemas.microsoft.com/developer/vsx-schema-design/2011">
<Metadata>
<Identity Id="F0.Analyzers.Vsix" Version="0.8.0" Language="en-US" Publisher="Flash0Ware" />
<Identity Id="F0.Analyzers.Vsix" Version="0.9.0" Language="en-US" Publisher="Flash0Ware" />
<DisplayName>F0.Analyzers</DisplayName>
<Description xml:space="preserve">C# code refactorings and diagnostic analyzers with code fixes, based on the .NET Compiler Platform (Roslyn).</Description>
<MoreInfo>https://github.com/Flash0ver/F0.Analyzers</MoreInfo>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,10 @@ Rule ID | Category | Severity | Notes
--------|----------|----------|-------
F01001 | BestPractice | Warning | F0100xPreferPatternMatchingNullCheckOverComparisonWithNull, [Documentation](https://github.com/Flash0ver/F0.Analyzers/blob/main/documentation/diagnostics/F0100x.md#F01001)
F01002 | BestPractice | Info | F0100xPreferPatternMatchingNullCheckOverComparisonWithNull, [Documentation](https://github.com/Flash0ver/F0.Analyzers/blob/main/documentation/diagnostics/F0100x.md#F01002)

## Release 0.9.0

### New Rules
Rule ID | Category | Severity | Notes
--------|----------|----------|-------
F02001 | CleanCode | Warning | F02001ImplicitRecordClassDeclaration, [Documentation](https://github.com/Flash0ver/F0.Analyzers/blob/main/documentation/diagnostics/F02001.md)
Original file line number Diff line number Diff line change
@@ -1,6 +1 @@
; Please do not edit this file manually, it should only be updated through code fix application.
### New Rules

Rule ID | Category | Severity | Notes
--------|----------|----------|-------
F02001 | CleanCode | Warning | F02001ImplicitRecordClassDeclaration, [Documentation](https://github.com/Flash0ver/F0.Analyzers/blob/master/documentation/diagnostics/F02001.md)
2 changes: 1 addition & 1 deletion source/test/F0.Analyzers.Tests/AssemblyInfoTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace F0.Tests;

public class AssemblyInfoTests
{
private static readonly Version version = new(0, 8, 0, 0);
private static readonly Version version = new(0, 9, 0, 0);

static AssemblyInfoTests()
{
Expand Down

0 comments on commit 03f07c4

Please sign in to comment.