Skip to content

Commit 3793592

Browse files
authored
Improve docs for analyze/fix command (#1241)
1 parent 963de8d commit 3793592

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed

ChangeLog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10+
### Added
11+
12+
- [CLI] Add note to docs that Roslynator CLI does not contain any analyzers itself ([PR](https://github.com/dotnet/roslynator/pull/1241))
13+
1014
### Fixed
1115

1216
- Fix [RCS1234](https://josefpihrt.github.io/docs/roslynator/analyzers/RCS1234) ([PR](https://github.com/dotnet/roslynator/pull/1233))

src/CommandLine.DocumentationGenerator/Program.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,11 @@ private static void Main(params string[] args)
103103
? File.ReadAllText(additionalContentFilePath)
104104
: "";
105105

106+
string summaryContentFilePath = Path.Combine(dataDirectoryPath, command.Name + "_summary.md");
107+
108+
if (File.Exists(summaryContentFilePath))
109+
dw.WriteRaw(File.ReadAllText(summaryContentFilePath));
110+
106111
writer.WriteCommandSynopsis(command, application);
107112
writer.WriteArguments(command.Arguments);
108113
writer.WriteOptions(command.Options);
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Project or solution should be built before the command is executed.
2+
3+
:::info
4+
Roslynator CLI does not contain any analyzers (such as [Roslynator.Analyzers](https://www.nuget.org/packages/roslynator.analyzers)) itself.
5+
6+
Analyzers are either referenced as NuGet packages or it is possible to add analyzer assemblies with parameter `--analyzer-assemblies`.
7+
:::
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
Project or solution should be built before the command is executed.
2+
3+
:::info
4+
Roslynator CLI does not contain any analyzers (such as [Roslynator.Analyzers](https://www.nuget.org/packages/roslynator.analyzers)) itself.
5+
6+
Analyzers are either referenced as NuGet packages or it is possible to add analyzer assemblies with parameter `--analyzer-assemblies`.
7+
:::

0 commit comments

Comments
 (0)