-
Hello, everyone!TL;DR In the meanwhile I have found this question and the person who answered seems to answer lots of my questions: I will try to use the info from that discussion tomorrow in order to create my rule, it looked really promising. Until then, I let this here, maybe someone has some more useful advice for my lack of knowledge? I have read everything I could possibly read from the official documentation regarding rule creation. (here) BUT: I lack the knowledge that I need in order to complete the following steps: I will give you some context in order to understand what I am working with: I have a plain and simple java project and I added the pmd lib files to the external libraries. Then I take the resulted json report and parse it with the goal of computing some statistics. I did not use gradle or maven because I tried but I did not manage to make it work. Now, I am trying to build a new custom rule using java because I want to add in the Violation message some variable. I understand the java code from those tutorial explaining how to build the rule, but I do now know:
Basically I do now understand how do I add my new java code to the already existing PMD code. Honestly, at this point I do not even know what I don't know. Could someone, please, give me some starting points regarding what I am trying to achieve? Thank you for reading all this. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
You might also have a look at the examples here https://github.com/pmd/pmd-examples |
Beta Was this translation helpful? Give feedback.
-
Yes, got it. Thank you :). |
Beta Was this translation helpful? Give feedback.
You might also have a look at the examples here https://github.com/pmd/pmd-examples
This includes a maven example as well.