From f4b7a38af000992558420cf6457c748af77293b9 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Wed, 28 Jan 2026 18:58:46 +0100 Subject: [PATCH 1/6] =?UTF-8?q?=E2=9A=99=EF=B8=8F=20[Maintenance]:=20Updat?= =?UTF-8?q?e=20super-linter=20to=20v8.4.0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/Linter.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Linter.yml b/.github/workflows/Linter.yml index 3a07190..5c18a69 100644 --- a/.github/workflows/Linter.yml +++ b/.github/workflows/Linter.yml @@ -25,9 +25,10 @@ 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 }} + SUPPRESS_OUTPUT_ON_SUCCESS: true VALIDATE_BIOME_FORMAT: false VALIDATE_JSCPD: false VALIDATE_JSON_PRETTIER: false From 974635666f8302382b4aa0ab2c2ed09cdbab2f45 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Wed, 28 Jan 2026 19:36:31 +0100 Subject: [PATCH 2/6] Fix spelling errors caught by codespell --- .github/linters/.textlintrc | 4 ++-- src/helpers/Build/Build-PSModuleManifest.ps1 | 2 +- src/helpers/Build/Build-PSModuleRootModule.ps1 | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/linters/.textlintrc b/.github/linters/.textlintrc index db48de8..a11207a 100644 --- a/.github/linters/.textlintrc +++ b/.github/linters/.textlintrc @@ -488,7 +488,7 @@ "npm" ], [ - "environemnt(s)?", + "environment(s)?", "environment$1" ], [ @@ -496,7 +496,7 @@ "flaky test$1" ], [ - "pacakge(s)?", + "package(s)?", "package$1" ], [ diff --git a/src/helpers/Build/Build-PSModuleManifest.ps1 b/src/helpers/Build/Build-PSModuleManifest.ps1 index 56aab2d..e91dd43 100644 --- a/src/helpers/Build/Build-PSModuleManifest.ps1 +++ b/src/helpers/Build/Build-PSModuleManifest.ps1 @@ -362,7 +362,7 @@ $tags = $PSData.Keys -contains 'Tags' ? ($PSData.Tags).Count -gt 0 ? $PSData.Tags : $repoLabels : $repoLabels $tags | ForEach-Object { $manifestTags.Add($_) } 'Windows', 'Linux', 'MacOS' | ForEach-Object { $manifestTags.Add($_) } - # Add tags for compatability mode. https://docs.microsoft.com/en-us/powershell/scripting/developer/module/how-to-write-a-powershell-module-manifest?view=powershell-7.1#compatibility-tags + # Add tags for compatibility mode. https://docs.microsoft.com/en-us/powershell/scripting/developer/module/how-to-write-a-powershell-module-manifest?view=powershell-7.1#compatibility-tags if ($manifest.CompatiblePSEditions -contains 'Desktop') { if ($manifestTags -notcontains 'PSEdition_Desktop') { $manifestTags.Add('PSEdition_Desktop') diff --git a/src/helpers/Build/Build-PSModuleRootModule.ps1 b/src/helpers/Build/Build-PSModuleRootModule.ps1 index 3b1bfbd..faea783 100644 --- a/src/helpers/Build/Build-PSModuleRootModule.ps1 +++ b/src/helpers/Build/Build-PSModuleRootModule.ps1 @@ -134,11 +134,11 @@ $MyInvocation.MyCommand.ScriptBlock.Module.OnRemove = { Add-Content -Path $rootModuleFile -Force -Value @' [Diagnostics.CodeAnalysis.SuppressMessageAttribute( 'PSAvoidAssignmentToAutomaticVariable', 'IsWindows', - Justification = 'IsWindows doesnt exist in PS5.1' + Justification = 'IsWindows does not exist in PS5.1' )] [Diagnostics.CodeAnalysis.SuppressMessageAttribute( 'PSUseDeclaredVarsMoreThanAssignments', 'IsWindows', - Justification = 'IsWindows doesnt exist in PS5.1' + Justification = 'IsWindows does not exist in PS5.1' )] '@ From c0728041fa56071ebda8f9fc5d53ce965f1c4efa Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Wed, 28 Jan 2026 20:02:32 +0100 Subject: [PATCH 3/6] Remove SUPPRESS_OUTPUT_ON_SUCCESS setting --- .github/linters/.textlintrc | 1020 ++++++++--------- .github/workflows/Linter.yml | 1 - .../Build/Build-PSModuleRootModule.ps1 | 8 +- 3 files changed, 514 insertions(+), 515 deletions(-) diff --git a/.github/linters/.textlintrc b/.github/linters/.textlintrc index a11207a..502b850 100644 --- a/.github/linters/.textlintrc +++ b/.github/linters/.textlintrc @@ -1,513 +1,513 @@ { - "filters": { - "comments": true - }, - "rules": { - "terminology": { - "defaultTerms": false, - "terms": [ - "Airbnb", - "Android", - "AppleScript", - "AppVeyor", - "AVA", - "BrowserStack", - "Browsersync", - "Codecov", - "CodePen", - "CodeSandbox", - "DefinitelyTyped", - "EditorConfig", - "ESLint", - "GitHub", - "GraphQL", - "GraphiQL", - "iOS", - "JavaScript", - "JetBrains", - "jQuery", - "LinkedIn", - "Lodash", - "MacBook", - "Markdown", - "OpenType", - "PayPal", - "PhpStorm", - "PowerShell", - "PlayStation", - "RubyMine", - "Sass", - "SemVer", - "TypeScript", - "UglifyJS", - "Wasm", - "WebAssembly", - "WebStorm", - "WordPress", - "YouTube", - [ - "Common[ .]js", - "CommonJS" - ], - [ - "JSDocs?", - "JSDoc" - ], - [ - "Node[ .]js", - "Node.js" - ], - [ - "React[ .]js", - "React" - ], - [ - "SauceLabs", - "Sauce Labs" - ], - [ - "StackOverflow", - "Stack Overflow" - ], - [ - "styled ?components", - "styled-components" - ], - [ - "HTTP[ /]2(?:\\.0)?", - "HTTP/2" - ], - [ - "OS X", - "macOS" - ], - [ - "Mac ?OS", - "macOS" - ], - [ - "a npm", - "an npm" - ], - "ECMAScript", - [ - "ES2015", - "ES6" - ], - [ - "ES7", - "ES2016" - ], - "3D", - [ - "3-D", - "3D" - ], - "Ajax", - "API", - "APIs", - "API's", - [ - "(? Date: Wed, 28 Jan 2026 21:08:00 +0100 Subject: [PATCH 4/6] Revert .textlintrc changes --- .github/linters/.textlintrc | 1020 +++++++++++++++++------------------ 1 file changed, 510 insertions(+), 510 deletions(-) diff --git a/.github/linters/.textlintrc b/.github/linters/.textlintrc index 502b850..db48de8 100644 --- a/.github/linters/.textlintrc +++ b/.github/linters/.textlintrc @@ -1,513 +1,513 @@ { - "filters": { - "comments": true - }, - "rules": { - "terminology": { - "defaultTerms": false, - "terms": [ - "Airbnb", - "Android", - "AppleScript", - "AppVeyor", - "AVA", - "BrowserStack", - "Browsersync", - "Codecov", - "CodePen", - "CodeSandbox", - "DefinitelyTyped", - "EditorConfig", - "ESLint", - "GitHub", - "GraphQL", - "GraphiQL", - "iOS", - "JavaScript", - "JetBrains", - "jQuery", - "LinkedIn", - "Lodash", - "MacBook", - "Markdown", - "OpenType", - "PayPal", - "PhpStorm", - "PowerShell", - "PlayStation", - "RubyMine", - "Sass", - "SemVer", - "TypeScript", - "UglifyJS", - "Wasm", - "WebAssembly", - "WebStorm", - "WordPress", - "YouTube", - [ - "Common[ .]js", - "CommonJS" - ], - [ - "JSDocs?", - "JSDoc" - ], - [ - "Node[ .]js", - "Node.js" - ], - [ - "React[ .]js", - "React" - ], - [ - "SauceLabs", - "Sauce Labs" - ], - [ - "StackOverflow", - "Stack Overflow" - ], - [ - "styled ?components", - "styled-components" - ], - [ - "HTTP[ /]2(?:\\.0)?", - "HTTP/2" - ], - [ - "OS X", - "macOS" - ], - [ - "Mac ?OS", - "macOS" - ], - [ - "a npm", - "an npm" - ], - "ECMAScript", - [ - "ES2015", - "ES6" - ], - [ - "ES7", - "ES2016" - ], - "3D", - [ - "3-D", - "3D" - ], - "Ajax", - "API", - "APIs", - "API's", - [ - "(? Date: Wed, 28 Jan 2026 21:28:23 +0100 Subject: [PATCH 5/6] Fix casing in regex operators for consistency in Add-ContentFromItem and Build-PSModuleManifest --- src/helpers/Build/Add-ContentFromItem.ps1 | 16 ++++++++-------- src/helpers/Build/Build-PSModuleManifest.ps1 | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/helpers/Build/Add-ContentFromItem.ps1 b/src/helpers/Build/Add-ContentFromItem.ps1 index f8f2fa7..9046b20 100644 --- a/src/helpers/Build/Add-ContentFromItem.ps1 +++ b/src/helpers/Build/Add-ContentFromItem.ps1 @@ -25,11 +25,11 @@ # Get the path separator for the current OS $pathSeparator = [System.IO.Path]::DirectorySeparatorChar - $relativeFolderPath = $Path -Replace $RootPath, '' - $relativeFolderPath = $relativeFolderPath -Replace $file.Extension, '' + $relativeFolderPath = $Path -replace $RootPath, '' + $relativeFolderPath = $relativeFolderPath -replace $file.Extension, '' $relativeFolderPath = $relativeFolderPath.TrimStart($pathSeparator) - $relativeFolderPath = $relativeFolderPath -Split $pathSeparator | ForEach-Object { "[$_]" } - $relativeFolderPath = $relativeFolderPath -Join ' - ' + $relativeFolderPath = $relativeFolderPath -split $pathSeparator | ForEach-Object { "[$_]" } + $relativeFolderPath = $relativeFolderPath -join ' - ' Add-Content -Path $RootModuleFilePath -Force -Value @" #region $relativeFolderPath @@ -38,11 +38,11 @@ Write-Debug "[`$scriptName] - $relativeFolderPath - Processing folder" $files = $Path | Get-ChildItem -File -Force -Filter '*.ps1' | Sort-Object -Property FullName foreach ($file in $files) { - $relativeFilePath = $file.FullName -Replace $RootPath, '' - $relativeFilePath = $relativeFilePath -Replace $file.Extension, '' + $relativeFilePath = $file.FullName -replace $RootPath, '' + $relativeFilePath = $relativeFilePath -replace $file.Extension, '' $relativeFilePath = $relativeFilePath.TrimStart($pathSeparator) - $relativeFilePath = $relativeFilePath -Split $pathSeparator | ForEach-Object { "[$_]" } - $relativeFilePath = $relativeFilePath -Join ' - ' + $relativeFilePath = $relativeFilePath -split $pathSeparator | ForEach-Object { "[$_]" } + $relativeFilePath = $relativeFilePath -join ' - ' Add-Content -Path $RootModuleFilePath -Force -Value @" #region $relativeFilePath diff --git a/src/helpers/Build/Build-PSModuleManifest.ps1 b/src/helpers/Build/Build-PSModuleManifest.ps1 index e91dd43..115ee0e 100644 --- a/src/helpers/Build/Build-PSModuleManifest.ps1 +++ b/src/helpers/Build/Build-PSModuleManifest.ps1 @@ -101,7 +101,7 @@ # Get files on module subfolders, excluding the following folders 'init', 'classes', 'public', 'private' $skipList = @('init', 'classes', 'functions', 'variables') - $ModuleOutputFolder | Get-ChildItem -Directory | Where-Object { $_.Name -NotIn $skipList } | + $ModuleOutputFolder | Get-ChildItem -Directory | Where-Object { $_.Name -notin $skipList } | Get-ChildItem -Recurse -File -ErrorAction SilentlyContinue | ForEach-Object { $files.Add($_) } # Get the relative file path and store it in the manifest From 9ffa60b6b6b31b4e10539d70bc5645462e078711 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Wed, 28 Jan 2026 22:43:29 +0100 Subject: [PATCH 6/6] Add codespell configuration --- .github/linters/.codespellrc | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 .github/linters/.codespellrc 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