This is the sort order of array indices used for a violation location: (Violation.pm)
Readonly::Scalar my $LOCATION_LINE_NUMBER => 0;
Readonly::Scalar my $LOCATION_COLUMN_NUMBER => 1;
Readonly::Scalar my $LOCATION_VISUAL_COLUMN_NUMBER => 2;
Readonly::Scalar my $LOCATION_LOGICAL_LINE_NUMBER => 3;
Readonly::Scalar my $LOCATION_LOGICAL_FILENAME => 4;
Thank you very much! I have merged #2, which covers this change and has some tests and so on. Without your PR, I would've entirely forgotten this problem or the languishing PR!
This is the sort order of array indices used for a violation location: (Violation.pm)
Readonly::Scalar my $LOCATION_LINE_NUMBER => 0; Readonly::Scalar my $LOCATION_COLUMN_NUMBER => 1; Readonly::Scalar my $LOCATION_VISUAL_COLUMN_NUMBER => 2; Readonly::Scalar my $LOCATION_LOGICAL_LINE_NUMBER => 3; Readonly::Scalar my $LOCATION_LOGICAL_FILENAME => 4;
ATM all violations are reported to be on line 1.