From 8104350be5d0f5cf155d10414de6fe36d610625f Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Mon, 1 Jul 2024 23:01:16 +0200 Subject: [PATCH 1/4] Fix the display message for the NUMBER_OF_PROCESSORS test --- scripts/tests/PSModule/SourceCode.Tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/tests/PSModule/SourceCode.Tests.ps1 b/scripts/tests/PSModule/SourceCode.Tests.ps1 index e4254c05..a320e0b2 100644 --- a/scripts/tests/PSModule/SourceCode.Tests.ps1 +++ b/scripts/tests/PSModule/SourceCode.Tests.ps1 @@ -214,7 +214,7 @@ Describe 'PSModule - SourceCode tests' { } Context 'Compatability checks' { - It "Should use '[System.Environment]::ProcessorCount' instead of '$env:NUMBER_OF_PROCESSORS'" { + It "Should use '[System.Environment]::ProcessorCount' instead of '`$env:NUMBER_OF_PROCESSORS'" { $issues = @('') $scriptFiles | ForEach-Object { Select-String -Path $_.FullName -Pattern '\$env:NUMBER_OF_PROCESSORS' -AllMatches | ForEach-Object { From 1079c4fac586d424d983b04bca17be3b5f55b08e Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Fri, 5 Jul 2024 20:50:54 +0200 Subject: [PATCH 2/4] test --- scripts/main.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/main.ps1 b/scripts/main.ps1 index 0ee9a66d..06a657ad 100644 --- a/scripts/main.ps1 +++ b/scripts/main.ps1 @@ -19,6 +19,7 @@ if (Test-Path -Path $codeToTest) { $codeToTest = Join-Path -Path $env:GITHUB_WORKSPACE -ChildPath $env:GITHUB_ACTION_INPUT_Path } + Write-Verbose "Code to test: [$codeToTest]" if (-not (Test-Path -Path $codeToTest)) { throw "Path [$codeToTest] does not exist." From a28f7aea26b1161c34347f050f36a96c9876bf2c Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Fri, 5 Jul 2024 20:51:12 +0200 Subject: [PATCH 3/4] test --- scripts/main.ps1 | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/main.ps1 b/scripts/main.ps1 index 06a657ad..0ee9a66d 100644 --- a/scripts/main.ps1 +++ b/scripts/main.ps1 @@ -19,7 +19,6 @@ if (Test-Path -Path $codeToTest) { $codeToTest = Join-Path -Path $env:GITHUB_WORKSPACE -ChildPath $env:GITHUB_ACTION_INPUT_Path } - Write-Verbose "Code to test: [$codeToTest]" if (-not (Test-Path -Path $codeToTest)) { throw "Path [$codeToTest] does not exist." From fb30ef006771279d9bc744aa177519ac8acc5dd4 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Fri, 5 Jul 2024 20:56:54 +0200 Subject: [PATCH 4/4] Fix --- .github/workflows/Linter.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/Linter.yml b/.github/workflows/Linter.yml index 5c9f300c..52daecd5 100644 --- a/.github/workflows/Linter.yml +++ b/.github/workflows/Linter.yml @@ -27,3 +27,4 @@ jobs: uses: super-linter/super-linter@latest env: GITHUB_TOKEN: ${{ github.token }} + VALIDATE_JSCPD: false