Skip to content

Conversation

@stephen-carter-at-sf
Copy link
Contributor

In this PR:

  • I refactored to give the old pmd-wrapper a new name (pmd-cpd-wrappers) so that it didn't feel so PMD specific.
  • I refactored the cpd wrapper to output a data structure that contains ProcessingError instances (just like PMD does)
  • I did a small refactor of the tests - moving sampleWorkspace to samplePmdWorkspace
  • I then implemented and tested the runRules method on CPD engine.

Note that no configuration has been added yet - so the java command, minumumTokens, etc are all just hard coded for now.

@@ -0,0 +1,10 @@
function abc3() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have any non-html files with minimum token greater than the default? Also, can we rename these files a bit more descriptive? Like sampleJavascriptWithLessThanMinTokens.js ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, I do see some happy path Apex Classes. So, never mind about my first comment. Can we still have the filenames be more descriptive?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, let me see if I can make the files more descriptive...

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@stephen-carter-at-sf stephen-carter-at-sf merged commit 44f2ffd into dev Nov 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants