Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaces occurrences of New-Object with new() #1399

Merged
merged 4 commits into from
Sep 22, 2024
Merged

Replaces occurrences of New-Object with new() #1399

merged 4 commits into from
Sep 22, 2024

Conversation

Badgerati
Copy link
Owner

Description of the Change

  • Replaces all occurrences of New-Object with the appropriate ::new() call
  • Adds custom rule for PSScriptAnalyzer to detect and warn against using New-Object

Related Issue

Resolves #1361

@Badgerati Badgerati added this to the 2.11.0 milestone Sep 22, 2024
@Badgerati Badgerati self-assigned this Sep 22, 2024
@Badgerati Badgerati merged commit 473c9be into develop Sep 22, 2024
26 checks passed
@Badgerati Badgerati deleted the Issue-1361 branch September 22, 2024 13:44
@Badgerati Badgerati mentioned this pull request Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Change "New-Object" calls to be ":new()" instead, for performance gain
1 participant