mirror of
https://github.com/google/go-jsonnet.git
synced 2025-09-29 17:31:02 +02:00
feat: Add missing linter metadata for std.manifestTomlEx function
This commit is contained in:
parent
0d78479d37
commit
f0a060e259
@ -108,6 +108,7 @@ func prepareStdlib(g *typeGraph) {
|
|||||||
"manifestIni": g.newSimpleFuncType(stringType, "ini"),
|
"manifestIni": g.newSimpleFuncType(stringType, "ini"),
|
||||||
"manifestPython": g.newSimpleFuncType(stringType, "v"),
|
"manifestPython": g.newSimpleFuncType(stringType, "v"),
|
||||||
"manifestPythonVars": g.newSimpleFuncType(stringType, "conf"),
|
"manifestPythonVars": g.newSimpleFuncType(stringType, "conf"),
|
||||||
|
"manifestTomlEx": g.newSimpleFuncType(stringType, "value", "indent"),
|
||||||
"manifestJsonEx": g.newSimpleFuncType(stringType, "value", "indent"),
|
"manifestJsonEx": g.newSimpleFuncType(stringType, "value", "indent"),
|
||||||
"manifestYamlDoc": g.newSimpleFuncType(stringType, "value"),
|
"manifestYamlDoc": g.newSimpleFuncType(stringType, "value"),
|
||||||
"manifestYamlStream": g.newSimpleFuncType(stringType, "value"),
|
"manifestYamlStream": g.newSimpleFuncType(stringType, "value"),
|
||||||
|
1
testdata/stdlib_smoke_test.golden
vendored
1
testdata/stdlib_smoke_test.golden
vendored
@ -108,6 +108,7 @@
|
|||||||
"manifestJsonEx": "{\n \"a\": {\n \"b\": \"c\"\n }\n}",
|
"manifestJsonEx": "{\n \"a\": {\n \"b\": \"c\"\n }\n}",
|
||||||
"manifestPython": "{\"a\": {\"b\": \"c\"}}",
|
"manifestPython": "{\"a\": {\"b\": \"c\"}}",
|
||||||
"manifestPythonVars": "a = {\"b\": \"c\"}\n",
|
"manifestPythonVars": "a = {\"b\": \"c\"}\n",
|
||||||
|
"manifestTomlEx": "\n\n[a]\n b = \"c\"",
|
||||||
"manifestXmlJsonml": "<blah a=\"42\"></blah>",
|
"manifestXmlJsonml": "<blah a=\"42\"></blah>",
|
||||||
"manifestYamlDoc": "\"a\":\n \"b\": \"c\"",
|
"manifestYamlDoc": "\"a\":\n \"b\": \"c\"",
|
||||||
"manifestYamlStream": "---\n42\n---\n\"a\":\n \"b\": \"c\"\n...\n",
|
"manifestYamlStream": "---\n42\n---\n\"a\":\n \"b\": \"c\"\n...\n",
|
||||||
|
1
testdata/stdlib_smoke_test.jsonnet
vendored
1
testdata/stdlib_smoke_test.jsonnet
vendored
@ -93,6 +93,7 @@
|
|||||||
manifestIni: std.manifestIni(ini={main: {a: 1, b:2}, sections: {s1: {x: 1, y: 2}}}),
|
manifestIni: std.manifestIni(ini={main: {a: 1, b:2}, sections: {s1: {x: 1, y: 2}}}),
|
||||||
manifestPython: std.manifestPython(v={a: {b: "c"}}),
|
manifestPython: std.manifestPython(v={a: {b: "c"}}),
|
||||||
manifestPythonVars: std.manifestPythonVars(conf={a: {b: "c"}}),
|
manifestPythonVars: std.manifestPythonVars(conf={a: {b: "c"}}),
|
||||||
|
manifestTomlEx: std.manifestTomlEx(value={a: {b: "c"}}, indent=" "),
|
||||||
manifestJsonEx: std.manifestJsonEx(value={a: {b: "c"}}, indent=" "),
|
manifestJsonEx: std.manifestJsonEx(value={a: {b: "c"}}, indent=" "),
|
||||||
manifestYamlDoc: std.manifestYamlDoc(value={a: {b: "c"}}),
|
manifestYamlDoc: std.manifestYamlDoc(value={a: {b: "c"}}),
|
||||||
manifestYamlStream: std.manifestYamlStream(value=[42, {a: {b: "c"}}]),
|
manifestYamlStream: std.manifestYamlStream(value=[42, {a: {b: "c"}}]),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user