Skip to content

Commit

Permalink
messages
Browse files Browse the repository at this point in the history
  • Loading branch information
hlaueriksson committed Dec 12, 2024
1 parent 427092e commit 0a429b0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Community.PowerToys.Run.Plugin.Lint/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
var logger = factory.CreateLogger<Program>();

return await AnsiConsole.Status()
.StartAsync("Linting", async ctx =>
.StartAsync("Linting", async _ =>
{
logger.LogInformation("Linting: {Args}", args);

Expand Down
6 changes: 3 additions & 3 deletions src/Community.PowerToys.Run.Plugin.Lint/Rules.cs
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ public IEnumerable<string> Validate()
if (!files.Contains("plugin.json")) yield return $"Metadata {"plugin.json".ToQuote()} missing";
if (!files.Any(x => x.EndsWith(".dll", StringComparison.Ordinal))) yield return $"Assembly {".dll".ToQuote()} missing";

string[] RootFolders() => package.ZipArchive.Entries.Select(x => x.FullName.Split('\\', '/')[0]).Distinct().ToArray();
string[] Files() => package.ZipArchive.Entries.Select(x => x.Name).ToArray();
string[] RootFolders() => [.. package.ZipArchive.Entries.Select(x => x.FullName.Split('\\', '/')[0]).Distinct()];
string[] Files() => [.. package.ZipArchive.Entries.Select(x => x.Name)];
}
}

Expand Down Expand Up @@ -296,7 +296,7 @@ public IEnumerable<string> Validate()
if (files.Contains($"{package}.dll")) yield return $"Unnecessary dependency: {package.ToDependency()}, already defined in Central Package Management {"Directory.Packages.props".ToFilename()}";
}

string[] Files() => package.ZipArchive.Entries.Select(x => x.Name).ToArray();
string[] Files() => [.. package.ZipArchive.Entries.Select(x => x.Name)];
string[] PowerToysRunDependencies() => ["PowerToys.Common.UI.dll", "PowerToys.ManagedCommon.dll", "PowerToys.Settings.UI.Lib.dll", "Wox.Infrastructure.dll", "Wox.Plugin.dll"];
string[] PowerToysPackages()
{
Expand Down

0 comments on commit 0a429b0

Please sign in to comment.