Skip to content

Commit

Permalink
Change version to 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
josefpihrt committed Nov 26, 2018
1 parent 6fd8861 commit ef7049a
Show file tree
Hide file tree
Showing 24 changed files with 127 additions and 45 deletions.
7 changes: 7 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
### 2.0.1 (2018-11-26)

#### Analyzers

* Add analyzer [UnnecessaryUsageOfEnumerator](http://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1230.md) (RCS1230)
* Add analyzer [MakeParameterRefReadOnly](http://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1231.md) (RCS1231)

### 2.0.0 (2018-10-14)

#### New Features
Expand Down
37 changes: 37 additions & 0 deletions docs/analyzers/RCS1230.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# RCS1230: Unnecessary usage of enumerator

| Property | Value |
| -------- | ----------- |
| Id | RCS1230 |
| Category | Readability |
| Severity | Info |

## Example

### Code with Diagnostic

```csharp
using (var en = items.GetEnumerator()) // RCS1230
{
while (en.MoveNext())
{
yield return en.Current;
}
}
```

### Code with Fix

```csharp
foreach (var item in items)
{
yield return en.Current;
}
```

## See Also

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


*\(Generated with [DotMarkdown](http://github.com/JosefPihrt/DotMarkdown)\)*
38 changes: 38 additions & 0 deletions docs/analyzers/RCS1231.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# RCS1231: Make parameter ref read\-only

| Property | Value |
| -------- | ----------- |
| Id | RCS1231 |
| Category | Performance |
| Severity | Info |

## Example

### Code with Diagnostic

```csharp
readonly struct C
{
void M(C c) // RCS1231
{
}
}
```

### Code with Fix

```csharp
readonly struct C
{
void M(in C c)
{
}
}
```

## See Also

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


*\(Generated with [DotMarkdown](http://github.com/JosefPihrt/DotMarkdown)\)*
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>2.0.0.1</Version>
<Version>2.0.1.0</Version>
<AssemblyName>Roslynator.CSharp.Analyzers.CodeFixes</AssemblyName>
<RootNamespace>Roslynator.CSharp</RootNamespace>
<CodeAnalysisRuleSet>..\global.ruleset</CodeAnalysisRuleSet>
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>2.0.0.1</Version>
<Version>2.0.1.0</Version>
<AssemblyName>Roslynator.CSharp.Analyzers</AssemblyName>
<RootNamespace>Roslynator.CSharp</RootNamespace>
<CodeAnalysisRuleSet>..\global.ruleset</CodeAnalysisRuleSet>
Expand Down
2 changes: 2 additions & 0 deletions src/Analyzers/AnalyzersByCategory.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
| Naming | [Rename private field according to camel case with underscore](../../docs/analyzers/RCS1045.md) | RCS1045 | None |
| Performance | [Avoid unnecessary boxing of value type](../../docs/analyzers/RCS1198.md) | RCS1198 | None |
| Performance | [Call 'Enumerable.Skip' and 'Enumerable.Any' instead of 'Enumerable.Count'](../../docs/analyzers/RCS1219.md) | RCS1219 | None |
| Performance | [Make parameter ref read-only](../../docs/analyzers/RCS1231.md) | RCS1231 | Info |
| Performance | [Optimize LINQ method call](../../docs/analyzers/RCS1077.md) | RCS1077 | Info |
| Performance | [Optimize StringBuilder.Append/AppendLine call](../../docs/analyzers/RCS1197.md) | RCS1197 | Info |
| Performance | [Use bitwise operation instead of calling 'HasFlag'](../../docs/analyzers/RCS1096.md) | RCS1096 | Info |
Expand All @@ -84,6 +85,7 @@
| Readability | [Simplify code branching](../../docs/analyzers/RCS1218.md) | RCS1218 | Info |
| Readability | [Sort enum members](../../docs/analyzers/RCS1154.md) | RCS1154 | Info |
| Readability | [Split variable declaration](../../docs/analyzers/RCS1081.md) | RCS1081 | None |
| Readability | [Unnecessary usage of enumerator](../../docs/analyzers/RCS1230.md) | RCS1230 | Info |
| Readability | [Unused element in documentation comment](../../docs/analyzers/RCS1228.md) | RCS1228 | Hidden |
| Readability | [Use explicit type instead of 'var' (foreach variable)](../../docs/analyzers/RCS1009.md) | RCS1009 | None |
| Readability | [Use explicit type instead of 'var' (when the type is not obvious)](../../docs/analyzers/RCS1008.md) | RCS1008 | None |
Expand Down
2 changes: 2 additions & 0 deletions src/Analyzers/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@
| RCS1227 | [Validate arguments correctly](../../docs/analyzers/RCS1227.md) | Design | Info |
| RCS1228 | [Unused element in documentation comment](../../docs/analyzers/RCS1228.md) | Readability | Hidden |
| RCS1229 | [Use async/await when necessary](../../docs/analyzers/RCS1229.md) | Usage | Info |
| RCS1230 | [Unnecessary usage of enumerator](../../docs/analyzers/RCS1230.md) | Readability | Info |
| RCS1231 | [Make parameter ref read-only](../../docs/analyzers/RCS1231.md) | Performance | Info |


*\(Generated with [DotMarkdown](http://github.com/JosefPihrt/DotMarkdown)\)*
10 changes: 5 additions & 5 deletions 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.8</Version>
<Version>1.0.0.9</Version>
<AssemblyName>Roslynator.CSharp.Workspaces</AssemblyName>
<RootNamespace>Roslynator</RootNamespace>
<CodeAnalysisRuleSet>..\global.ruleset</CodeAnalysisRuleSet>
Expand All @@ -20,7 +20,7 @@

<PropertyGroup>
<PackageId>Roslynator.CSharp.Workspaces</PackageId>
<PackageVersion>1.0.0-rc4</PackageVersion>
<PackageVersion>1.0.0-rc5</PackageVersion>
<Authors>Josef Pihrt</Authors>
<Company></Company>
<Description>This library extends functionality of package Microsoft.CodeAnalysis.CSharp.Workspaces
Expand All @@ -32,12 +32,12 @@ Roslynator.CSharp.SyntaxInfo
Roslynator.NameGenerator</Description>
<Copyright>Copyright (c) 2017-2018 Josef Pihrt</Copyright>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageLicenseUrl>http://github.com/JosefPihrt/Roslynator/blob/master/LICENSE.txt</PackageLicenseUrl>
<PackageProjectUrl>http://github.com/JosefPihrt/Roslynator</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/JosefPihrt/Roslynator/blob/master/LICENSE.txt</PackageLicenseUrl>
<PackageProjectUrl>https://github.com/JosefPihrt/Roslynator</PackageProjectUrl>
<PackageIconUrl>http://pihrt.net/images/Roslynator.ico</PackageIconUrl>
<PackageReleaseNotes></PackageReleaseNotes>
<PackageTags>Roslyn;Analyzer;Refactoring;Productivity;CodeAnalysis;C#;CSharp</PackageTags>
<RepositoryUrl>http://github.com/JosefPihrt/Roslynator.git</RepositoryUrl>
<RepositoryUrl>https://github.com/JosefPihrt/Roslynator.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>

Expand Down
10 changes: 5 additions & 5 deletions 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.8</Version>
<Version>1.0.0.9</Version>
<AssemblyName>Roslynator.CSharp</AssemblyName>
<RootNamespace>Roslynator</RootNamespace>
<CodeAnalysisRuleSet>..\global.ruleset</CodeAnalysisRuleSet>
Expand All @@ -20,7 +20,7 @@

<PropertyGroup>
<PackageId>Roslynator.CSharp</PackageId>
<PackageVersion>1.0.0-rc4</PackageVersion>
<PackageVersion>1.0.0-rc5</PackageVersion>
<Authors>Josef Pihrt</Authors>
<Company></Company>
<Description>This library extends functionality of package Microsoft.CodeAnalysis.CSharp
Expand All @@ -32,12 +32,12 @@ Roslynator.CSharp.SyntaxInfo
Roslynator.NameGenerator</Description>
<Copyright>Copyright (c) 2017-2018 Josef Pihrt</Copyright>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageLicenseUrl>http://github.com/JosefPihrt/Roslynator/blob/master/LICENSE.txt</PackageLicenseUrl>
<PackageProjectUrl>http://github.com/JosefPihrt/Roslynator</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/JosefPihrt/Roslynator/blob/master/LICENSE.txt</PackageLicenseUrl>
<PackageProjectUrl>https://github.com/JosefPihrt/Roslynator</PackageProjectUrl>
<PackageIconUrl>http://pihrt.net/images/Roslynator.ico</PackageIconUrl>
<PackageReleaseNotes></PackageReleaseNotes>
<PackageTags>Roslyn;Analyzer;Refactoring;Productivity;CodeAnalysis;C#;CSharp</PackageTags>
<RepositoryUrl>http://github.com/JosefPihrt/Roslynator.git</RepositoryUrl>
<RepositoryUrl>https://github.com/JosefPihrt/Roslynator.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>

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>2.0.0.1</Version>
<Version>2.0.1.0</Version>
<AssemblyName>Roslynator.CSharp.CodeFixes</AssemblyName>
<RootNamespace>Roslynator.CSharp.CodeFixes</RootNamespace>
<CodeAnalysisRuleSet>..\global.ruleset</CodeAnalysisRuleSet>
Expand Down
2 changes: 1 addition & 1 deletion src/Common.Workspaces/Common.Workspaces.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>2.0.0.1</Version>
<Version>2.0.1.0</Version>
<AssemblyName>Roslynator.Common.Workspaces</AssemblyName>
<RootNamespace>Roslynator</RootNamespace>
<CodeAnalysisRuleSet>..\global.ruleset</CodeAnalysisRuleSet>
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>2.0.0.1</Version>
<Version>2.0.1.0</Version>
<AssemblyName>Roslynator.Common</AssemblyName>
<RootNamespace>Roslynator</RootNamespace>
<CodeAnalysisRuleSet>..\global.ruleset</CodeAnalysisRuleSet>
Expand Down
10 changes: 5 additions & 5 deletions 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.8</Version>
<Version>1.0.0.9</Version>
<AssemblyName>Roslynator.Core</AssemblyName>
<RootNamespace>Roslynator</RootNamespace>
<CodeAnalysisRuleSet>..\global.ruleset</CodeAnalysisRuleSet>
Expand All @@ -20,18 +20,18 @@

<PropertyGroup>
<PackageId>Roslynator.Core</PackageId>
<PackageVersion>1.0.0-rc4</PackageVersion>
<PackageVersion>1.0.0-rc5</PackageVersion>
<Authors>Josef Pihrt</Authors>
<Company></Company>
<Description>This library extends functionality of package Microsoft.CodeAnalysis.Common.</Description>
<Copyright>Copyright (c) 2017-2018 Josef Pihrt</Copyright>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageLicenseUrl>http://github.com/JosefPihrt/Roslynator/blob/master/LICENSE.txt</PackageLicenseUrl>
<PackageProjectUrl>http://github.com/JosefPihrt/Roslynator</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/JosefPihrt/Roslynator/blob/master/LICENSE.txt</PackageLicenseUrl>
<PackageProjectUrl>https://github.com/JosefPihrt/Roslynator</PackageProjectUrl>
<PackageIconUrl>http://pihrt.net/images/Roslynator.ico</PackageIconUrl>
<PackageReleaseNotes></PackageReleaseNotes>
<PackageTags>Roslyn;CodeAnalysis</PackageTags>
<RepositoryUrl>http://github.com/JosefPihrt/Roslynator.git</RepositoryUrl>
<RepositoryUrl>https://github.com/JosefPihrt/Roslynator.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>

Expand Down
2 changes: 2 additions & 0 deletions src/DefaultRuleSet.ruleset
Original file line number Diff line number Diff line change
Expand Up @@ -229,5 +229,7 @@
<Rule Id="RCS1227" Action="Info" /> <!-- Validate arguments correctly. -->
<Rule Id="RCS1228" Action="Hidden" /> <!-- Unused element in documentation comment. -->
<Rule Id="RCS1229" Action="Info" /> <!-- Use async/await when necessary. -->
<Rule Id="RCS1230" Action="Info" /> <!-- Unnecessary usage of enumerator. -->
<Rule Id="RCS1231" Action="Info" /> <!-- Make parameter ref read-only. -->
</Rules>
</RuleSet>
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>2.0.0.1</Version>
<Version>2.0.1.0</Version>
<AssemblyName>Roslynator.CSharp.Refactorings</AssemblyName>
<RootNamespace>Roslynator.CSharp.Refactorings</RootNamespace>
<CodeAnalysisRuleSet>..\global.ruleset</CodeAnalysisRuleSet>
Expand Down
19 changes: 3 additions & 16 deletions 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.8</Version>
<Version>1.0.0.9</Version>
<AssemblyName>Roslynator.VisualBasic</AssemblyName>
<RootNamespace>Roslynator</RootNamespace>
<CodeAnalysisRuleSet>..\global.ruleset</CodeAnalysisRuleSet>
Expand All @@ -14,25 +14,12 @@
<LangVersion>7.2</LangVersion>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
<DocumentationFile>bin\Release\netstandard1.3\Roslynator.VisualBasic.xml</DocumentationFile>
</PropertyGroup>

<PropertyGroup>
<PackageId>Roslynator.VisualBasic</PackageId>
<PackageVersion>1.0.0-rc4</PackageVersion>
<IsPackable>false</IsPackable>
<Authors>Josef Pihrt</Authors>
<Company></Company>
<Description>This library extends functionality of Microsoft.CodeAnalysis.VisualBasic</Description>
<Description>This library extends functionality of package Microsoft.CodeAnalysis.VisualBasic</Description>
<Copyright>Copyright (c) 2017-2018 Josef Pihrt</Copyright>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageLicenseUrl>http://github.com/JosefPihrt/Roslynator/blob/master/LICENSE.txt</PackageLicenseUrl>
<PackageProjectUrl>http://github.com/JosefPihrt/Roslynator</PackageProjectUrl>
<PackageIconUrl>http://pihrt.net/images/Roslynator.ico</PackageIconUrl>
<PackageReleaseNotes></PackageReleaseNotes>
<PackageTags>Roslyn;Analyzer;Refactoring;Productivity;CodeAnalysis;VB;VisualBasic</PackageTags>
<RepositoryUrl>http://github.com/JosefPihrt/Roslynator.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
</PropertyGroup>

<ItemGroup>
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 @@ -34,5 +34,5 @@
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("2.0.0.0")]
[assembly: AssemblyVersion("2.0.1.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("2.0.0.0")]
[assembly: AssemblyVersion("2.0.1.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="0117e993-633f-47ea-be07-c0620e5a6788" Version="2.0.0" Language="en-US" Publisher="Josef Pihrt" />
<Identity Id="0117e993-633f-47ea-be07-c0620e5a6788" Version="2.0.1" Language="en-US" Publisher="Josef Pihrt" />
<DisplayName>Roslynator Refactorings 2017</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("2.0.0.0")]
[assembly: AssemblyVersion("2.0.1.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="9289a8ab-1bb6-496b-9992-9f7ea27f66a8" Version="2.0.0" Language="en-US" Publisher="Josef Pihrt" />
<Identity Id="9289a8ab-1bb6-496b-9992-9f7ea27f66a8" Version="2.0.1" Language="en-US" Publisher="Josef Pihrt" />
<DisplayName>Roslynator 2017</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
9 changes: 8 additions & 1 deletion src/Workspaces.Core/Workspaces.Core.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,21 @@
</PropertyGroup>

<PropertyGroup>
<Version>1.0.0.8</Version>
<Version>1.0.0.9</Version>
<AssemblyName>Roslynator.Workspaces.Core</AssemblyName>
<RootNamespace>Roslynator</RootNamespace>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>Workspaces.Core.snk</AssemblyOriginatorKeyFile>
<CodeAnalysisRuleSet>..\global.ruleset</CodeAnalysisRuleSet>
<LangVersion>latest</LangVersion>
</PropertyGroup>

<PropertyGroup>
<IsPackable>false</IsPackable>
<Authors>Josef Pihrt</Authors>
<Company></Company>
<Description>This library extends functionality of package Microsoft.CodeAnalysis.Workspaces.Common</Description>
<Copyright>Copyright (c) 2017-2018 Josef Pihrt</Copyright>
</PropertyGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion tools/PushPackages.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ rem dotnet nuget push "%_filePath%" -k %_apiKey% -s %_source%
set _filePath=..\src\CodeFixes\bin\Release\Roslynator.CodeFixes.%_version%.nupkg
rem dotnet nuget push "%_filePath%" -k %_apiKey% -s %_source%

set _version=1.0.0-rc4
set _version=1.0.0-rc5

set _filePath=..\src\Core\bin\Release\Roslynator.Core.%_version%.nupkg
rem dotnet nuget push "%_filePath%" -k %_apiKey% -s %_source%
Expand Down
2 changes: 1 addition & 1 deletion tools/build.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if errorlevel 1 (

"..\src\Tools\MetadataGenerator\bin\Release\net461\Roslynator.MetadataGenerator.exe" "..\src"
dotnet "..\src\Tools\CodeGenerator\bin\Release\netcoreapp2.0\CodeGenerator.dll" "..\src"
dotnet "..\src\Tools\VersionUpdater\bin\Release\netcoreapp2.0\VersionUpdater.dll" "2.0.0.1"
dotnet "..\src\Tools\VersionUpdater\bin\Release\netcoreapp2.0\VersionUpdater.dll" "2.0.1.0"

%_msbuildPath% "..\src\Roslynator.sln" ^
/t:Clean ^
Expand Down

0 comments on commit ef7049a

Please sign in to comment.