Skip to content

Commit 37b2e7e

Browse files
🪲 [Fix]: Fix linter settings and docs (#6)
This pull request introduces configuration updates to improve linting and documentation for the project. The main changes involve updating linter settings for both YAML and Markdown files, as well as adding documentation to a PowerShell script. **Linter configuration improvements:** * [`.github/PSModule.yml`](diffhunk://#diff-928165ed381f1982eb8f9746a59a2829db4abc8a28eddb8c109e12bb033ff96aR22-R31): Added a `Linter` section with environment variables to disable several validation checks, such as Biome format, JSCPD, and various Prettier validations. * [`.github/linters/.markdown-lint.yml`](diffhunk://#diff-2fd3619d2b7372123257bc21645edb90c24293e66babbc6053033a89e21bab34R16-R18): Updated Markdown linting rules by disabling duplicate heading checks (`MD024`), correcting punctuation formatting for `MD026`, and clarifying other rule exceptions. **Documentation updates:** * [`src/functions/public/Get-PSModuleTest.ps1`](diffhunk://#diff-a3b9ee16763d01dd80ff3c1869dec21710bc923448c25dde66d51401e7b885e7R6-R8): Added a `.DESCRIPTION` section to improve the script's documentation.
1 parent b6912ec commit 37b2e7e

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
@@ -3,6 +3,9 @@
33
.SYNOPSIS
44
Performs tests on a module.
55
6+
.DESCRIPTION
7+
Performs tests on a module.
8+
69
.EXAMPLE
710
Test-PSModule -Name 'World'
811

0 commit comments

Comments
 (0)