Skip to content

PSUseApprovedVerbs rule marks whole function at beginning of file #492

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
daviwil opened this issue Apr 5, 2016 · 0 comments · Fixed by #495
Closed

PSUseApprovedVerbs rule marks whole function at beginning of file #492

daviwil opened this issue Apr 5, 2016 · 0 comments · Fixed by #495
Assignees
Milestone

Comments

@daviwil
Copy link
Contributor

daviwil commented Apr 5, 2016

@pcgeek86 and @dsolodow reported an issue at PowerShell/vscode-powershell#132 which states that the PSUseApprovedVerbs rule marks the entire function instead of just the function name if the function comes at the very beginning of the file without any newline before it. Here's a screenshot:

image

If I put one newline in front of the first function, the extent is marked correctly:

image

Seems like there must be an issue with the extent calculation here.

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.

2 participants