Skip to content

Commit 154d5c4

Browse files
Bump version to 2.1.0
- Update documentation - Update dependencies
1 parent 0a1ccf8 commit 154d5c4

3 files changed

Lines changed: 37 additions & 46 deletions

File tree

README.md

Lines changed: 31 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,63 @@
11
# StyleChecker
22

3-
StyleChecker is yet another code style checker and refactoring tool like
4-
[FxCopAnalyzers][fxcopanalyzers],
5-
[StyleCop Analyzers][stylecopanalyzers],
6-
[SonarLint][sonarlint],
7-
[Roslynator][roslynator],
8-
and so on. It uses
9-
[the .NET Compiler Platform ("Roslyn")](https://github.com/dotnet/roslyn)
10-
to analyze the C# source code of .NET Core projects and outputs diagnostics
11-
of a rule violation,
12-
and when running with Visual Studio it provides code fixes as much as possible.
13-
Note that StyleChecker contains only supplemental or niche analyzers,
14-
so it is intended to be used together with other Roslyn analyzers.
3+
StyleChecker is another code style checking and refactoring tool similar to
4+
[FxCopAnalyzers][fxcopanalyzers], [StyleCop Analyzers][stylecopanalyzers],
5+
[SonarLint][sonarlint], [Roslynator][roslynator], etc. It uses the
6+
[.NET Compiler Platform ("Roslyn")][roslyn] to analyze the C# source code of
7+
.NET projects and outputs diagnostics of rule violations. And when used with
8+
IDEs such as Visual Studio, it provides as many code fixes as possible. Note
9+
that you should use this tool with other Roslyn analyzers, as it contains only
10+
complementary or niche analyzers.
1511

1612
## Get started
1713

18-
StyleChecker is available as
19-
[the ![NuGet-logo][nuget-logo] NuGet package][nuget-stylechecker].
14+
StyleChecker is available as [the ![NuGet-logo][nuget-logo] NuGet
15+
package][nuget-stylechecker].
2016

2117
### Install StyleChecker to your project with Visual Studio
2218

2319
1. Open Package Manager Console. (Open your project with Visual Studio, and
24-
select Tools
25-
➜ NuGet Package Manager
26-
➜ Package Manager Console.)
20+
select Tools ➜ NuGet Package Manager ➜ Package Manager
21+
Console.)
2722
2. Enter the command `Install-Package StyleChecker` in the Package Manager
2823
Console.
2924

30-
### Install StyleChecker to your project with .NET Core CLI
25+
### Install StyleChecker to your project with .NET CLI
3126

32-
1. Enter the command `dotnet add package StyleChecker` with the console.
27+
- Enter the command `dotnet add package StyleChecker` with the console.
3328

3429
## Diagnostics
3530

3631
See [the list of diagnostics](doc/rules).
3732

3833
## Customize configuration
3934

40-
Some analyzers can be customized to change their behaviors,
41-
placing the configuration file `StyleChecker.xml` at the project root.
42-
The XML Schema Definition file `config.v1.xsd` of the configuration file
43-
and a sample of the configuration file are provided in the directory
44-
`StyleChecker/StyleChecker/nuget/samples/` of the source tree
45-
(or in `~/.nuget/packages/stylechecker/VERSION/samples/`
46-
if you installed StyleChecker with the NuGet package). Note that
47-
StyleChecker does not use the XML Schema Definition file,
48-
but it helps you edit `StyleChecker.xml` with the text editor
49-
that is able to validate XML documents (for example, Visual Studio IDE,
50-
Visual Studio Code, and so on).
35+
You can customize some analyzers to change their behaviors by placing the
36+
configuration file `StyleChecker.xml` at the project root. The XML Schema
37+
Definition file `config.v1.xsd` of the configuration file and a sample of the
38+
configuration file are available in the directory
39+
`StyleChecker/StyleChecker/nuget/samples/` of the source tree (or in
40+
`~/.nuget/packages/stylechecker/VERSION/samples/` if you installed StyleChecker
41+
with the NuGet package). Note that StyleChecker does not use the XML Schema
42+
Definition file. But it helps you edit `StyleChecker.xml` with the text editor
43+
that can validate XML documents (for example, Visual Studio IDE, Visual Studio
44+
Code, and so on).
5145

