-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add Rust CPD #5414
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Rust CPD #5414
Conversation
pmd-rust/src/main/java/net/sourceforge/pmd/lang/rust/RustLanguageModule.java
Outdated
Show resolved
Hide resolved
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.
Thanks for the PR!
Did you take the grammar from https://github.com/antlr/grammars-v4/tree/master/rust ? That's worth documenting somewhere, as languages evolve and grammars need to be kept up to date... so that we can update downstream/upstream if some parsing problem appears.
good point! I added a README to the directory where the grammar lives. I also deleted |
…x import order, add helloworld.txt to test data
pmd-rust/src/main/java/net/sourceforge/pmd/lang/rust/ast/RustLexer.java
Outdated
Show resolved
Hide resolved
pmd-rust/src/main/java/net/sourceforge/pmd/lang/rust/ast/RustLexerBase.java
Outdated
Show resolved
Hide resolved
Generated by 🚫 Danger |
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.
Thanks!
Merge pull request #5414 from juliapaluch:add-rust-cpd
Describe the PR
This PR adds CPD support for Rust.
Ready?
./mvnw clean verify
passes (checked automatically by github actions)