Files
qqq-print-agent/PSScriptAnalyzerSettings.psd1
james.maesandCodex 3c894733d1 fix: enforce source notices and restore Query About branding (#14)
* chore(standards): enforce owned C# copyright headers

Add the repository's existing James Maes/MIT notice to127owned C# files and correct one SPDX marker. Preserve all94existing copyright lines and all vendor/generated material. Enforce future headers with native IDE0073 under the existing warnings-as-errors build; sort only three adjacent import pairs.

Roslyn tokens and original suffixes prove the comment-only edits; separate import multiset/remaining-text proofs cover the import corrections. Release solution and layout host build with zero warnings/errors. A deliberate missing header fails the build, restoration passes, and the targeted header formatter verification passes. No runtime behavior or workflow changes.

Co-Authored-By: Codex (GPT-6) <noreply@openai.com>
Signed-off-by: James Maes <james@kof22.com>

* fix(dev): enforce virtual agent origin and version boundaries

Supply the exact configured Origin for unsafe cookie-authenticated requests, reject foreign or credential-bearing targets before sending headers, and preserve redirect refusal. Validate canonical stable three-part printing versions and compare components without numeric rounding.

The two regressions fail before the fix; all seven Node tests pass afterward. The owned loopback fixture proves missing and foreign Origin refusal and zero foreign credential requests. Add the dependency-free tests to tooling CI using the protocol repository's pinned Node setup. Actionlint and zizmor pass; no production app or physical printer operations.

Co-Authored-By: Codex (GPT-6) <noreply@openai.com>
Signed-off-by: James Maes <james@kof22.com>

* chore(standards): preserve owned-source copyright notices

Add accurate repository copyright and license comments to 49 owned source/build/configuration files. Preserve existing holders, upstream wrappers, legal payloads and schema/data exemptions. Exact inverse-byte reconstruction and applicable parser/token/AST checks prove comment-only changes; existing relevant regressions pass.

Co-Authored-By: Codex (GPT-6) <noreply@openai.com>
Signed-off-by: James Maes <james@kof22.com>

* chore: enforce owned source copyright notices

Check real leading comments against explicit repository provenance and retain existing native style gates.

Co-Authored-By: Codex GPT-6 <noreply@openai.com>
Signed-off-by: James Maes <james@kof22.com>

* feat: show Query and QRun links in About

Bundle the official mascot and keep customer identity, credits and native navigation accessible with long names in both themes.

Co-Authored-By: Codex GPT-6 <noreply@openai.com>
Signed-off-by: James Maes <james@kof22.com>

---------

Signed-off-by: James Maes <james@kof22.com>
Co-authored-by: Codex (GPT-6) <noreply@openai.com>
2026-11-01 12:40:54 -06:00

60 lines
2.3 KiB
PowerShell

# Copyright (c) 2026 James Maes
# SPDX-License-Identifier: MIT
# KofTwentyTwo PowerShell analysis (K22-CODE-SH-05). CI runs:
# ./build/Analyze-Scripts.ps1 (serial rule execution avoids upstream metadata races)
# and `Invoke-Formatter` with the same settings for layout. PowerShell supports the
# Kingsrook layout fully: next-line (Allman) braces and 3-space indentation.
@{
Severity = @('Error', 'Warning', 'Information')
IncludeDefaultRules = $true
ExcludeRules = @()
Rules = @{
PSPlaceOpenBrace = @{
Enable = $true
OnSameLine = $false
NewLineAfter = $true
IgnoreOneLineBlock = $true
}
PSPlaceCloseBrace = @{
Enable = $true
NewLineAfter = $true
IgnoreOneLineBlock = $true
NoEmptyLineBefore = $true
}
PSUseConsistentIndentation = @{
Enable = $true
IndentationSize = 3
Kind = 'space'
PipelineIndentation = 'IncreaseIndentationForFirstPipeline'
}
PSUseConsistentWhitespace = @{
Enable = $true
CheckInnerBrace = $true
# Kingsrook writes if(...) with no space; the rule cannot require that, so it
# is not checked either way.
CheckOpenParen = $false
CheckOpenBrace = $false
# Kingsrook aligns the `=` of consecutive assignments (PSAlignAssignmentStatement
# below); CheckOperator would then flag every aligned line, so it is off.
CheckOperator = $false
CheckPipe = $true
CheckSeparator = $true
CheckParameter = $true
}
PSAlignAssignmentStatement = @{
Enable = $true
CheckHashtable = $true
}
PSUseCorrectCasing = @{ Enable = $true }
PSAvoidUsingCmdletAliases = @{ Enable = $true }
PSAvoidUsingWriteHost = @{ Enable = $true }
PSProvideCommentHelp = @{
Enable = $true
ExportedOnly = $false
BlockComment = $true
Placement = 'before'
}
}
}