Skip to content

AvoidPositionalParametersNoViolations.ps1 lacks an Space #1569

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

Closed
Kriegel opened this issue Aug 13, 2020 · 6 comments · Fixed by #1573
Closed

AvoidPositionalParametersNoViolations.ps1 lacks an Space #1569

Kriegel opened this issue Aug 13, 2020 · 6 comments · Fixed by #1573

Comments

@Kriegel
Copy link

Kriegel commented Aug 13, 2020

Hi !

Currently i am developing an PowerShell prettifier / beautifier / refactoring Module
For this I am using the Rule Testing Files out of this Module.

So I am found a little Typo in the File named:
AvoidPositionalParametersNoViolations.ps1

https://github.com/PowerShell/PSScriptAnalyzer/blob/master/Tests/Rules/AvoidPositionalParametersNoViolations.ps1

The Typo is on line 6

get-service-computername localhost | where {($_.status -eq "Running") -and ($_.CanStop -eq $true)}

a space between get-service and -computername is missing.

Hope this helps.

My PowerShell prettifier / beautifier / refactoring Module is developed here:
Kriegel/BeautyOfPower

@ghost ghost added the Needs: Triage 🔍 label Aug 13, 2020
@rjmholt
Copy link
Contributor

rjmholt commented Aug 13, 2020

Hope this helps.

If you feel like opening a PR, that would be even more helpful

@Kriegel
Copy link
Author

Kriegel commented Aug 13, 2020

Hi @rjmholt Robert

I guess PR means Pull Request !? ??

Shame on me, even if I am developing on Github, I never used Pull Request, so I do not know the how to ...

In my further development I found, that ' Get-Service' has no '-ComputerName' Parameter on PS 6+7 anymore.
So line 6 is a deprecated candidate.

@Kriegel
Copy link
Author

Kriegel commented Aug 14, 2020

Hi @rjmholt Robert,

by the way ...
Do you really want that I fork a Repo and doing a Pull Request to correct a single Whitespace?
I think that is regulatory overkill.

Additionally, I think, that I am not the one who can decide if Line 6 is deprecated.

@SydneyhSmith
Copy link
Collaborator

Thanks @Kriegel for looking into this, totally understand where you are coming from about forking the repo but we try to keep our process in place as much as possible to set contributors up well for future pull requests, and to keep the repository in an easily maintainable state, that being said for a change like this you can also open the PR by creating a branch from the UI...No worries about not feeling like the right one to make the call around deprecation--that is the role of the maintainers to approve and manage those types of changes. I will go ahead and mark this as a bug and "Up for Grabs"--thanks

@rjmholt
Copy link
Contributor

rjmholt commented Aug 18, 2020

Do you really want that I fork a Repo and doing a Pull Request to correct a single Whitespace?

Indeed, you can do it all without leaving the browser:

ghpr

I think that is regulatory overkill.

It's not a process thing, it's just the standard git workflow. We try not to create any excess process, and in this case there's no need for things like a tracking issue or discussion -- the code change, in the form of a PR, is sufficient.

@Kriegel
Copy link
Author

Kriegel commented Aug 18, 2020

@SydneyhSmith

Thank you all!
I have learned about online PRs and will do so in future.
Thank you for teaching me.
@rjmholt
I apologize if I sound to harsh, english is hard for me and is not my mother tounge.

Stay well!
Live long and prosper.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants