about summary refs log tree commit diff
path: root/src/tools/jsondoclint
AgeCommit message (Collapse)AuthorLines
2023-08-23rustdoc: Rename typedef to type alias in jsondoclintNoah Lev-10/+10
2023-08-21rustdoc-json: Rename typedef to type aliasNoah Lev-5/+5
2023-07-12Allow to have `-` in the rustdoc-json test file nameGuillaume Gomez-2/+9
2023-05-04IAT: Rustdoc integrationLeón Orell Valerian Liehr-1/+3
2023-04-10Fix remaining typosDaniPopes-5/+5
2023-03-05Rollup merge of #108626 - ozkanonur:consistent-json-docs, r=aDotInTheVoidMatthias Krüger-15/+15
rustdoc-json: switch from HashMap to FxHashMap to fix non-determinism Using `HashMap` in `rustdoc_json_types::Crate` were causing creating randomly ordered objects in the json doc files. Which might cause problems to people who are doing comparison on those files specially in CI pipelines. See https://github.com/rust-lang/rust/issues/103785#issuecomment-1307425590 This PR fixes that issue and extends the coverage of `tests/run-make/rustdoc-verify-output-files` testing ability.
2023-03-05fix inconsistent json outputs from rustdocozkanonur-15/+15
Signed-off-by: ozkanonur <work@onurozkan.dev>
2023-02-22Add check to ensure there are no duplicates in rustdoc JSON output format in ↵Guillaume Gomez-6/+22
items fields
2023-01-06jsondoclint: Check local items in `paths` are also in `index`.Nixon Enraght-Moony-4/+125
2023-01-03jsondoclint: Add option to dump errors as json.Nixon Enraght-Moony-4/+25
The output looks like: { "errors": [ { "id": "2:2017:1833", "kind": { "NotFound": [ [ {"Field": "index"}, {"Field": "0:0:1571"}, {"Field": "links"}, {"Field": "pointer::read"} ] ] } } ], "path": "/home/nixon/dev/rust/rust/build/x86_64-unknown-linux-gnu/test/rustdoc-json/intra-doc-links/pointer_method/pointer_method.json" }
2023-01-03jsondoclint: Find selector for missing ID when error is created, not reported.Nixon Enraght-Moony-42/+64
This is needed for json output, but even without that, it increases performance massivly. On my machine, in reduces the time to check core.json from 40.190s to 11.333s.
2023-01-03jsondoclint: Add `--verbose` flag.Nixon Enraght-Moony-6/+26
Without verbose: 0:61941:36627 not in index or paths, but refered to at '$.index["0:62007"].inner.for.inner.id' and 12 more With verbose: 0:10808:27206 not in index or paths, but refered to at '$.index["0:10813"].inner.for.inner.id', '$.index["0:52495"].inner.for.inner.id', '$.index["a:0:2666:215-0:10808:27206"].inner.for.inner.id', '$.index["a:0:2680:223-0:10808:27206"].inner.for.inner.id', '$.index["a:0:2730:7845-0:10808:27206"].inner.for.inner.id', '$.index["a:0:7731:21706-0:10808:27206"].inner.for.inner.id', '$.index["a:0:7732:21705-0:10808:27206"].inner.for.inner.id'
2023-01-03jsondoclint: Parse args with clap.Nixon Enraght-Moony-4/+11
2023-01-01Rustdoc-Json: Report discriminant on all kinds of enum variant.Nixon Enraght-Moony-18/+18
Closes #106299
2022-12-02jsondoclint: Check `links` fieldNixon Enraght-Moony-0/+59
2022-11-27Rollup merge of #104944 - aDotInTheVoid:jsondoclint-unit-tests, r=jyn514Matthias Krüger-3/+33
Support unit tests for jsondoclint r? ````@ghost````
2022-11-26Rollup merge of #104943 - aDotInTheVoid:jsondoclint-use-enum, r=GuillaumeGomezGuillaume Gomez-3/+28
jsondoclint: Handle using enum variants and glob using enums. More work on jsondoclint for `core.json` Closes #104942 r? `@GuillaumeGomez` `@rustbot` modify labels: +A-testsuite
2022-11-26Add a test that makes senseNixon Enraght-Moony-5/+28
2022-11-26Support unit tests for jsondoclintNixon Enraght-Moony-0/+7
2022-11-26jsondoclint: Handle using enum variants and glob using enums.Nixon Enraght-Moony-3/+28
Closes #104942
2022-11-26jsondoclint: Accept trait alias is places where trait expected.Nixon Enraght-Moony-5/+5
Closes #104923
2022-11-25jsondoclint: Recognise Typedef as valid kind for Type::ResolvedPathNixon Enraght-Moony-7/+10
Closes #104851
2022-11-16rustdoc JSON: Use `Function` everywhere and remove `Method`Martin Nordholts-15/+4
2022-09-26 Rustdoc-Json: List impls for primitivesNixon Enraght-Moony-7/+6
Closes #101695
2022-09-14jsondoclint: Fix TODO'sNixon Enraght-Moony-6/+20
2022-09-14jsondoclint: More precise `Path` checksNixon Enraght-Moony-14/+29
2022-09-14Rustdoc-Json: Add test for extern_typesNixon Enraght-Moony-2/+9
2022-09-14jsondoclint: Document validatorNixon Enraght-Moony-22/+29
2022-09-14Primitives can appear in modules.Nixon Enraght-Moony-1/+1
2022-09-14jsondocck: Find path to Id's not in indexNixon Enraght-Moony-3/+99
2022-09-14jsondocck: Better errorsNixon Enraght-Moony-45/+70
2022-09-14jsondoclint: Add `Kind` abstractionNixon Enraght-Moony-66/+213
2022-09-14jsondoclint: Tree Walk ValidatorNixon Enraght-Moony-1/+457
2022-09-14jsondoclint: New ToolNixon Enraght-Moony-0/+9