Skip to content

Commit 825fd93

Browse files
🪲 [Fix]: Fix linter settings and docs (#3)
This pull request introduces several small configuration and documentation improvements related to linting and PowerShell module testing. The changes primarily focus on customizing linter behavior and improving inline documentation. Linter configuration updates: * Disabled several linter validations in the `Linter` section of `.github/PSModule.yml` by setting their environment variables to `false`, reducing unnecessary checks during CI runs. * Updated `.github/linters/.markdown-lint.yml` to disable the `MD024` rule (allowing duplicate headings), and made a minor formatting fix to the `MD026` punctuation list. Documentation improvements: * Added a `.DESCRIPTION` section to the `Get-PSModuleTest` function in `src/functions/public/Get-PSModuleTest.ps1` to improve inline documentation.
1 parent ec03d9b commit 825fd93

3 files changed

Lines changed: 22 additions & 8 deletions

File tree

.github/PSModule.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,13 @@ Test:
1919
# Build:
2020
# Docs:
2121
# Skip: true
22+
23+
Linter:
24+
env:
25+
VALIDATE_BIOME_FORMAT: false
26+
VALIDATE_BIOME_LINT: false
27+
VALIDATE_GITHUB_ACTIONS_ZIZMOR: false
28+
VALIDATE_JSCPD: false
29+
VALIDATE_JSON_PRETTIER: false
30+
VALIDATE_MARKDOWN_PRETTIER: false
31+
VALIDATE_YAML_PRETTIER: false

.github/linters/.markdown-lint.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,19 @@
88
###############
99
# Rules by id #
1010
###############
11-
MD004: false # Unordered list style
11+
MD004: false # Unordered list style
1212
MD007:
13-
indent: 2 # Unordered list indentation
13+
indent: 2 # Unordered list indentation
1414
MD013:
15-
line_length: 808 # Line length
15+
line_length: 808 # Line length
16+
MD024: false # no-duplicate-heading, INPUTS and OUTPUTS _can_ be the same item
1617
MD026:
17-
punctuation: ".,;:!。,;:" # List of not allowed
18-
MD029: false # Ordered list item prefix
19-
MD033: false # Allow inline HTML
20-
MD036: false # Emphasis used instead of a heading
18+
punctuation: '.,;:!。,;:' # List of not allowed
19+
MD029: false # Ordered list item prefix
20+
MD033: false # Allow inline HTML
21+
MD036: false # Emphasis used instead of a heading
2122

2223
#################
2324
# Rules by tags #
2425
#################
25-
blank_lines: false # Error on blank lines
26+
blank_lines: false # Error on blank lines

src/functions/public/Get-PSModuleTest.ps1

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ function Get-PSModuleTest {
55
.SYNOPSIS
66
Performs tests on a module.
77
8+
.DESCRIPTION
9+
Performs tests on a module.
10+
811
.EXAMPLE
912
Test-PSModule -Name 'World'
1013

0 commit comments

Comments
 (0)