From afa75fc41a151845f28fce9c5c2e7fe7ee955611 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Mon, 6 Oct 2025 18:37:55 +0200 Subject: [PATCH 1/7] Add linter configuration to PSModule.yml --- .github/PSModule.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/PSModule.yml b/.github/PSModule.yml index 3734836..e4aac73 100644 --- a/.github/PSModule.yml +++ b/.github/PSModule.yml @@ -19,3 +19,12 @@ Test: # Build: # Docs: # Skip: true +Linter: + env: + VALIDATE_BIOME_FORMAT: false + VALIDATE_BIOME_LINT: false + VALIDATE_GITHUB_ACTIONS_ZIZMOR: false + VALIDATE_JSCPD: false + VALIDATE_JSON_PRETTIER: false + VALIDATE_MARKDOWN_PRETTIER: false + VALIDATE_YAML_PRETTIER: false From 5a47c593c3f928f20baf6380df1f0ad631afee76 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Mon, 6 Oct 2025 22:37:31 +0200 Subject: [PATCH 2/7] Fix Docs --- .github/PSModule.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/PSModule.yml b/.github/PSModule.yml index 3734836..52191c8 100644 --- a/.github/PSModule.yml +++ b/.github/PSModule.yml @@ -19,3 +19,13 @@ Test: # Build: # Docs: # Skip: true + +Linter: + env: + VALIDATE_BIOME_FORMAT: false + VALIDATE_BIOME_LINT: false + VALIDATE_GITHUB_ACTIONS_ZIZMOR: false + VALIDATE_JSCPD: false + VALIDATE_JSON_PRETTIER: false + VALIDATE_MARKDOWN_PRETTIER: false + VALIDATE_YAML_PRETTIER: false From 7a7014d4e943de7f454b7f99a254a6d578f707bf Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Wed, 8 Oct 2025 11:45:32 +0200 Subject: [PATCH 3/7] Refactor markdown linter configuration for improved readability --- .github/linters/.markdown-lint.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/linters/.markdown-lint.yml b/.github/linters/.markdown-lint.yml index b9ecdfa..57db57e 100644 --- a/.github/linters/.markdown-lint.yml +++ b/.github/linters/.markdown-lint.yml @@ -8,18 +8,19 @@ ############### # Rules by id # ############### -MD004: false # Unordered list style +MD004: false # Unordered list style MD007: - indent: 2 # Unordered list indentation + indent: 2 # Unordered list indentation MD013: - line_length: 808 # Line length + line_length: 808 # Line length +MD024: false # no-duplicate-heading, INPUTS and OUTPUTS _can_ be the same item MD026: - punctuation: ".,;:!。,;:" # List of not allowed -MD029: false # Ordered list item prefix -MD033: false # Allow inline HTML -MD036: false # Emphasis used instead of a heading + punctuation: '.,;:!。,;:' # List of not allowed +MD029: false # Ordered list item prefix +MD033: false # Allow inline HTML +MD036: false # Emphasis used instead of a heading ################# # Rules by tags # ################# -blank_lines: false # Error on blank lines +blank_lines: false # Error on blank lines From 3ac6d6cb0ba6456c7e6c1126252a7218dcc9f3f4 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Wed, 8 Oct 2025 23:32:30 +0200 Subject: [PATCH 4/7] Add DESCRIPTION section to module documentation --- src/functions/private/Get-InternalPSModule.ps1 | 3 +++ src/functions/private/Set-InternalPSModule.ps1 | 3 +++ 2 files changed, 6 insertions(+) diff --git a/src/functions/private/Get-InternalPSModule.ps1 b/src/functions/private/Get-InternalPSModule.ps1 index 89f053c..04912fb 100644 --- a/src/functions/private/Get-InternalPSModule.ps1 +++ b/src/functions/private/Get-InternalPSModule.ps1 @@ -3,6 +3,9 @@ .SYNOPSIS Performs tests on a module. + .DESCRIPTION + Performs tests on a module. + .EXAMPLE Test-PSModule -Name 'World' diff --git a/src/functions/private/Set-InternalPSModule.ps1 b/src/functions/private/Set-InternalPSModule.ps1 index cf870ba..e489dbc 100644 --- a/src/functions/private/Set-InternalPSModule.ps1 +++ b/src/functions/private/Set-InternalPSModule.ps1 @@ -3,6 +3,9 @@ .SYNOPSIS Performs tests on a module. + .DESCRIPTION + Performs tests on a module. + .EXAMPLE Test-PSModule -Name 'World' From a6836f52fb750bfc9194d65747b80223aed30fef Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Thu, 9 Oct 2025 23:08:03 +0200 Subject: [PATCH 5/7] Uncomment test for New-MemoryMappedFile in MemoryMappedFile.Tests.ps1 --- tests/MemoryMappedFile.Tests.ps1 | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/MemoryMappedFile.Tests.ps1 b/tests/MemoryMappedFile.Tests.ps1 index b8c5f09..fb46dc7 100644 --- a/tests/MemoryMappedFile.Tests.ps1 +++ b/tests/MemoryMappedFile.Tests.ps1 @@ -11,12 +11,12 @@ param() Describe 'Module' { Context 'MemoryMappedFile' { - # It 'New-MemoryMappedFile' { - # $fileName = '$HOME\test.json' - # $size = 1024 - # $mmf = New-MemoryMappedFile -Name 'shared' -Path $fileName -Size $size - # $mmf | Should -Not -BeNullOrEmpty - # Test-Path $fileName | Should -BeTrue - # } + It 'New-MemoryMappedFile' { + $fileName = '$HOME\test.json' + $size = 1024 + $mmf = New-MemoryMappedFile -Name 'shared' -Path $fileName -Size $size + $mmf | Should -Not -BeNullOrEmpty + Test-Path $fileName | Should -BeTrue + } } } From 66a828ce92d2d150c1b15a653cfd76fefb660c7d Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sat, 11 Oct 2025 09:06:52 +0200 Subject: [PATCH 6/7] Remove placeholder test for New-MemoryMappedFile in MemoryMappedFile.Tests.ps1 --- tests/MemoryMappedFile.Tests.ps1 | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/MemoryMappedFile.Tests.ps1 b/tests/MemoryMappedFile.Tests.ps1 index fb46dc7..50203fd 100644 --- a/tests/MemoryMappedFile.Tests.ps1 +++ b/tests/MemoryMappedFile.Tests.ps1 @@ -11,12 +11,8 @@ param() Describe 'Module' { Context 'MemoryMappedFile' { - It 'New-MemoryMappedFile' { - $fileName = '$HOME\test.json' - $size = 1024 - $mmf = New-MemoryMappedFile -Name 'shared' -Path $fileName -Size $size - $mmf | Should -Not -BeNullOrEmpty - Test-Path $fileName | Should -BeTrue + It 'No tests yet...' { + Write-Host 'No tests yet...' } } } From 73030e303ad8863833f07dfd689a0123fafe6a6e Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Sat, 11 Oct 2025 09:11:12 +0200 Subject: [PATCH 7/7] Update warning message in MemoryMappedFile.Tests.ps1 for clarity --- tests/MemoryMappedFile.Tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/MemoryMappedFile.Tests.ps1 b/tests/MemoryMappedFile.Tests.ps1 index 50203fd..ce7f359 100644 --- a/tests/MemoryMappedFile.Tests.ps1 +++ b/tests/MemoryMappedFile.Tests.ps1 @@ -12,7 +12,7 @@ param() Describe 'Module' { Context 'MemoryMappedFile' { It 'No tests yet...' { - Write-Host 'No tests yet...' + Write-Warning 'No tests yet...' } } }