Skip to content

Commit f9f380d

Browse files
committed
Fix #2201: Include file path in SuggestedCorrections from AlignAssignmentStatement
The CorrectionExtent constructor was being called with the rule message as the 6th argument (file), when it should be the 7th (description).
1 parent 4b0117c commit f9f380d

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Rules/AlignAssignmentStatement.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -650,6 +650,7 @@ int targetColumn
650650
lhsExtent.EndColumnNumber,
651651
equalsExtent.StartColumnNumber,
652652
new string(' ', targetColumn - lhsExtent.EndColumnNumber),
653+
lhsExtent.File,
653654
string.Format(CultureInfo.CurrentCulture, Strings.AlignAssignmentStatementError)
654655
)
655656
};

0 commit comments

Comments
 (0)