-
Notifications
You must be signed in to change notification settings - Fork 125
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
October 15th, 2020 Community Call #263
Comments
|
|
Update on Predictions and the available RFC to provide feedback |
PowerShellGet v3 update? |
PowerShell Working Groups - https://devblogs.microsoft.com/powershell/powershell-working-groups/ Is this going to be just PowerShell repo or wider across the number of PowerShell repos already there. How soon you intend to try to get these in place for? |
Not today -- it's not quite the same use-case as PSScriptAnalyzer today, since the analysis must be mostly of C# and due to the compilation step there's an added question of what do you run the analysis on; the C# source or the built module asset. There are possible advantages to the latter, but there's more established tooling for the former. We've discussed using Roslyn analysers to improve the module authoring experience, but just in a theoretical "wouldn't it be nice if" way. Certainly since that issue (which predates my joining the PS team) I haven't heard much in the way of requests for it, but I'd love to have the discussion about:
|
@iSazonov don't know if you were able to hear the call, but we should get the style and analyzer changes in now before we start making functional code changes for 7.2. I can help spend time reviewing those PRs. |
It's come up a few times on the discord. Last time it was discussed, someone mentioned that the Azure PowerShell team developed a few analyzers after a lot of complaints. I haven't confirmed that though.
It most often comes up as a way to assist C# developers who just happen to be tasked with making a PowerShell module. Stuff like use
Imo just additional roslyn analyzers that you can reference just like any other. The use case (imo) is almost always someone who is more familiar with C# than PowerShell, so matching the tooling there seems ideal.
Separate. I don't think any of the code base would be shared at all. |
such a tool would be great to give to our partner teams at Microsoft who don't come from a PS background so that they have a set of best practices. It's a cmdlet review (albeit basic) but without the people (aka it scales) |
The reason I have in mind for suggesting that perhaps it could be run on a post-build asset is that it could also check:
|
Yeah I know 😕 Manifest details... I think still could be. I know source generators can accept any arbitrary files included in the project, but I'm not sure about analyzers. I worry that trying to invent completely custom tooling will push this outside what is currently a super feasible area. Some very basic roslyn analyzers could go a long way into getting better quality modules. Especially if there is buy in across the org. It might also help to convince other teams to give it a go if all they have to do is slap on a |
This is exactly what I'm thinking as well. There's a crawl,walk,run here and the crawl would help a fair bit, I think! |
It is an C# application. We can inject any appropriate logic in the application. |
Have anybody an experience with Roslyn analyzer developing? :-) |
@SteveL-MSFT I hear you. Thanks! Please look @xtqqczze's PRs (closed as stale too). I hope MSFT members help and community reviewers too. |
Agenda:
Please add topics/questions here!
The text was updated successfully, but these errors were encountered: