This commit is contained in:
Gabe Stocco 2023-04-17 14:33:18 -07:00 коммит произвёл GitHub
Родитель 49e51a974d
Коммит 70f1bcf256
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 24 добавлений и 6 удалений

Просмотреть файл

@ -22,6 +22,13 @@ public sealed class Languages
private readonly List<LanguageInfo> _languageInfos = new();
private readonly ILogger _logger;
/// <summary>
/// Returns a new instance of Languages from the provided streams. If null is provided the default embedded comments
/// and/or languages will be used.
/// </summary>
/// <param name="loggerFactory">Optional logger factory to use.</param>
/// <param name="commentsStream">Optional stream to the comments.json file.</param>
/// <param name="languagesStream">Optional stream to the languages.json file.</param>
public Languages(ILoggerFactory? loggerFactory = null, Stream? commentsStream = null,
Stream? languagesStream = null)
{
@ -59,6 +66,14 @@ public sealed class Languages
}
}
/// <summary>
/// Returns a new instance of Languages from the provided configuration files.
/// If null is provided the default embedded comments and/or languages will be used.
/// </summary>
/// <param name="loggerFactory">Optional logger factory to use.</param>
/// <param name="commentsPath">Optional path to the comments.json file.</param>
/// <param name="languagesPath">Optional path to the languages.json file.</param>
/// <returns>A new instance of Languages.</returns>
public static Languages FromConfigurationFiles(ILoggerFactory? loggerFactory = null, string? commentsPath = null,
string? languagesPath = null)
{

Просмотреть файл

@ -96,7 +96,7 @@ as [Microsoft.CST.ApplicationInspector.Commands](https://www.nuget.org/packages/
The .NET Global Tool is available on NuGet
as [Microsoft.CST.ApplicationInspector.CLI](https://www.nuget.org/packages/Microsoft.CST.ApplicationInspector.CLI/).
If you use the .NET Core version, you will need to have .NET Core 6.0 or later installed. See
If you use the .NET Core version, you will need to have .NET 6.0 or later installed. See
the [JustRunIt.md](https://github.com/microsoft/ApplicationInspector/blob/master/JustRunIt.md)
or [Build.md](https://github.com/microsoft/ApplicationInspector/blob/master/BUILD.md) files for more.
@ -104,18 +104,21 @@ or [Build.md](https://github.com/microsoft/ApplicationInspector/blob/master/BUIL
```
> appinspector --help
ApplicationInspector.CLI 1.4.0+6bdef0356b
ApplicationInspector.CLI 1.8.4-beta+976ee3cdd1
c Microsoft Corporation. All rights reserved.
analyze Inspect source directory/file/compressed file (.tgz|zip) against defined characteristics
analyze Inspect source directory/file/compressed file (.tgz|zip)
against defined characteristics
tagdiff Compares unique tag values between two source paths
exporttags Export unique rule tags to view what code features may be detected
exporttags Export the list of tags associated with the specified rules.
Does not scan source code.
verifyrules Verify custom rules syntax is valid
packrules Combine multiple rule files into one file for ease in distribution
packrules Combine multiple rule files into one file for ease in
distribution
help Display more information on a specific command.

Просмотреть файл

@ -1,6 +1,6 @@
{
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "1.8-beta",
"version": "1.8",
"publicReleaseRefSpec": [
"^refs/heads/main$",
"^refs/heads/v\\d+(?:\\.\\d+)?$"