PMD and auto generated code in Netbeans -
I am using Netbeen to create a GUI application and about things in the PMD Auto-Generated Code "Complains". Can I ignore the PMD auto-generated code (as I did with the checkstation)?
Thank you.
There are some things you can do:
Change the form type template to include magic strings.
-
Use the template items from the Tools menu to open the 'Template Manager' dialog.
-
Find a folder named 'swing GUI form' and expand that node.
-
Select a template and open the editor's button.
-
Change @SuppressWarnings ("uncheck")
to@SuppressWarnings ({"uncheck", "PMD"})
B Create a rule, which does not include the warning which is violated by the generated code and use that rule. There is another one page.
Comments
Post a Comment