52-
Create your own `StyleChecker.xml` file and place it at your project root,
53-
and add the `AdditionalFiles` element to `.csproj` file in your project
54-
as follows:
46+
Create your own `StyleChecker.xml` file, place it at your project root, and add
47+
the `AdditionalFiles` element to the `.csproj` file in your project as follows:
5548

5649
```xml
5750
<ItemGroup>
5851
<AdditionalFiles Include="StyleChecker.xml" />
5952
</ItemGroup>
6053
```
6154

62-
Alternatively, with Visual Studio you can set "C# analyzer additional file"
63-
to Build Action property (This property can be changed from
64-
Solution Explorer
65-
&#x279c; Right Click on the `StyleChecker.xml`
66-
&#x279c; Properties
67-
&#x279c; Advanced
68-
&#x279c; Build Action).
55+
Alternatively, in Visual Studio, you can set the value "C# analyzer additional
56+
file" to the Build Action property. You can change this property from Solution
57+
Explorer &#x279c; Right Click on the `StyleChecker.xml` &#x279c; Properties
58+
&#x279c; Advanced &#x279c; Build Action.
6959

60+
[roslyn]: https://github.com/dotnet/roslyn
7061
[fxcopanalyzers]: https://github.com/dotnet/roslyn-analyzers
7162
[stylecopanalyzers]: https://github.com/DotNetAnalyzers/StyleCopAnalyzers
7263
[sonarlint]: https://github.com/SonarSource/sonarlint-visualstudio

StyleChecker/StyleChecker.Test/StyleChecker.Test.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -566,10 +566,10 @@
566566
<ItemGroup>
567567
<PackageReference Include="coverlet.collector" Version="6.0.4" PrivateAssets="all" />
568568
<PackageReference Include="Maroontress.Oxbind" Version="1.0.3" />
569-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.12.0" />
569+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.13.0" />
570570
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
571-
<PackageReference Include="MSTest.TestAdapter" Version="3.8.0" />
572-
<PackageReference Include="MSTest.TestFramework" Version="3.8.0" />
571+
<PackageReference Include="MSTest.TestAdapter" Version="3.8.2" />
572+
<PackageReference Include="MSTest.TestFramework" Version="3.8.2" />
573573
<PackageReference Include="StyleChecker.Annotations" Version="1.0.1" />
574574
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.556" PrivateAssets="all" />
575575
</ItemGroup>

StyleChecker/StyleChecker/StyleChecker.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
<PackageProjectUrl>https://maroontress.github.io/StyleChecker/</PackageProjectUrl>
2121
<RepositoryUrl>https://github.com/maroontress/StyleChecker</RepositoryUrl>
2222
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
23-
<Description>StyleChecker is yet another code style checker and refactoring tool like FxCopAnalyzers, StyleCop Analyzers, SonarLint, Roslynator, and so on.</Description>
23+
<Description>StyleChecker is another code style checking and refactoring tool similar to FxCopAnalyzers, StyleCop Analyzers, SonarLint, Roslynator, etc.</Description>
2424
<PackageReleaseNotes>See https://maroontress.github.io/StyleChecker/releasenotes.html</PackageReleaseNotes>
2525
<Copyright>Copyright (c) 2018 Maroontress Fast Software</Copyright>
2626
<PackageTags>csharp, visual-studio, roslyn, analyzer, roslyn-analyzer, roslyn-codefix, stylechecker</PackageTags>
2727
<NoPackageAnalysis>true</NoPackageAnalysis>
28-
<Version>2.1.0-beta</Version>
28+
<Version>2.1.0</Version>
2929
<RepositoryType />
3030
<Company>Maroontress Fast Software</Company>
3131
<PackageReadmeFile>README.md</PackageReadmeFile>
@@ -46,7 +46,7 @@
4646
</ItemGroup>
4747

4848
<ItemGroup>
49-
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.12.0" PrivateAssets="all" />
49+
<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.13.0" PrivateAssets="all" />
5050
<PackageReference Include="StyleChecker.Annotations" Version="$(AnnotationsVersion)" PrivateAssets="all" />
5151
<PackageReference Include="Maroontress.Oxbind" Version="$(OxbindVersion)" PrivateAssets="all" />
5252
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.556" PrivateAssets="all" />

0 commit comments

Comments
 (0)