Skip to content

[ci] fix PowerShell linter #6971

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

Merged
merged 3 commits into from
Jul 15, 2025
Merged

[ci] fix PowerShell linter #6971

merged 3 commits into from
Jul 15, 2025

Conversation

StrikerRUS
Copy link
Collaborator

@StrikerRUS StrikerRUS commented Jul 15, 2025

Fix recently appeared error

Linting PowerShell code

RuleName                            Severity     ScriptName Line  Message
--------                            --------     ---------- ----  -------
PSUseCmdletCorrectly                Warning      test-windo 45    Cmdlet 'Get-C
                                                 ws.ps1           hildItem' may
                                                                   be used inco
                                                                  rrectly. Plea
                                                                  se check that
                                                                   all mandator
                                                                  y parameters
                                                                  are supplied.

https://github.com/microsoft/LightGBM/actions/runs/16274062912/job/45948575098#step:3:522

Attributes param: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.management/get-childitem?view=powershell-7.5#-attributes

Copy link
Collaborator

@jameslamb jameslamb left a comment

Choose a reason for hiding this comment

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

thanks!

@jameslamb jameslamb merged commit 4c37695 into master Jul 15, 2025
51 checks passed
@jameslamb jameslamb deleted the ci/lint branch July 15, 2025 13:21
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.

2 participants