Boshen
fca6e02f84
refactor(cli): remove the codeowners feature ( #2448 )
...
I should've done a better job at selecting features. Every feature
requires more than just code to get it right.
linting by codeowners' files sounds good on paper but actually not that
useful.
2024-02-20 12:54:16 +08:00
Boshen
f4132976e9
chore: say good bye to ezno ( #2048 )
...
ezno has decided to focus on its own compiler for 2024,
we part away but we still collaborate and share knowledge together.
2024-01-16 13:53:54 +08:00
Boshen
4977ea1554
feat(cli): add basic prettier cli infrastructure ( #1300 )
2023-11-14 08:22:22 +00:00
u9g
1704a76f6f
Codeowners filtering ( #1083 )
...
closes #1066
2023-10-29 13:30:20 +08:00
Boshen
c88823244e
fix(cli): correct ignore-pattern behavior; add more cli tests ( #796 )
2023-08-26 00:03:49 +08:00
Boshen
03df8fcc68
refactor(cli): print the final result; fix plural on number of files
2023-08-21 11:51:15 +08:00
Boshen
a9c4fddb6d
refactor(cli): use bpaf instead clap ( #756 )
2023-08-18 17:14:06 +08:00
Boshen
3110490f36
refactor(cli,linter): move LintOptions from cli to linter ( #753 )
...
This also simplifies the Runner trait.
2023-08-17 22:28:34 +08:00
Don Isaac
3ab9ae121d
refactor(cli): Runners ( #533 )
2023-07-14 11:39:23 +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
304eaddb8f
feat(type): Add oxc_type_synthesis ( #413 )
...
Co-authored-by: Boshen <boshenc@gmail.com>
2023-06-07 23:52:58 +08:00
Boshen
7f93e58f10
chore: remove all #[must_use]
2023-05-11 21:08:00 +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
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
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
7c6e1e0df9
feat(cli): do not print errors on files that looks like a minified file
2023-03-12 12:59:37 +08:00
Boshen
d2f42c20cd
feat(cli): print all parser / semantic / linter diagnostics
2023-03-12 00:04:01 +08:00
Boshen
5c8670d1c8
feat(semantic): declare symbol and reference Identifier
2023-03-10 23:28:51 -08:00
Boshen
4d32bfb55e
refactor: remove all declarations of const fn, which is useless for us
2023-03-07 21:29:47 +08:00
Boshen
683778dfe2
feat(semantic): implement scopes ( #135 )
...
closes #119
2023-03-05 07:43:32 -08:00
Boshen
7d3ce8b125
feat(benchmark): add semantic builder to benchmark ( #129 )
2023-03-04 23:09:19 -08:00
Shannon Rothe
b9be065c8c
feat(cli): introduce pretty errors ( #111 )
2023-03-04 20:40:07 -08:00
Boshen
5106d2d63d
fix(cli): fix clippy warning
2023-03-05 11:04:43 +08:00
Xuan
ee569ae684
feat(oxc_linter): implement rule fixing logic ( #114 )
...
* refactor(oxc_linter): add FixResult
* refactor(oxc_linter): pass closure instead of an struct
* test(oxc_linter): uncomment tests
2023-03-04 18:57:50 -08:00
Boshen
e71de0bff6
perf(cli): lint files while walking directories
2023-03-04 04:38:58 -08:00
Shannon Rothe
f8b8f045a9
feat(cli): filter out uncommitted files ( #110 )
2023-03-03 22:42:22 -08:00
Xuan
91c01633d6
test(oxc_linter): add testing for code fixer ( #101 )
...
---------
Co-authored-by: Shannon Rothe <shannon.michael.rothe@gmail.com>
2023-03-03 21:37:25 -08:00
Amit Dahan
50f133f9a6
feat(cli): Print lint duration ( #105 )
2023-03-03 18:34:30 -08:00
Boshen
47c1e7ef51
feat(cli): print diagnostics with file name ( #103 )
...
This also speeds up printing when a file has lots diagnostics.
This is done by allocating only once compared to multiple times from before.
2023-03-03 08:43:13 -08:00
Shannon Rothe
92b232372f
feat(linter): implement autofix ( #94 )
...
* feat(linter): implement autofix
* remove `fs::write`
2023-03-03 17:12:47 +08:00
Shannon Rothe
77d6edbe72
feat(cli): use BufWriter for diagnostic printing
2023-03-02 21:59:42 -08:00
Pascal Schilp
679cd0bf32
feat(cli): parallelize diagnostics ( #93 )
...
feat(cli): parallelize printing of diagnostics
2023-03-02 07:28:45 -08:00
Shannon Rothe
27b82bda36
feat(cli): implement --max-warnings CLI option ( #77 )
...
* implement `--max-warnings` CLI option
* implement `--max-warnings` CLI option
* review comments
* remove `.vscode/`
* revert loop + add tests
2023-03-02 16:16:03 +08:00
Xuan
51d0ced5a0
feat(oxc_cli): support no-ignore
2023-03-01 23:54:11 -08:00
Xuan
298e956d0d
feat(oxc_cli): support ignore-path
2023-03-01 04:39:18 -08:00
Xuan
c2fb3613bd
feat(oxc_cli): support ignore-pattern
2023-02-28 08:38:33 -08:00
thepassle
33e5f8dd8d
feat(cli): support --quiet flag for lint command
2023-02-27 07:43:00 -08:00
Boshen
73ea3d6361
feat(ast,lexer,linter): save and check comments
2023-02-27 12:31:57 +08:00
Amit Dahan
e2207b9b15
feat(cli): support linting glob patterns
2023-02-26 22:25:16 +08:00
Boshen
78de22a3af
refactor(cli): clean up and report total number of diagnostics
2023-02-26 02:02:05 +08:00
thepassle
eaeafa0a82
feat(cli): exit codes
...
chore: remove foo.js
chore: review comments
chore: shut clippy up
chore: ran cargo fmt
chore: unnecessary return
2023-02-26 01:32:17 +08:00
Boshen
636a974686
feat(benchmark): setup hyperfine benchmark
...
closes #25
2023-02-25 18:58:31 +08:00
Boshen
c86cca37a8
feat(linter): linter prototype
2023-02-25 16:56:10 +08:00
Boshen
9f3a8c12a9
feat(cli): initialize cli and directory traversal
2023-02-24 22:46:56 +08:00