chocolatey / chocolatey/choco

Add PSScriptAnalyzer check on build

Open
#2,703 0 comments 1 reaction 0 assignees View on GitHub
0 - Backlog Build Automation Enhancement Has Dependency
Dominant language
C#
Stars
11.5k
Forks
960
PR merge metrics
No merged PRs in 30d

Description

It would be good to lint the PowerShell in this repository. Specifically, ensuring that aliases are not used would be a good first step, see #2556 for more information.

After discussion with @gep13, support for this should be added as part of the Cake build, so this depends on #2400 being completed.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing issue #2556 for the alias-check requirements and issue #2400 for the Cake build integration this depends on. Locate the repository's Cake build entry point and determine how PSScriptAnalyzer should run there; done means the build checks the repository's PowerShell and rejects aliases.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.