-
Notifications
You must be signed in to change notification settings - Fork 650
feat(rome_js_analyze): rule noDupeArgs
#2972
Conversation
Wait #2973 to be merged. |
78d1f9b
to
67269ba
Compare
67269ba
to
a3c3f7f
Compare
crates/rome_js_analyze/src/semantic_analyzers/js/no_dupe_args.rs
Outdated
Show resolved
Hide resolved
!bench_analyhzer |
!bench_analyzer |
Analyzer Benchmark Results
|
noDupeArgs
crates/rome_js_analyze/src/semantic_analyzers/js/no_dupe_args.rs
Outdated
Show resolved
Hide resolved
crates/rome_js_analyze/src/semantic_analyzers/js/no_dupe_args.rs
Outdated
Show resolved
Hide resolved
crates/rome_js_analyze/src/semantic_analyzers/js/no_dupe_args.rs
Outdated
Show resolved
Hide resolved
5894c1d
to
e1fe0db
Compare
!bench_analyzer |
Analyzer Benchmark Results
|
@ematipico I rewrite the algorithm as you said before, using a recursive pattern matching algorithm to find the duplicate params. Would you mind helping with reviewing? |
So this may be more of a discussion we could have in the corresponding issue for this rule rather than in the PR, but I'm wondering if there's a way we could make the implementation for this rule more generic, into a |
crates/rome_js_analyze/src/semantic_analyzers/js/no_dupe_args.rs
Outdated
Show resolved
Hide resolved
crates/rome_js_analyze/src/semantic_analyzers/js/no_dupe_args.rs
Outdated
Show resolved
Hide resolved
crates/rome_js_analyze/src/semantic_analyzers/js/no_dupe_args.rs
Outdated
Show resolved
Hide resolved
crates/rome_js_analyze/src/semantic_analyzers/js/no_dupe_args.rs
Outdated
Show resolved
Hide resolved
crates/rome_js_analyze/src/semantic_analyzers/js/no_dupe_args.rs
Outdated
Show resolved
Hide resolved
crates/rome_js_analyze/src/semantic_analyzers/js/no_dupe_args.rs
Outdated
Show resolved
Hide resolved
b752cd9
to
61c190a
Compare
crates/rome_js_analyze/src/semantic_analyzers/js/no_dupe_args.rs
Outdated
Show resolved
Hide resolved
crates/rome_js_analyze/src/semantic_analyzers/js/no_dupe_args.rs
Outdated
Show resolved
Hide resolved
crates/rome_js_analyze/src/semantic_analyzers/js/no_dupe_args.rs
Outdated
Show resolved
Hide resolved
!bench_analyzer |
Analyzer Benchmark Results
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@xunilrj would you mind a give a second view and merge if you think it's fine?
Done. |
Summary
Test Plan