diff --git a/.github/linters/.codespellrc b/.github/linters/.codespellrc new file mode 100644 index 0000000..5f3e9d9 --- /dev/null +++ b/.github/linters/.codespellrc @@ -0,0 +1,2 @@ +[codespell] +skip = ./.github/linters diff --git a/.github/workflows/Linter.yml b/.github/workflows/Linter.yml index 3a07190..9ea2864 100644 --- a/.github/workflows/Linter.yml +++ b/.github/workflows/Linter.yml @@ -25,7 +25,7 @@ jobs: persist-credentials: false - name: Lint code base - uses: super-linter/super-linter@d5b0a2ab116623730dd094f15ddc1b6b25bf7b99 # v8.3.2 + uses: super-linter/super-linter@12562e48d7059cf666c43a4ecb0d3b5a2b31bd9e # v8.4.0 env: GITHUB_TOKEN: ${{ github.token }} VALIDATE_BIOME_FORMAT: false diff --git a/src/tests/SourceCode/PSModule/PSModule.Tests.ps1 b/src/tests/SourceCode/PSModule/PSModule.Tests.ps1 index ef2efcf..18bf974 100644 --- a/src/tests/SourceCode/PSModule/PSModule.Tests.ps1 +++ b/src/tests/SourceCode/PSModule/PSModule.Tests.ps1 @@ -163,7 +163,7 @@ Describe 'PSModule - SourceCode tests' { $issues -join [Environment]::NewLine | Should -BeNullOrEmpty -Because "the script should use '`$null = ...' instead of '... | Out-Null'" } - It 'Should not use ternary operations for compatability reasons (ID: NoTernary)' -Skip { + It 'Should not use ternary operations for compatibility reasons (ID: NoTernary)' -Skip { $issues = @('') $scriptFiles | ForEach-Object { $filePath = $_.FullName @@ -179,7 +179,7 @@ Describe 'PSModule - SourceCode tests' { } } $issues -join [Environment]::NewLine | - Should -BeNullOrEmpty -Because 'the script should not use ternary operations for compatability with PS 5.1 and below' + Should -BeNullOrEmpty -Because 'the script should not use ternary operations for compatibility with PS 5.1 and below' } It 'all powershell keywords are lowercase (ID: LowercaseKeywords)' { $issues = @('')