Skip to content
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

[c++] Ignore literals and ignore identifiers capability to c++ cpd. #5040

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jdupak
Copy link

@jdupak jdupak commented May 24, 2024

Describe the PR

Adds ignore literals and ignore identifiers capability to c++ cpd.

Related issues

Ready?

  • Added unit tests for fixed bug/feature
  • Passing all unit tests
  • Complete build ./mvnw clean verify passes (checked automatically by github actions)
  • Added (in-code) documentation (if needed)

@oowekyala oowekyala added an:enhancement An improvement on existing features / rules in:cpd Affects the copy-paste detector labels May 24, 2024
@pmd-test
Copy link

1 Message
📖 No regression tested rules have been changed.

Generated by 🚫 Danger

@jsotuyod
Copy link
Member

@jdupak thanks! Happy to see you were able to manage this!

Overall this looks very neat! This covers all pointers I gave you.

The one thing missing for sure are tests. You can once again get inspiration from how Java test these.

https://github.com/pmd/pmd/blob/master/pmd-java/src/test/java/net/sourceforge/pmd/lang/java/cpd/JavaCpdLexerTest.java#L85-L103

@adangel adangel added this to the 7.3.0 milestone May 31, 2024
@oowekyala oowekyala changed the title Ignore literals and ignore identifiers capability to c++ cpd. [c++] Ignore literals and ignore identifiers capability to c++ cpd. Jun 5, 2024
@oowekyala oowekyala marked this pull request as draft June 5, 2024 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
an:enhancement An improvement on existing features / rules in:cpd Affects the copy-paste detector
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[cpd] Found match is not maximal
5 participants