Shannon Rothe
21f8abe273
feat(cli): add support for TIMING env var ( #535 )
2023-07-25 11:14:36 +08:00
Don Isaac
3ab9ae121d
refactor(cli): Runners ( #533 )
2023-07-14 11:39:23 +08:00
Boshen
38e11956be
chore(rust): rust version 1.71.0 nightly
2023-07-13 23:10:10 +08:00
Boshen
a9debc9fdb
feat(resolver): add resolver test fixtures ( #542 )
2023-07-13 13:37:29 +08:00
Boshen
cdaff8b7f1
refactor(linter): expose LintContext as the API for Linter::run
2023-07-07 22:16:03 +08:00
Boshen
e25f6e2dd4
chore(rust): rust cargo fmt and fix clippy warnings
2023-07-04 15:41:30 +08:00
Boshen
df3a2f2d9d
refactor(resolver): add oxc_resolver crate
2023-07-02 20:44:43 +08:00
Boshen
3b7e1fde89
chore(cli): run parser with allow_return_outside_function
...
because there are a lot of scripts that have top level return functions
2023-06-28 18:40:47 +08:00
Boshen
ab5ec99f65
fix(linter): fix error message when failed to read a file
2023-06-28 18:40:46 +08:00
Boshen
64d6103d25
fix(cli): change "Found X errors" to "Found X warnings"
2023-06-27 23:48:26 +08:00
Boshen
b8526e7363
chore(cli): change "Found X errors" to "Found X warnings"
...
Things linters report are warnings not errors.
2023-06-27 23:03:21 +08:00
Boshen
90004ba4be
fix(cli): print number of threads used by rayon instead of number of cores
2023-06-27 22:05:44 +08:00
Boshen
681df1ad1f
feat(cli): create a oxlint binary
...
closes #485
2023-06-27 21:55:07 +08:00
Maneren
b31819d7a1
feat(cli): Basic recursive implementation of module based linting ( #468 )
2023-06-23 08:26:05 +08:00
Ben
67a86063e9
Update to latest Ezno checker and more ( #463 )
2023-06-21 08:09:41 +08:00
Boshen
d30735677b
refactor(semantic): merge semantic2 crate into semantic crate ( #460 )
2023-06-19 20:20:59 +08:00
Ben
304eaddb8f
feat(type): Add oxc_type_synthesis ( #413 )
...
Co-authored-by: Boshen <boshenc@gmail.com>
2023-06-07 23:52:58 +08:00
Boshen
14720e7c69
refactor: move SourceType from oxc_ast to oxc_span ( #351 )
...
related #350
2023-05-12 23:16:14 +08:00
Boshen
7f93e58f10
chore: remove all #[must_use]
2023-05-11 21:08:00 +08:00
Boshen
1004a1d197
chore: clean up workspace dependencies ( #320 )
2023-04-27 11:38:39 +08:00
Boshen
080baaa2db
chore: use taplo to reformat toml files
2023-04-22 15:58:59 +08:00
Boshen
7f946fb75d
chore: bump nightly to nightly-2023-04-20 ( #304 )
2023-04-20 23:35:38 +08:00
Boshen
3ebbf03217
feat(cli): test print rules ( #295 )
2023-04-18 21:27:17 +08:00
Shannon Rothe
20755a969a
feat(cli): add --rules CLI flag ( #290 )
2023-04-18 15:54:44 +08:00
Boshen
bb18132da5
refactor(oxc_diagnostics): remove error declarations
...
Make this crate not dependent on `oxc_ast`
2023-04-10 22:21:05 +08:00
Boshen
04592b3e4f
feat(cli): add --threads 1 option for rayon to use only 1 threads
2023-04-10 22:13:41 +08:00
Boshen
aedaa1a110
refactor(linter,semantic): move syntax check from linter to semantic ( #272 )
...
Syntax checker is part of semantic analyzer,
it doesn't make sense for the user to add a linter just for semantic errors
2023-04-10 12:23:53 +08:00
Boshen
d232199e1c
refactor(parser): return Rc<Trivias> from TriviaBuilder ( #231 )
...
closes #229
2023-03-31 09:02:48 -07:00
Boshen
79fd35c9cb
deps: fix versions depending on each other
2023-03-30 23:59:41 +08:00
Boshen
9e3675a575
chore: clean up Cargo.toml
2023-03-30 23:27:26 +08:00
Boshen
d46c7aabd9
chore: do not publish some of the crates
2023-03-30 22:41:52 +08:00
Boshen
b65e8397de
feat(diagnostics): change color displays
...
related #203
2023-03-26 21:20:54 +08:00
Boshen
366dc3037a
feat(diagnostics): port miette GraphicalReportHandler for further tuning
2023-03-26 20:20:53 +08:00
Boshen
ef19895cc3
feat(cli): add -A all -D isolated-declarations ( #211 )
...
* feat(linter): add restriction category for lint rules
* feat(cli): add "--allow" and "--deny" commands
* feat(linter): use a single instance of linter
* feat(cli): derive rules from args
* feat(cli): print number of rules
2023-03-26 04:34:31 -07:00
Boshen
d095d45818
refactor(semantic): add source_text and trivias to semantic
2023-03-25 14:19:53 +08:00
Boshen
b6a7c5bba9
fix(cli): remove extra source_text clone before linting
2023-03-19 12:58:00 +08:00
Boshen
d134c1d89a
refactor(oxc_cli): clean up code around spawning tasks
2023-03-19 11:32:46 +08:00
Boshen
ea7ae1011f
chore(cli): removed unused glob dependency
2023-03-19 10:35:55 +08:00
Boshen
c20f60c289
feat(cli): add ignore_pattern to walker
2023-03-18 18:24:04 +08:00
Boshen
89542be81e
feat(cli): use a single walker for all paths
2023-03-18 17:58:42 +08:00
Boshen
5135118bc8
refactor(cli): move lint command and options into modules
2023-03-18 17:53:06 +08:00
Boshen
0ec5f0b111
refactor(cli): cleanup command
2023-03-18 15:48:45 +08:00
Boshen
6a89f085b7
refactor(rust): add more clippy restriction rules
2023-03-17 14:51:25 +08:00
Boshen
a1315e3999
refactor(rust): add clippy::clone_on_ref_ptr
2023-03-17 14:51:25 +08:00
Boshen
678cfae967
feat(cli, linter): propage --fix option and apply fixes
...
closes #68
2023-03-17 13:01:04 +08:00
Boshen
5b2474600f
fix(cli): should return semantic errors
2023-03-17 09:43:53 +08:00
Boshen
b3fcb3a4e8
fix(cli): lint_path should panic with proper error message
2023-03-12 13:16:20 +08:00
Boshen
449856e875
feat(cli): print number of cpus cores
2023-03-12 13:13:09 +08:00
Boshen
7c6e1e0df9
feat(cli): do not print errors on files that looks like a minified file
2023-03-12 12:59:37 +08:00
Boshen
d8ff7ab022
fix(cli): exit 1 when number_of_diagnostics > 0
2023-03-12 12:45:05 +08:00