Skip to content

Fix PSSA indentation, add per-step export warnings, beautify PSSA tool output#247

Merged
blindzero merged 3 commits intocodex/create-task-branch-for-codex-merge-conflictfrom
copilot/sub-pr-242-yet-again
Feb 27, 2026
Merged

Fix PSSA indentation, add per-step export warnings, beautify PSSA tool output#247
blindzero merged 3 commits intocodex/create-task-branch-for-codex-merge-conflictfrom
copilot/sub-pr-242-yet-again

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Feb 27, 2026

  • Fix PSSA indentation in EnsureMailboxPermissions
  • Add per-step warnings to JSON export (ConvertTo-IdlePlanExportObject.ps1, fixture, tests)
  • Beautify Invoke-IdleScriptAnalyzer.ps1 output
  • Fix unreliable @($null).Count assertion — replaced with Should -Not -BeNullOrEmpty + Measure-Object count so a missing/null warnings array correctly fails the test

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

…output

Co-authored-by: blindzero <13959569+blindzero@users.noreply.github.com>
Copilot AI changed the title [WIP] WIP Address feedback on PSSA warnings and JSON format Fix PSSA indentation, add per-step export warnings, beautify PSSA tool output Feb 27, 2026
@blindzero blindzero marked this pull request as ready for review February 27, 2026 18:06
@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates IdLE’s ExchangeOnline provider and plan export contract to satisfy PSScriptAnalyzer indentation rules, propagate step-level planning warnings into the exported JSON, and improve the ergonomics of the local PSScriptAnalyzer tool output.

Changes:

  • Refactors EnsureMailboxPermissions pipelines to avoid PSSA indentation false positives and normalizes block indentation.
  • Extends plan export mapping and fixture to include per-step warnings arrays, with test assertions added.
  • Adds formatted, color-coded header/finding/summary output to Invoke-IdleScriptAnalyzer.ps1.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
tools/Invoke-IdleScriptAnalyzer.ps1 Adds Write-PssaHeader/Finding/Summary helpers and prints findings + summary with clearer formatting.
src/IdLE.Provider.ExchangeOnline/Public/New-IdleExchangeOnlineProvider.ps1 Adjusts indentation/pipeline structure in EnsureMailboxPermissions to satisfy PSSA rules.
src/IdLE.Core/Private/ConvertTo-IdlePlanExportObject.ps1 Adds warnings export on each step by serializing step warning objects into the plan-export contract shape.
tests/fixtures/plan-export/expected/plan-export.json Updates expected export fixture to include per-step "warnings": [].
tests/Core/Export-IdlePlan.Tests.ps1 Extends warning export test to assert step-level warning presence/code in exported JSON.

Co-authored-by: blindzero <13959569+blindzero@users.noreply.github.com>
@github-actions
Copy link
Copy Markdown

Code Coverage Report

Overall Project 74.09% 🍏

There is no coverage information present for the Files changed

@blindzero blindzero merged commit cb8a81f into codex/create-task-branch-for-codex-merge-conflict Feb 27, 2026
8 checks passed
@blindzero blindzero deleted the copilot/sub-pr-242-yet-again branch February 27, 2026 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants