Skip to content

Include file path in AlignAssignmentStatement corrections - #2202

Open
peanut (teanup) wants to merge 1 commit into
PowerShell:mainfrom
teanup:fix/align-assignment-statement-correction-extent
Open

Include file path in AlignAssignmentStatement corrections#2202
peanut (teanup) wants to merge 1 commit into
PowerShell:mainfrom
teanup:fix/align-assignment-statement-correction-extent

Conversation

@teanup

@teanup peanut (teanup) commented Aug 8, 2026

Copy link
Copy Markdown

PR Summary

This PR adds a missing argument for the CorrectionExtent constructor in the AlignAssignmentStatement rule definition.

PR Checklist

…lignAssignmentStatement

The CorrectionExtent constructor was being called with the rule message
as the 6th argument (file), when it should be the 7th (description).
Copilot AI lite review requested due to automatic review settings August 8, 2026 11:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Fixes AlignAssignmentStatement suggested corrections so CorrectionExtent receives the correct file argument (and the rule message remains in the description argument), ensuring the file path is included properly in correction metadata.

Changes:

  • Adds the missing lhsExtent.File argument to the CorrectionExtent constructor call in AlignAssignmentStatement.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@teanup peanut (teanup) changed the title Fix #2201: Include file path in AlignAssignmentStatement corrections Include file path in AlignAssignmentStatement corrections Aug 8, 2026
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.

PSAlignAssignmentStatement returns SuggestedCorrections with wrong format

2 participants