10 Commits

Author SHA1 Message Date
Thomas Neidhart
f4a8f759ac fix linter to add optional parameters to std.manifestJsonEx 2026-01-30 22:52:02 +00:00
Thomas Neidhart
6890a93743 make linter aware of clamp function 2026-01-30 22:45:42 +00:00
Thomas Neidhart
e0c6a9ed6f
Fix linter: using a local in an assertion. (#723) 2024-06-10 21:28:17 +01:00
Brad Ison
3d9a2bfbd0
Add optional parameters to manifestYamlStream in linter (#732) 2024-06-10 21:26:36 +01:00
Sean Gillespie
9639773cf0
Teach jsonnet-lint about optional parameters of std.manifestYamlDoc (#705)
manifestYamlDoc takes two optional parameters, `indent_array_in_object` and `quote_keys`. This commit teaches jsonnet-lint about them so that it doesn't raise errors when you use them.

There are other stdlib library functions with this problem; the true solution is probably to auto-generate this from the stdlib AST, but this at least gets the linter happy with this particular function.
2023-06-13 21:18:35 +01:00
Angus Lees
f699b0ea42 Add numberArrayType linter type
Add `numberArrayType` specialised type for cases where we know we have
an array of numbers.  Use in some stdlib functions and `importbin`.
2022-03-03 22:49:02 +00:00
Stanisław Barzowski
46d1fceb9c [Linter] Fix super index type and handle "object or string" indexing correctly. 2021-06-06 21:13:19 +02:00
Stanisław Barzowski
31d71aaccd Add missing linter metadata for stdlib.
Fixes #483.
2021-01-01 19:17:40 +01:00
Stanisław Barzowski
6140a2f75a Better stacktrace for manifestation, +: and object assertions.
Fixes #282
2021-01-01 19:17:27 +01:00
Stanisław Barzowski
8fcbda5b50 Linter 2020-08-13 21:06:34 +02:00