Skip to content

Commit e26f673

Browse files
Clarify latest LTS support policy
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
1 parent c5b6a65 commit e26f673

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/docs/Modules/Standards.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@
22

33
Standards for implementing and reviewing PowerShell modules in the PSModule organization. These rules apply to modules built with the [PSModule framework](https://github.com/PSModule/Process-PSModule).
44

5-
For general PowerShell coding standards (naming, style, function structure, documentation, readability, error handling), see [PowerShell Standards](../Standard/index.md). This page covers only module-specific conventions.
5+
For general PowerShell coding standards (naming, style, function structure, documentation, readability, error handling), see [PowerShell Standards](../PowerShell/Standard/index.md). This page covers only module-specific conventions.
6+
7+
## Supported PowerShell version
8+
9+
PSModule modules support only the latest PowerShell Long Term Support (LTS) release. Do not preserve compatibility with Windows PowerShell 5.1; use language and platform capabilities available in the latest LTS when they improve the implementation.
610

711
> **Repo-local config wins.** Repo-level `.github/linters/.powershell-psscriptanalyzer.psd1` and `.github/PSModule.yml` override anything below. This standard fills the gap.
812
@@ -312,7 +316,7 @@ The CI pipeline automatically tests every source file against the following rule
312316
| `NumberOfProcessors` | Use `[System.Environment]::ProcessorCount`, not `$env:NUMBER_OF_PROCESSORS` |
313317
| `Verbose` | Do not pass `-Verbose` to commands unless explicitly silenced with `-Verbose:$false` |
314318
| `OutNull` | Use `$null = ...` instead of `\| Out-Null` |
315-
| `NoTernary` | No ternary operators — maintain PowerShell 5.1 compatibility |
319+
| `NoTernary` | No ternary operators — use explicit conditional statements for readability |
316320
| `LowercaseKeywords` | All PowerShell keywords must be lowercase |
317321
| `FunctionCount` | Each file must contain exactly one function or filter |
318322
| `FunctionName` | Filename must match the function or filter name |

0 commit comments

Comments
 (0)