i write a custom rule to ensure enum equals use "==", so first of all ,i have to identify which class is enum in my project. i use "name.getType().isEnum() " to do it. but is not effective.
the reason maybe The class not loaded. so i want to asking , pmd has a auxclasspath configuration, how do i configure in my project.
i write a custom rule to ensure enum equals use "==", so first of all ,i have to identify which class is enum in my project. i use "name.getType().isEnum() " to do it. but is not effective.
the reason maybe The class not loaded. so i want to asking , pmd has a auxclasspath configuration, how do i configure in my project.
thank you