SIGN IN SIGN UP

Add Optional PSUseConstrainedLanguageMode rule (#2165)

* Add UseConstrainedLanguageMode rule and tests

* Enhance CLM rule: restrict types, COM objects, add tests

* Enhance detection of disallowed types in CLM rule

* Detect and flag class definitions in Constrained Language

* Enhance CLM rule to check module manifests for wildcards/.ps1

* Differentiate CLM checks for signed vs unsigned scripts

* Improve dot-sourcing detection and expand CLM rule tests

* Add IgnoreSignatures option to CLM rule and improve type checks

* Add documentation for PSUseConstrainedLanguageMode rule

* Increase severity of UseConstrainedLanguageMode to Warning for optional rule

* Update test to expect 'Warning' severity instead of 'Info'

* Making copilot suggested edits

* Detect and flag [PSCustomObject]@{} in CLM scripts

* Add UseConstrainedLanguageMode rule to README.md

* Update CLM rule: tighten types, docs, and add error string

* Add platform checks to CLM tests for cross-platform support

* Add missing end tag after merge conflict from main

* Add CLM rule ScriptsToProcess; Fix wildcard and dotsource bug
J
Josh Corrick committed
6cfc26064f2d2f6d3d6c7f0fa5d5537715c72fd5
Parent: 6883618
Committed by GitHub <noreply@github.com> on 3/20/2026, 5:16:19 PM