1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-26 16:09:27 -05:00
denoland-deno/cli/tests/testdata
David Sherret d1ef561dbf
feat: deno doc --lint (#21032)
Adds a new `--lint` flag to `deno doc` that surfaces three kinds of
diagnostics:

1. Diagnostic for non-exported type referenced in an exported type.
* Why? People often forget to export types from a module in TypeScript.
To supress this diagnostic, add an `@internal` jsdoc tag to the internal
type.
1. Diagnostic for missing return type or missing property type on a
**public** type.
* Why? Otherwise `deno doc` will not display good documentation. Adding
explicit types also helps with type checking performance.
1. Diagnostic for missing jsdoc on a **public** type.
* Why? Everything should be documented. This diagnostic can be supressed
by adding a jsdoc comment description.

If the lint passes, `deno doc` generates documentation as usual.

For example, checking for deno doc diagnostics on the CI:

```shellsession
$ deno doc --lint mod.ts second_entrypoint.ts > /dev/null
```

This feature is incredibly useful for library authors.

## Why not include this in `deno lint`?

1. The command needs the documenation output in order to figure out the
diagnostics.
1. `deno lint` doesn't understand where the entrypoints are. That's
critical for the diagnostics to be useful.
1. It's much more performant to do this while generating documentation.
1. There is precedence in rustdoc (ex. `#![warn(missing_docs)]`).

## Why not `--check`?

It is confusing with `deno run --check`, since that means to run type
checking (and confusing with `deno check --docs`).

## Output Future Improvement

The output is not ideal atm, but it's fine for a first pass. We will
improve it in the future.

Closes https://github.com/denoland/deno_lint/pull/972
Closes https://github.com/denoland/deno_lint/issues/970
Closes https://github.com/denoland/deno/issues/19356
2023-10-31 18:19:42 -04:00
..
assets chore(core): fix flaky flock_test on windows (#19477) 2023-06-12 20:30:29 +00:00
bench Revert "chore: update deno_std submodule (#20994)" (#21001) 2023-10-28 01:24:37 +00:00
benches refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
bundle feat: upgrade deno_ast to 0.26 (#18795) 2023-04-21 21:16:25 +00:00
cache perf: more efficient deno cache and npm package info usage (#16592) 2022-11-11 11:33:57 -05:00
cert Revert "chore: update deno_std submodule (#20994)" (#21001) 2023-10-28 01:24:37 +00:00
check refactor: remove DENO_UNSTABLE_NPM_SYNC_DOWNLOAD and custom sync functionality (#20504) 2023-09-14 17:51:28 +00:00
commonjs refactor(ext/node): untangle dependencies between js files (#18284) 2023-03-20 14:05:13 -04:00
compile Revert "chore: update deno_std submodule (#20994)" (#21001) 2023-10-28 01:24:37 +00:00
coverage Revert "chore: update deno_std submodule (#20994)" (#21001) 2023-10-28 01:24:37 +00:00
doc feat: deno doc --lint (#21032) 2023-10-31 18:19:42 -04:00
dynamic_import feat(cli): don't check permissions for statically analyzable dynamic imports (#18713) 2023-04-26 16:23:28 -04:00
encoding
eval chore(tests): ability to pattern match unordered lines (#20488) 2023-09-14 16:21:57 +00:00
file_extensions fix(cli): restore deno run - to handle stdin as typescript (#18391) 2023-03-23 12:45:43 -04:00
fmt feat: add support for globs in the config file and CLI arguments for files (#19102) 2023-05-23 03:39:59 +02:00
import_attributes chore(tests): ability to pattern match unordered lines (#20488) 2023-09-14 16:21:57 +00:00
import_maps fix(lsp): resolve remote import maps (#20651) 2023-09-24 18:00:15 +01:00
info chore(tests): ability to pattern match unordered lines (#20488) 2023-09-14 16:21:57 +00:00
inspector feat: add --inspect-wait flag (#17001) 2022-12-12 15:33:30 +01:00
install feat: subcommands type-check only local files by default (#14623) 2022-05-17 23:53:42 +02:00
jsr feat(unstable): package manager (#20517) 2023-09-18 10:46:44 -04:00
jsx feat: suggest adding a "node:" prefix for bare specifiers that look like built-in Node modules (#17519) 2023-01-24 15:14:49 -05:00
jupyter feat(unstable): add Deno.jupyter.display API (#20819) 2023-10-12 22:32:38 +00:00
lint feat: add support for globs in the config file and CLI arguments for files (#19102) 2023-05-23 03:39:59 +02:00
lockfile feat: lockfile v3 (#20424) 2023-09-08 14:34:57 -04:00
lsp fix(lsp): remove quotes and period surrounding specifier in uncached messages (#19794) 2023-07-11 02:27:22 +00:00
malformed_config feat: auto-discover config file (#13313) 2022-01-17 20:10:17 -05:00
module_graph
node chore: deno_core -> 0.201.0 (#20135) 2023-08-12 19:04:45 +00:00
npm feat(unstable): ability to npm install then deno run main.ts (#20967) 2023-10-25 14:39:00 -04:00
package_json chore(task): remove warning for npm "scripts" (#20880) 2023-10-12 07:33:59 +01:00
repl refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
run feat(ext/websocket): use rustls-tokio-stream instead of tokio-rustls (#20518) 2023-10-31 09:34:45 -06:00
runtime refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
subdir fix(unstable): vendor cache should support adding files to hashed directories (#20070) 2023-08-06 12:25:48 -04:00
task chore(task): remove warning for npm "scripts" (#20880) 2023-10-12 07:33:59 +01:00
test Revert "chore: update deno_std submodule (#20994)" (#21001) 2023-10-28 01:24:37 +00:00
tls fix(ext/net): implement a graceful error on an invalid SSL certificate (#20157) 2023-08-15 00:11:12 +00:00
tsc
tsc2
type_definitions
types refactor: move out test files from root testdata directory into sub directories (#15949) 2022-09-19 10:32:21 -04:00
vendor feat(vendor): support for npm specifiers (#19186) 2023-05-19 22:39:27 +00:00
webcrypto
workers Revert "chore: update deno_std submodule (#20994)" (#21001) 2023-10-28 01:24:37 +00:00
allow_run_allowlist_resolution.ts fix(runtime/permissions): Resolve executable specifiers in allowlists and queries (#14130) 2023-08-30 18:52:01 +01:00
allow_run_allowlist_resolution.ts.out fix(runtime/permissions): Resolve executable specifiers in allowlists and queries (#14130) 2023-08-30 18:52:01 +01:00
cat.ts chore: update std submodule and its imports (#17408) 2023-01-15 21:09:26 +01:00
echo.ts
echo_server.ts chore: update std submodule and its imports (#17408) 2023-01-15 21:09:26 +01:00
error_cause_recursive_aggregate.ts feat(cli): show error cause recursion information (#16384) 2022-10-26 15:37:45 +02:00
error_cause_recursive_aggregate.ts.out chore(tests): ability to pattern match unordered lines (#20488) 2023-09-14 16:21:57 +00:00
error_cause_recursive_tail.ts fix: add error cause in recursive cause tail (#16306) 2022-10-16 21:16:46 +02:00
error_cause_recursive_tail.ts.out chore(tests): ability to pattern match unordered lines (#20488) 2023-09-14 16:21:57 +00:00
navigator_language.ts feat: introduce navigator.language (#12322) 2022-10-18 15:33:35 +02:00
navigator_languages.ts feat: introduce navigator.language (#12322) 2022-10-18 15:33:35 +02:00
spawn_kill_permissions.ts chore(cli): Don't assume deno is in path for spawn_kill_permissions (#19198) 2023-05-22 09:54:58 -06:00
symlink_to_subdir