Skip to content
Open
Show file tree
Hide file tree
Changes from 12 commits
Commits
Show all changes
14 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scripts/linting/Invoke-LinkLanguageCheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ function Invoke-LinkLanguageCheckCore {
}

$outputData = @{
timestamp = Get-StandardTimestamp
Timestamp = Get-StandardTimestamp
script = "link-lang-check"
summary = @{
total_issues = $results.Count
Expand Down Expand Up @@ -138,7 +138,7 @@ $(($uniqueFiles | ForEach-Object {
Write-Host "✅ No URLs with language paths found" -ForegroundColor Green

$emptyResults = @{
timestamp = Get-StandardTimestamp
Timestamp = Get-StandardTimestamp
script = "link-lang-check"
summary = @{
total_issues = 0
Expand Down
2 changes: 1 addition & 1 deletion scripts/linting/Markdown-Link-Check.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ function Invoke-MarkdownLinkCheck {
}

$results = @{
timestamp = Get-StandardTimestamp
Timestamp = Get-StandardTimestamp
script = 'markdown-link-check'
summary = @{
total_files = $totalFiles
Expand Down
2 changes: 1 addition & 1 deletion scripts/linting/Test-CopyrightHeaders.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ function Invoke-CopyrightHeaderCheck {

# Build output object
$output = @{
timestamp = Get-StandardTimestamp
Timestamp = Get-StandardTimestamp
totalFiles = $filesToCheck.Count
filesWithHeaders = $filesWithHeaders
filesMissingHeaders = $filesMissingHeaders
Expand Down
2 changes: 1 addition & 1 deletion scripts/linting/Validate-SkillStructure.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ function Write-SkillValidationResults {
}

$jsonOutput = @{
timestamp = Get-StandardTimestamp
Timestamp = Get-StandardTimestamp
totalSkills = $totalSkills
skillErrors = $errorCount
skillWarnings = $warningCount
Expand Down
4 changes: 2 additions & 2 deletions scripts/tests/linting/Invoke-LinkLanguageCheck.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ Write-Output $json

$resultFile = Join-Path $script:RepoRoot 'logs/link-lang-check-results.json'
$json = Get-Content $resultFile -Raw | ConvertFrom-Json
$json.timestamp | Should -Be 'MOCK-TIMESTAMP'
$json.Timestamp | Should -Be 'MOCK-TIMESTAMP'
}
}

Expand Down Expand Up @@ -184,7 +184,7 @@ Write-Output $json

$resultFile = Join-Path $script:RepoRoot 'logs/link-lang-check-results.json'
$json = Get-Content $resultFile -Raw | ConvertFrom-Json
$json.timestamp | Should -Be 'MOCK-TIMESTAMP'
$json.Timestamp | Should -Be 'MOCK-TIMESTAMP'
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion scripts/tests/linting/Markdown-Link-Check.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ Describe 'Invoke-MarkdownLinkCheck' -Tag 'Unit' {
Context 'Timestamp standardization' {
It 'Uses Get-StandardTimestamp for result JSON timestamp' {
$src = Get-Content (Join-Path $PSScriptRoot '../../linting/Markdown-Link-Check.ps1') -Raw
$src | Should -Match 'timestamp\s*=\s*Get-StandardTimestamp'
$src | Should -Match 'Timestamp\s*=\s*Get-StandardTimestamp'
$src | Should -Not -Match 'ToUniversalTime\(\)\.ToString'
}
}
Expand Down
4 changes: 2 additions & 2 deletions scripts/tests/linting/Test-CopyrightHeaders.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -591,7 +591,7 @@ Write-Host "Test"
It 'Contains required fields' {
$results = Get-Content $script:OutputPath | ConvertFrom-Json

$results.PSObject.Properties.Name | Should -Contain 'timestamp'
$results.PSObject.Properties.Name | Should -Contain 'Timestamp'
$results.PSObject.Properties.Name | Should -Contain 'totalFiles'
$results.PSObject.Properties.Name | Should -Contain 'filesWithHeaders'
$results.PSObject.Properties.Name | Should -Contain 'filesMissingHeaders'
Expand All @@ -600,7 +600,7 @@ Write-Host "Test"

It 'Timestamp field contains a UTC ISO 8601 value ending in Z' {
$raw = Get-Content $script:OutputPath -Raw
$raw | Should -Match '"timestamp":\s*"\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.*Z"'
$raw | Should -Match '"Timestamp":\s*"\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.*Z"'
}

It 'Contains compliance percentage' {
Expand Down
2 changes: 1 addition & 1 deletion scripts/tests/linting/Validate-SkillStructure.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ Describe 'Write-SkillValidationResults' -Tag 'Unit' {

$jsonPath = Join-Path $repoRoot 'logs/skill-validation-results.json'
$raw = Get-Content $jsonPath -Raw
$raw | Should -Match '"timestamp":\s*"\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d+Z"'
$raw | Should -Match '"Timestamp":\s*"\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d+Z"'
}
}

Expand Down
Loading