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

[Feature]: Allow autorest process to perform Powershell release compliance testing #26605

Open
papadeltasierra opened this issue Nov 5, 2024 · 1 comment
Labels
Azure PS Team Engineering feature-request This issue requires a new behavior in the product in order be resolved. Tracking We will track status and follow internally

Comments

@papadeltasierra
Copy link

Description of the new feature

Whilst developing a Powershell module that required custom interfaces, we discovered that we had to maintain back-compatibility with Powershell v5.1 (Desktop) and then that we had used features that were not supported in this old version of Powershell. Fortunately PSScriptAnalyzer (Invoke-ScriptAnalyzer) can be used to check compliance with different levels of Powershell as describe in the ref below.

We propose that such checking be added to the autorest generation process such that developers can choose to enable such checking and ensure that future changes do not break such requirements.

Proposed implementation details (optional)

#26540 has a proposed tool that can be used to manually perform such a check based on configuration in the autorest README.md file. This might be used as the basis for the proposed feature.

@papadeltasierra papadeltasierra added feature-request This issue requires a new behavior in the product in order be resolved. needs-triage This is a new issue that needs to be triaged to the appropriate team. labels Nov 5, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot removed the needs-triage This is a new issue that needs to be triaged to the appropriate team. label Nov 5, 2024
@vidai-msft vidai-msft added Azure PS Team Engineering Tracking We will track status and follow internally labels Nov 7, 2024
@vidai-msft
Copy link
Contributor

Thanks for the feedback!

@vidai-msft vidai-msft reopened this Nov 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure PS Team Engineering feature-request This issue requires a new behavior in the product in order be resolved. Tracking We will track status and follow internally
Projects
None yet
Development

No branches or pull requests

2 participants