I have a doubt, I have a class in which I’m using different static import for import constants, my issue is that I’m getting the error message: Too many static imports may lead to messy code. But in the unit test it looks like it is not a bad practice. For example in a unit test class, I’m using this
Tag: pmd
How to suppress violations in PMD?
When I run a PMD analysis I receive violation: Each class should declare at least one constructor This violation is on a Spring controller. This controller is instantiated by Spring, so I shouldn’t need to invoke this class. What is recommended way of ignoring this violation? According to this doc can use //NOPMD but I just want to ignore specific