Skip to content

Commit c98cca9

Browse files
🩹 [Patch]; Disable ternary check (#83)
## Description We implemented a ternary check to not use that in the scripts for compatibility reasons. Now that we don't focus on supporting 5.1 we no longer need this compatibility check. * [`scripts/tests/PSModule/SourceCode.Tests.ps1`](diffhunk://#diff-fac42e72562e6968b058e80b8aa9f1f6e542a372a5aec978297f34464edc4e64L126-R126): Modified the test 'Should not use ternary operations for compatibility reasons' to be skipped. ## Type of change <!-- Use the check-boxes [x] on the options that are relevant. --> - [ ] 📖 [Docs] - [ ] 🪲 [Fix] - [x] 🩹 [Patch] - [ ] ⚠️ [Security fix] - [ ] 🚀 [Feature] - [ ] 🌟 [Breaking change] ## Checklist <!-- Use the check-boxes [x] on the options that are relevant. --> - [x] I have performed a self-review of my own code - [x] I have commented my code, particularly in hard-to-understand areas
1 parent 035cba7 commit c98cca9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/tests/PSModule/SourceCode.Tests.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Describe 'PSModule - SourceCode tests' {
123123
Should -BeNullOrEmpty -Because "the script should use '`$null = ...' instead of '... | Out-Null'"
124124
}
125125

126-
It 'Should not use ternary operations for compatability reasons' {
126+
It 'Should not use ternary operations for compatability reasons' -Skip {
127127
$issues = @('')
128128
$scriptFiles | ForEach-Object {
129129
$filePath = $_.FullName

0 commit comments

Comments
 (0)