summaryrefslogtreecommitdiff
path: root/cli/tools/lint.rs
AgeCommit message (Collapse)Author
2021-11-04fix(lint): use recommended tag if there is no tags in config file or flags ↵Zheyu Zhang
(#12644)
2021-10-30fix(cli): linter/formater watches current directory without args (#12550)Zheyu Zhang
2021-10-30fix(cli): lint/format all discoverd files on each change (#12518)Zheyu Zhang
2021-10-12chore: upgrade crates based on deno ast 0.3 (#12403)David Sherret
2021-10-12fix(lsp): lint diagnostics respect config file (#12338)Bartek Iwańczuk
This commit fixes problem with LSP where diagnostics coming from "deno lint" don't respect configuration file. LSP was changed to store "Option<ConfigFile>", "Option<LintConfig>" and "Option<FmtConfig>" on "Inner"; as well as storing "Option<LintConfig>" and "Option<FmtConfig>" on "StateSnapshot". Co-authored-by: Kitson Kelly <me@kitsonkelly.com>
2021-10-05feat(lint): add support for --watch flag (#11983)CGQAQ
2021-09-08refactor(lint): reuse lint rules (#11934)Bartek Iwańczuk
This commit updated "deno_lint" crate to 0.15.1 and refactors "cli/tools/lint.rs" to create only a single vector of lint rules, instead of creating a vector for each linted file.
2021-09-07refactor(lsp): use deno_ast and cache swc ASTs (#11780)David Sherret
2021-09-03feat(lint): add support for config file and CLI flags for rules (#11776)Bartek Iwańczuk
This commit adds support for following flags in deno lint subcommand: --config - allows to load configuration file and parses "lint" object --rules-tags=<tags> - allows specifying which set of tagged rules should be run --rules-include=<rules> - allow specifying which rules should be run --rules-exclude=<rules> - allow specifying which rules should not be run
2021-09-02chore: upgrade crates (#11894)Bartek Iwańczuk
Co-authored-by: David Sherret <dsherret@gmail.com>
2021-08-14fix(cli/lint): don't use gray in diagnostics output for visibility (#11702)Yusuke Tanaka
2021-08-12fix(lint): add links to help at lint.deno.land (#11667)Bartek Iwańczuk
2021-08-10chore: upgrade crates (#11626)Bartek Iwańczuk
2021-07-30chore: upgrade Rust to 1.54.0 (#11554)Yusuke Tanaka
2021-07-07fix(cli/tools/lint): output json reports to stdout (#11311)Casper Beyer
2021-05-10chore: upgrade crates (#10559)Bartek Iwańczuk
2021-03-26remove macro_use (#9884)Ryan Dahl
2021-02-19fix: lint and fmt error if no target files are found (#9527)Yusuke Tanaka
2021-01-27chore: fix typo in lint.rs (#9281)Ikko Ashimine
2021-01-11chore: update copyright to 2021 (#9092)Yusuke Tanaka
2020-12-07feat: add mvp language server (#8515)Kitson Kelly
Resolves #8400
2020-11-22feat(unstable): Support --watch flag for bundle and fmt subcommands (#8276)Yusuke Tanaka
This commit adds support for "--watch" flag for "bundle" and "fmt" subcommands. In addition to this, it refactors "run --watch" command so that module resolution will occur every time the file watcher detects file addition/deletion, which allows the watcher to observe a file that is newly added to the dependency as well.
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