Skip to content

Commit

Permalink
Change version to 3.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
josefpihrt committed Jan 4, 2021
1 parent d880e64 commit 3983c7b
Show file tree
Hide file tree
Showing 34 changed files with 111 additions and 57 deletions.
7 changes: 7 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
### 3.1.0 (2021-01-04)

* Add analyzer [RCS0056](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS0056.md) (Line is too long)
* Add option to suppress diagnostic from Unity script methods (RCS1213)
* Consider syntax `var foo = Foo.Parse(value)` as having obvious type `Foo`
* Update references to Roslyn API to 3.7.0

### 3.0.1 (2020-10-19)

* Add analyzer [RCS0055](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS0055.md) (Fix formatting of a binary expression chain)
Expand Down
32 changes: 32 additions & 0 deletions docs/analyzers/RCS0056.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# RCS0056: A line is too long

| Property | Value |
| -------- | ---------- |
| Id | RCS0056 |
| Category | Formatting |
| Severity | None |

## Summary

This analyzer reports any line that is longer than maximal length.

Default maximal length is 125. Use EditorConfig to change maximal length \(See [Configuration](#configuration)\).

## Configuration

### EditorConfig File

```editorconfig
roslynator.max_line_length = <MAX_LINE_LENGTH>
```

## Applies to

* [Roslynator.Formatting.Analyzers](https://www.nuget.org/packages/Roslynator.Formatting.Analyzers)

## See Also

* [How to Suppress a Diagnostic](../HowToConfigureAnalyzers.md#how-to-suppress-a-diagnostic)


*\(Generated with [DotMarkdown](http://github.com/JosefPihrt/DotMarkdown)\)*
7 changes: 7 additions & 0 deletions docs/analyzers/RCS1213.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
| Category | Redundancy |
| Severity | Info |

## Configuration

Use following EditorConfig option to suppress diagnostic from [Unity script methods](https://docs.unity3d.com/ScriptReference/MonoBehaviour.html):
```editorconfig
roslynator.RCS1213.suppress_unity_script_methods = true
```

## See Also

* [How to Suppress a Diagnostic](../HowToConfigureAnalyzers.md#how-to-suppress-a-diagnostic)
Expand Down
2 changes: 1 addition & 1 deletion docs/refactorings/RR0116.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ if (items.Any(!predicate))
* [Full list of refactorings](Refactorings.md)


*\(Generated with [DotMarkdown](http://github.com/JosefPihrt/DotMarkdown)\)*
*\(Generated with [DotMarkdown](http://github.com/JosefPihrt/DotMarkdown)\)*
8 changes: 4 additions & 4 deletions docs/refactorings/Refactorings.md
Original file line number Diff line number Diff line change
Expand Up @@ -1430,15 +1430,15 @@ if (condition1)
#### Before

```csharp
if (items.Any(predicate)
if (items.Any(predicate))
{
}
```

#### After

```csharp
if (items.All(!predicate)
if (items.All(!predicate))
{
}
```
Expand All @@ -1448,15 +1448,15 @@ if (items.All(!predicate)
#### Before

```csharp
if (items.All(predicate)
if (items.All(predicate))
{
}
```

#### After

```csharp
if (items.Any(!predicate)
if (items.Any(!predicate))
{
}
```
Expand Down
2 changes: 1 addition & 1 deletion src/Analyzers.CodeFixes/Analyzers.CodeFixes.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>3.0.2.0</Version>
<Version>3.1.0.0</Version>
<AssemblyName>Roslynator.CSharp.Analyzers.CodeFixes</AssemblyName>
<RootNamespace>Roslynator.CSharp</RootNamespace>
<NuspecFile>Roslynator.Analyzers.nuspec</NuspecFile>
Expand Down
4 changes: 2 additions & 2 deletions src/Analyzers.CodeFixes/Roslynator.Analyzers.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata minClientVersion="2.8">
<id>Roslynator.Analyzers</id>
<version>3.0.0</version>
<version>3.1.0-rc</version>
<authors>Josef Pihrt</authors>
<owners>Josef Pihrt</owners>
<license type="expression">Apache-2.0</license>
Expand All @@ -11,7 +11,7 @@
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>A collection of 200+ analyzers for C#, powered by Roslyn.

- This package is dependent on Microsoft.CodeAnalysis.CSharp.Workspaces 3.5.0.</description>
- This package is dependent on Microsoft.CodeAnalysis.CSharp.Workspaces 3.7.0.</description>
<summary>A collection of 200+ analyzers for C#, powered by Roslyn.</summary>
<copyright>Copyright (c) 2016-2020 Josef Pihrt</copyright>
<tags>Roslyn Analyzer Refactoring Productivity CodeAnalysis C# CSharp</tags>
Expand Down
2 changes: 1 addition & 1 deletion src/Analyzers/Analyzers.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>3.0.2.0</Version>
<Version>3.1.0.0</Version>
<AssemblyName>Roslynator.CSharp.Analyzers</AssemblyName>
<RootNamespace>Roslynator.CSharp</RootNamespace>
<IsPackable>false</IsPackable>
Expand Down
2 changes: 1 addition & 1 deletion src/CSharp.Workspaces/CSharp.Workspaces.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>1.0.0.29</Version>
<Version>1.0.0.30</Version>
<AssemblyName>Roslynator.CSharp.Workspaces</AssemblyName>
<RootNamespace>Roslynator</RootNamespace>
<CodeAnalysisRuleSet>..\api.ruleset</CodeAnalysisRuleSet>
Expand Down
2 changes: 1 addition & 1 deletion src/CSharp/CSharp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>1.0.0.29</Version>
<Version>1.0.0.30</Version>
<AssemblyName>Roslynator.CSharp</AssemblyName>
<RootNamespace>Roslynator</RootNamespace>
<CodeAnalysisRuleSet>..\api.ruleset</CodeAnalysisRuleSet>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>A collection of analyzers for Roslyn API.

- This package is dependent on Microsoft.CodeAnalysis.CSharp.Workspaces 3.5.0.</description>
- This package is dependent on Microsoft.CodeAnalysis.CSharp.Workspaces 3.7.0.</description>
<summary>A collection of analyzers for Roslyn API.</summary>
<copyright>Copyright (c) 2016-2020 Josef Pihrt</copyright>
<tags>Roslyn Analyzer CodeAnalysis C# CSharp</tags>
Expand Down
2 changes: 1 addition & 1 deletion src/CodeFixes/CodeFixes.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>3.0.2.0</Version>
<Version>3.1.0.0</Version>
<AssemblyName>Roslynator.CSharp.CodeFixes</AssemblyName>
<RootNamespace>Roslynator.CSharp.CodeFixes</RootNamespace>
<NuspecFile>Roslynator.CodeFixes.nuspec</NuspecFile>
Expand Down
2 changes: 1 addition & 1 deletion src/Common/Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>3.0.2.0</Version>
<Version>3.1.0.0</Version>
<AssemblyName>Roslynator.Common</AssemblyName>
<RootNamespace>Roslynator</RootNamespace>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Core/Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>1.0.0.29</Version>
<Version>1.0.0.30</Version>
<AssemblyName>Roslynator.Core</AssemblyName>
<RootNamespace>Roslynator</RootNamespace>
<CodeAnalysisRuleSet>..\api.ruleset</CodeAnalysisRuleSet>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>1.0.0.3</Version>
<Version>1.1.0.0</Version>
<AssemblyName>Roslynator.Formatting.Analyzers.CodeFixes</AssemblyName>
<RootNamespace>Roslynator.Formatting</RootNamespace>
<NuspecFile>Roslynator.Formatting.Analyzers.nuspec</NuspecFile>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata minClientVersion="2.8">
<id>Roslynator.Formatting.Analyzers</id>
<version>1.0.0</version>
<version>1.1.0-rc</version>
<authors>Josef Pihrt</authors>
<owners>Josef Pihrt</owners>
<license type="expression">Apache-2.0</license>
Expand All @@ -11,7 +11,7 @@
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>A collection of formatting analyzers, powered by Roslyn.

- This package is dependent on Microsoft.CodeAnalysis.CSharp.Workspaces 3.5.0.
- This package is dependent on Microsoft.CodeAnalysis.CSharp.Workspaces 3.7.0.
- All analyzers are disabled by default.</description>
<summary>A collection of formatting analyzers, powered by Roslyn.</summary>
<copyright>Copyright (c) 2016-2020 Josef Pihrt</copyright>
Expand Down
2 changes: 1 addition & 1 deletion src/Formatting.Analyzers/Formatting.Analyzers.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>1.0.0.3</Version>
<Version>1.1.0.0</Version>
<AssemblyName>Roslynator.Formatting.Analyzers</AssemblyName>
<RootNamespace>Roslynator.Formatting</RootNamespace>
<IsPackable>false</IsPackable>
Expand Down
1 change: 1 addition & 0 deletions src/Formatting.Analyzers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
| RCS0053 | [Fix formatting of a list](../../docs/analyzers/RCS0053.md) | Formatting | None |
| RCS0054 | [Fix formatting of a call chain](../../docs/analyzers/RCS0054.md) | Formatting | None |
| RCS0055 | [Fix formatting of a binary expression chain](../../docs/analyzers/RCS0055.md) | Formatting | None |
| RCS0056 | [A line is too long](../../docs/analyzers/RCS0056.md) | Formatting | None |


*\(Generated with [DotMarkdown](http://github.com/JosefPihrt/DotMarkdown)\)*
2 changes: 1 addition & 1 deletion src/Refactorings/Refactorings.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>3.0.2.0</Version>
<Version>3.1.0.0</Version>
<AssemblyName>Roslynator.CSharp.Refactorings</AssemblyName>
<RootNamespace>Roslynator.CSharp.Refactorings</RootNamespace>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -352,26 +352,26 @@ public void M()
}

//TODO: how to enable EditorConfig options in tests
//[Fact, Trait(Traits.Analyzer, DiagnosticIdentifiers.RemoveUnusedMemberDeclaration)]
public async Task TestNoDiagnostic_UnityScriptMethods()
{
await VerifyNoDiagnosticAsync(@"
using UnityEngine;
class C : MonoBehaviour
{
private void Awake()
{
}
}
namespace UnityEngine
{
class MonoBehaviour
{
}
}
");
}
// [Fact, Trait(Traits.Analyzer, DiagnosticIdentifiers.RemoveUnusedMemberDeclaration)]
// public async Task TestNoDiagnostic_UnityScriptMethods()
// {
// await VerifyNoDiagnosticAsync(@"
//using UnityEngine;

//class C : MonoBehaviour
//{
// private void Awake()
// {
// }
//}

//namespace UnityEngine
//{
// class MonoBehaviour
// {
// }
//}
//");
// }
}
}
2 changes: 1 addition & 1 deletion src/VisualBasic.Workspaces/VisualBasic.Workspaces.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>1.0.0.29</Version>
<Version>1.0.0.30</Version>
<AssemblyName>Roslynator.VisualBasic.Workspaces</AssemblyName>
<RootNamespace>Roslynator</RootNamespace>
<CodeAnalysisRuleSet>..\api.ruleset</CodeAnalysisRuleSet>
Expand Down
2 changes: 1 addition & 1 deletion src/VisualBasic/VisualBasic.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>1.0.0.29</Version>
<Version>1.0.0.30</Version>
<AssemblyName>Roslynator.VisualBasic</AssemblyName>
<RootNamespace>Roslynator</RootNamespace>
<CodeAnalysisRuleSet>..\api.ruleset</CodeAnalysisRuleSet>
Expand Down
2 changes: 1 addition & 1 deletion src/VisualStudio.Common/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("3.0.1.0")]
[assembly: AssemblyVersion("3.1.0.0")]
//[assembly: AssemblyFileVersion("1.0.0.0")]
2 changes: 1 addition & 1 deletion src/VisualStudio.Refactorings/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.0.1.0")]
[assembly: AssemblyVersion("3.1.0.0")]
//[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: NeutralResourcesLanguage("en-US")]
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="d85083bb-3f1d-44ec-891d-9cdaed173f0f" Version="3.0.1" Language="en-US" Publisher="Josef Pihrt" />
<Identity Id="d85083bb-3f1d-44ec-891d-9cdaed173f0f" Version="3.1.0" Language="en-US" Publisher="Josef Pihrt" />
<DisplayName>Roslynator Refactorings 2019</DisplayName>
<Description xml:space="preserve">A collection of 300+ refactorings and fixes for C#, powered by Roslyn.</Description>
<MoreInfo>http://github.com/JosefPihrt/Roslynator</MoreInfo>
Expand Down
2 changes: 1 addition & 1 deletion src/VisualStudio/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@
// Build Number
// Revision
//
[assembly: AssemblyVersion("3.0.1.0")]
[assembly: AssemblyVersion("3.1.0.0")]
//[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: NeutralResourcesLanguage("en-US")]
2 changes: 1 addition & 1 deletion src/VisualStudio/source.extension.vsixmanifest
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="d42db039-5432-4399-bb62-67a9b4c3b838" Version="3.0.1" Language="en-US" Publisher="Josef Pihrt" />
<Identity Id="d42db039-5432-4399-bb62-67a9b4c3b838" Version="3.1.0" Language="en-US" Publisher="Josef Pihrt" />
<DisplayName>Roslynator 2019</DisplayName>
<Description xml:space="preserve">A collection of 500+ analyzers, refactorings and fixes for C#, powered by Roslyn.</Description>
<MoreInfo>http://github.com/JosefPihrt/Roslynator</MoreInfo>
Expand Down
2 changes: 1 addition & 1 deletion src/VisualStudioCode/VisualStudioCode.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>3.0.1.0</Version>
<Version>3.1.0.0</Version>
<AssemblyName>Roslynator.VisualStudioCode</AssemblyName>
<RootNamespace>Roslynator</RootNamespace>
<IsPackable>false</IsPackable>
Expand Down
7 changes: 7 additions & 0 deletions src/VisualStudioCode/package/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## 3.1.0 (2021-01-04)

* Add analyzer [RCS0056](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS0056.md) (Line is too long)
* Add option to suppress diagnostic from Unity script methods (RCS1213)
* Consider syntax `var foo = Foo.Parse(value)` as having obvious type `Foo`
* Update references to Roslyn API to 3.7.0

## 3.0.1 (2020-10-19)

* Add analyzer [RCS0055](https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS0055.md) (Fix formatting of a binary expression chain)
Expand Down
2 changes: 1 addition & 1 deletion src/VisualStudioCode/package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"displayName": "Roslynator",
"description": "A collection of 500+ analyzers, refactorings and fixes for C#, powered by Roslyn.",
"icon": "images/icon.png",
"version": "3.0.1",
"version": "3.1.0",
"author": "Josef Pihrt",
"license": "SEE LICENSE IN LICENSE.TXT",
"homepage": "https://github.com/josefpihrt/roslynator",
Expand Down
2 changes: 1 addition & 1 deletion src/Workspaces.Common/Workspaces.Common.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>3.0.2.0</Version>
<Version>3.1.0.0</Version>
<AssemblyName>Roslynator.Workspaces.Common</AssemblyName>
<RootNamespace>Roslynator</RootNamespace>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/Workspaces.Core/Workspaces.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>1.0.0.29</Version>
<Version>1.0.0.30</Version>
<AssemblyName>Roslynator.Workspaces.Core</AssemblyName>
<RootNamespace>Roslynator</RootNamespace>
<CodeAnalysisRuleSet>..\api.ruleset</CodeAnalysisRuleSet>
Expand Down
Loading

0 comments on commit 3983c7b

Please sign in to comment.