Skip to content

Commit 1f0428b

Browse files
authored
Improve markdown and changelog instructions for clarity and consistency (#2146)
1 parent 4344231 commit 1f0428b

5 files changed

+16
-5
lines changed

.github/instructions/dsc-community-style-guidelines-changelog.instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ applyTo: "CHANGELOG.md"
77

88
- Always update the Unreleased section in CHANGELOG.md
99
- Use Keep a Changelog format
10-
- Describe main changes as concise release notes
11-
- Reference issues using format #<issue_number>
10+
- Describe notable changes briefly, ≤2 items per change type
11+
- Reference issues using format [#<issue_number>](https://github.com/<owner>/<repo>/issues/<issue_number>)
1212
- No empty lines between list items in same section
1313
- Do not add item if there are already an existing item for the same change

.github/instructions/dsc-community-style-guidelines-markdown.instructions.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,13 @@ applyTo: "**/*.md"
88
- Wrap lines at word boundaries when over 80 characters (except tables/code blocks)
99
- Use 2 spaces for indentation
1010
- Use '1.' for all items in ordered lists (1/1/1 numbering style)
11-
- Surround fenced code blocks with blank lines
1211
- Disable `MD013` rule by adding a comment for tables/code blocks exceeding 80 characters
12+
- Empty lines required before/after code blocks and headings (except before line 1)
13+
- Code blocks must specify language identifiers
14+
15+
## Text Formatting
16+
17+
- Parameters: **bold**
18+
- Values/literals: `inline code`
19+
- Resource/module/product names: _italic_
20+
- Commands/files/paths: `inline code`

.github/instructions/dsc-community-style-guidelines-pester.instructions.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,5 @@ applyTo: "**/*.[Tt]ests.ps1"
4747
- Keep results and assertions in same `It` block
4848
- Cover all scenarios and code paths
4949
- Use `BeforeEach` and `AfterEach` sparingly
50+
- Avoid try-catch-finally for cleanup, use `AfterAll` or `AfterEach`
51+
- Avoid unnecessary remove/recreate cycles

.github/instructions/dsc-community-style-guidelines-powershell.instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ function Get-Something
151151
- Use `PSCredential` for credentials
152152
- Avoid hardcoded computer names, use cross-platform [`Get-ComputerName`](https://github.com/dsccommunity/DscResource.Common/wiki/Get%E2%80%91ComputerName) instead of `$env:COMPUTERNAME`
153153
- Place `$null` on left side of comparisons
154-
- Avoid empty catch blocks (use `-ErrorAction SilentlyContinue`)
154+
- Avoid empty catch blocks (use `-ErrorAction Ignore`)
155155
- Don't use `Invoke-Expression` (use `&` operator)
156156
- Use CIM commands instead of WMI commands
157157

@@ -165,7 +165,7 @@ function Get-Something
165165

166166
## File Rules
167167

168-
- End files with newline
168+
- End files with a blank line
169169
- Use CR+LF line endings
170170
- Maximum two consecutive newlines
171171

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9191
- Improved documentation with optimized analysis workflow description.
9292
- DSC community style guidelines
9393
- Added requirement to follow guidelines over existing code patterns.
94+
- Improved markdown and changelog instructions.
9495

9596
## [17.1.0] - 2025-05-22
9697

0 commit comments

Comments
 (0)