Felix Lechner pushed to branch master at lintian / lintian
Commits:
3410a226 by Felix Lechner at 2022-01-19T21:26:06-08:00
Numerify line position in item pointers before generating JSON.
Gbp-Dch: ignore
- - - - -
1 changed file:
- lib/Lintian/Output/JSON.pm
Changes:
=====================================
lib/Lintian/Output/JSON.pm
=====================================
@@ -198,7 +198,10 @@ sub hintlist {
$item_dictionary{index} = $item->index->identifier;
$pointer_dictionary{item} = \%item_dictionary;
- $pointer_dictionary{line_position} = $pointer->position;
+
+ # numerify to force JSON integer
+ # https://metacpan.org/pod/JSON::XS#simple-scalars
+ $pointer_dictionary{line_position} = $pointer->position + 0;
}
$hint_dictionary{pointer} = \%pointer_dictionary;
View it on GitLab:
https://salsa.debian.org/lintian/lintian/-/commit/3410a22689abf93ba645fc82bd0940a741554520
--
View it on GitLab:
https://salsa.debian.org/lintian/lintian/-/commit/3410a22689abf93ba645fc82bd0940a741554520
You're receiving this email because of your account on salsa.debian.org.