Commit Graph

6 Commits

Author SHA1 Message Date
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