Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
hlaueriksson committed Sep 15, 2024
1 parent 9c61ec3 commit 8b08114
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Community.PowerToys.Run.Plugin.Lint/Rules.cs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ public IEnumerable<string> Validate()
string[] actionKeyword = ["=", "?", "!!", ".", "o:", ":", "!", ">", ")", "%%", "#", "//", "{", "??", "$", "_", "<",];

if (!Guid.TryParseExact(metadata.ID, "N", out Guid _)) yield return "ID is invalid";
if (actionKeyword.Contains(metadata.ActionKeyword)) yield return "ActionKeyword is not uniqe";
if (actionKeyword.Contains(metadata.ActionKeyword)) yield return "ActionKeyword is not unique";
if (metadata.Name != RootFolder()) yield return "Name does not match plugin folder";
if (metadata.Author != repository.owner.login) yield return "Author does not match repo owner";
if (!Version.TryParse(metadata.Version, out Version? _)) yield return "Version is invalid";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ public void PluginMetadataRules_should_validate_Package()
subject = new PluginMetadataRules(package, repository);
subject.Validate().Clean().Should().BeEquivalentTo(
"ID is invalid",
"ActionKeyword is not uniqe",
"ActionKeyword is not unique",
"Name does not match plugin folder",
"Author does not match repo owner",
"Version is invalid",
Expand Down

0 comments on commit 8b08114

Please sign in to comment.