Skip to content

Commit

Permalink
Enable CA1851 ("Possible multiple enumerations of 'IEnumerable' colle…
Browse files Browse the repository at this point in the history
…ction.")
  • Loading branch information
bradwilson committed Jan 22, 2023
1 parent 2b1f75b commit e138f20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .editorconfig
Expand Up @@ -222,4 +222,5 @@ dotnet_naming_style.begins_with_i.capitalization = pascal_case

#### Roslyn diagnostics ####

dotnet_diagnostic.CA1851.severity = warning
dotnet_diagnostic.IDE1006.severity = none
3 changes: 2 additions & 1 deletion tools/builder/targets/Packages.cs
Expand Up @@ -35,7 +35,8 @@ public static async Task OnExecute(BuildContext context)
var nuspecFiles =
Directory
.GetFiles(projectFolder, "*.nuspec")
.Select(x => Path.GetFileName(x));
.Select(x => Path.GetFileName(x))
.ToList();

// Pack the .nuspec file(s)
foreach (var nuspecFile in nuspecFiles.OrderBy(x => x))
Expand Down

0 comments on commit e138f20

Please sign in to comment.