summaryrefslogtreecommitdiff
path: root/cli/lint.rs
AgeCommit message (Collapse)Author
2020-11-19refactor(cli): move tooling to cli/tools/ (#8424)Bartek Iwańczuk
This commit moves following tools into a single "tools" module located at "cli/tools/mod.rs": - formatter - linter - test runner - coverage collector - installer - binary upgrader - repl
2020-11-16refactor(cli): rename fs module to fs_util (#8380)Bartek Iwańczuk
This commit renames "fs" module in "cli/" to "fs_util". This is purely cosmetic change; there were a few places which aliased "crate::fs" to "deno_fs" which was very confusing with "fs" module in ops.
2020-11-14feat(lint): support --rules --json (#8384)Bartek Iwańczuk
This commit adds support for "--json" flag in combination with "--rules". List of rules is serialized to JSON and printed.
2020-11-14fix(fmt, lint): Make sure that target paths are not directory (#8375)Yusuke Tanaka
This commit merges implementations of "collect_files" and "files_in_subtree", leaving only the former. Additionally it was ensured that directories are not yielded from this function.
2020-11-11fix(cli): don't walk the subdirectory twice when using the `--ignore` flag ↵Akshat Agarwal
(#8040) This commit reworks "collect_files" utility to accept "ignore" parameter which allows to filter out files in a single iteration instead of walking file tree second time to excude "ignored" files.
2020-11-09refactor(cli): remove unnecessary format! calls (#8315)KNnut
2020-11-08upgrade: deno_doc, deno_lint, dprint, swc (#8292)Bartek Iwańczuk
2020-10-30upgrade: deno_doc, deno_lint, dprint, swc (#8197)Bartek Iwańczuk
- deno_doc 0.1.14 - deno_lint 0.2.7 - dprint-plugin-typescript 0.32.7 - swc_bundler 0.14.1 - swc_ecmascript 0.13.1
2020-10-21refactor(cli): use PathBuf instead of String for lint and fmt subcommands ↵Akshat Agarwal
(#8042)
2020-10-18refactor(lint): show hint for lint errors (#8016)Bartek Iwańczuk
This commit adds formatting of optional "hint" that can be present in lint diagnostic.
2020-09-22refactor(cli/fmt_errors): Color stack traces in Rust (#7628)Nayeem Rahman
2020-09-21refactor: use futures and serde_json from deno_core (#7614)Bartek Iwańczuk
2020-09-20fix(fmt,lint): do not print number of checked files when `--quiet` is ↵Yusuke Tanaka
enabled (#7579)
2020-09-15cli/msg.rs -> cli/media_type.rsRyan Dahl
2020-09-15refactor: use the 'anyhow' crate instead of 'ErrBox' (#7476)Bert Belder
2020-09-14refactor: use ParsedModule and improve MediaTypes enum (#7456)Kitson Kelly
2020-09-09feat(fmt, lint): show number of checked files (#7312)Yusuke Tanaka
2020-09-02chore: multi line deno_lint diagnostics (#7303)Luca Casonato
2020-08-31feat(lint): Add support for reading input from stdin (#7263)Yusuke Tanaka
2020-08-29fix(lint): use recommended rules set (#7222)Yusuke Tanaka
2020-08-26upgrade: swc, deno_doc, deno_lint, dprint (#7194)Bartek Iwańczuk
2020-08-14chore: nightly clippy refactor in lint.rs (#7045)Kitson Kelly
2020-08-13feat: Add "--json" flag to deno lint (#6940)souldzin
Co-authored-by: JackSkylark <jdslaughter44@gmail.com>
2020-08-12feat: add "--ignore" to deno lint (#6934)Divy Srivastava
2020-07-31upgrade: deno_lint, dprint, swc (#6928)Bartek Iwańczuk
This commit upgrades: deno_lint 0.1.20 dprint-plugin-typescript 0.25.0 swc_ecmascript 0.1.0 SWC is no longer reexported from dprint nor deno_lint.
2020-07-11chore: upgrade deno_lint, remove direct dprint dep (#6679)Bartek Iwańczuk
This PR removes direct dependency on dprint-plugin-typescript and swc_ecma_visit. Both of these dependencies have been pushed out to deno_lint crate. This should make it a bit easier to do the upgrades and prevent having conflicting crate requirements.
2020-07-03upgrade: dprint-typescript-plugin 0.19.5, deno_lint 0.1.15 (#6614)Bartek Iwańczuk
2020-07-01upgrade: swc_ecma_visit, dprint, deno_lint (#6580)Bartek Iwańczuk
2020-06-29refactor: util functions take slices instead of heap values (#6547)Valentin Anger
2020-06-12feat(lint): add --rules flag (#6264)Bartek Iwańczuk
2020-06-12update: deno_lint to v0.1.10 (#6248)Bartek Iwańczuk
* update: deno lint to v0.1.10 * Parallelize "deno lint" subcommand
2020-06-10feat(lint): use default globs, upgrade to v0.1.9 (#6222)Bartek Iwańczuk
This commit: * added default file globs so "deno lint" can be run without arguments (just like "deno fmt") * added test for globs in "deno lint" * upgrade "deno_lint" crate to v0.1.9