Skip to content

Fix a collection of issues reported by analyzers of VS2022#21175

Merged
PunkPun merged 12 commits into
OpenRA:bleedfrom
abcdefg30:lintFixes
Oct 30, 2023
Merged

Fix a collection of issues reported by analyzers of VS2022#21175
PunkPun merged 12 commits into
OpenRA:bleedfrom
abcdefg30:lintFixes

Conversation

@abcdefg30

Copy link
Copy Markdown
Member

While reviewing #21013 I ran the analyzer on the entire solution again and a few warnings came up that I thought we already fixed and enforced (like the multiple enumerations warning in AIUtils). This PR fixes the warnings I came across.

}

public static IEnumerable<Order> ClearBlockersOrders(IEnumerable<CPos> tiles, Player owner, Actor ignoreActor = null)
public static IEnumerable<Order> ClearBlockersOrders(List<CPos> tiles, Player owner, Actor ignoreActor = null)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public static IEnumerable<Order> ClearBlockersOrders(List<CPos> tiles, Player owner, Actor ignoreActor = null)
public static IEnumerable<Order> ClearBlockersOrders(ICollection<CPos> tiles, Player owner, Actor ignoreActor = null)

perhaps this?

@PunkPun
PunkPun merged commit d9f5588 into OpenRA:bleed Oct 30, 2023
@PunkPun

PunkPun commented Oct 30, 2023

Copy link
Copy Markdown
Member

Changelog

@abcdefg30
abcdefg30 deleted the lintFixes branch October 30, 2023 23:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants