Commit graph

211 commits

Author SHA1 Message Date
Boshen
4d32bfb55e
refactor: remove all declarations of const fn, which is useless for us 2023-03-07 21:29:47 +08:00
Boshen
711354a40b
chore(rust): allow clippy::missing_const_for_fn 2023-03-07 21:29:47 +08:00
Shannon Rothe
11237f3cbd
feat(linter): implement eslint(constructor-super) (#126) 2023-03-07 18:22:58 +08:00
Shannon Rothe
0f7edfb003
feat(rule_generator): automatically generate rules and tests (#142) 2023-03-07 18:21:58 +08:00
Boshen
6b9bbaa091
perf(lexer): try &static Atom for match_keyword (#143)
* perf(lexer): try phf_map for `match_keyword`

* wip
2023-03-07 13:14:22 +08:00
Shannon Rothe
2423257573
feat(linter): implement eslint(eqeqeq) rule (#124)
* feat(linter): implement `eslint(eqeqeq)` rule

* chore: improve comment

* better errors

* regenerate snapshots

* add nursery lint category
2023-03-07 06:26:41 +08:00
Shannon Rothe
b3dfb0ab51
chore(linter): remove extra spacing (#141) 2023-03-07 06:25:14 +08:00
Boshen
d4a10e3fac fix(linter): fix clippy warning 2023-03-06 06:29:18 -08:00
Boshen
c8e968f35d perf(ast): shrink some struct sizes
relates #138
2023-03-06 06:29:18 -08:00
Boshen
e20c60d961
ci(benchmark): increase measurement time 2023-03-06 21:46:16 +08:00
Xuan
d833672023
test(fixer): remove BOM testing (#137) 2023-03-06 18:50:21 +08:00
Boshen
c5dea20e1d
fix(oxc_wasm): remove wee_alloc dependency; fix profile warning 2023-03-06 14:50:02 +08:00
Domon
24d327c40d
feat(wasm): add wasm to oxc (#130) 2023-03-06 14:13:06 +08:00
yangchenye
500f42b134
feat(oxc_linter): implement eslint(for-direction) (#136)
feat(oxc_linter): implement eslint(for-direction)
2023-03-06 13:49:18 +08:00
Boshen
683778dfe2
feat(semantic): implement scopes (#135)
closes #119
2023-03-05 07:43:32 -08:00
Boshen
cb886d8a36
refactor(benchmark): make the benchmark run faster by using variable measurement time 2023-03-05 23:19:51 +08:00
Boshen
8dfb50642d
ci: release with debug symbols stripped from std 2023-03-05 22:33:14 +08:00
Boshen
5faae992b2
ci: add cargo-unused 2023-03-05 22:29:26 +08:00
Boshen
2f9e3832a0 chore(rust): bump deps 2023-03-05 04:51:00 -08:00
Boshen
43467b19e9 ci: write benchmark action summary 2023-03-05 04:51:00 -08:00
Shannon Rothe
d6b52167d3
feat(linter): implement rule categories (#131) 2023-03-05 04:14:24 -08:00
Fnll
81760da7cc
feat(parser): better diagnostic for missing semicolon in for loop statement (#133)
feat(parser): better diagnostic

Co-authored-by: kerui.lian <kerui.lian@bytedance.com>
2023-03-05 04:13:23 -08:00
Boshen
d1bfe9ab16
ci: add summary to bloat command (#132) 2023-03-05 04:12:05 -08:00
Boshen
4a8abca2d1
ci: fix bloat command 2023-03-05 16:05:47 +08:00
Boshen
57b3fbf899
ci: fix cargo bloat --profile 2023-03-05 16:03:00 +08:00
Boshen
1031755fdb
chore(rust): add release-debug mode 2023-03-05 15:57:53 +08:00
Boshen
16b99e7205
ci: make cargo print less logs 2023-03-05 15:51:51 +08:00
Boshen
dee5d00ae2
ci: add manual cargo bloat action 2023-03-05 15:41:54 +08:00
Boshen
7db95f0b33
refactor(ci): remove useless submodules: false from actions/checkout 2023-03-05 15:37:07 +08:00
Boshen
99f5465403
chore(cargo): add --all-features to cargo lint 2023-03-05 15:21:38 +08:00
Boshen
0a9ab3ed4c
feat(cli): print miette diagnostics with 4 spaces indentation 2023-03-05 15:19:59 +08:00
Boshen
94fddffc70
chore: use fancy-no-backtrace from miette
See https://github.com/zkat/miette/issues/132
2023-03-05 15:16:26 +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
35cb007b76
chore(ast): fix clippy warnings 2023-03-05 11:12:59 +08:00
Boshen
0a2cd5b1f5
chore(ast): document the Span type
closes #109
2023-03-05 11:11:41 +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
8b601ff26c
chore(README): add "Crafting Interpreters" to learning resources 2023-03-04 18:51:14 -08:00
Boshen
e71de0bff6 perf(cli): lint files while walking directories 2023-03-04 04:38:58 -08:00
Boshen
88735e2a94 perf(cli): turn on simd-accel for ignore because globs are being used 2023-03-04 04:38:58 -08:00
Boshen
e73f0b3ebe chore(cli): turn off unused default_features of git2 2023-03-04 04:38:58 -08:00
Boshen
aa773f0aa8 perf(cli): do not follow symlinks in ignore because it is a slow syscall 2023-03-04 04:38:58 -08:00
Boshen
331a258182
feat(linter): implement uninvoked-array-callback (#112)
* feat(linter): implement uninvoked-array-callback

closes #98

Co-authored-by: Shannon Rothe <shannon.michael.rothe@gmail.com>
2023-03-04 00:04:04 -08:00
Shannon Rothe
f8b8f045a9
feat(cli): filter out uncommitted files (#110) 2023-03-03 22:42:22 -08:00
Yoni Feng
dcfdce5bb7
refactor(lexer): avoid copying of self in SIMD functions (#104) 2023-03-03 21:46:55 -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
magic-akari
b4ee8c0dc3
feat(linter): no-empty-pattern (fix) 2023-03-03 17:53:51 +08:00