Writing a Custom SonarJava Rule: Understanding Unit Test Mechanics
Custom rule development in SonarJava generally follows two patterns. One involves extending the base tree visitor and implementing the JavaFileScanner interface to control scanning logic from scratch. The other, preferred for its simplicity and955 performance, relies on IssuableSubscriptionVisitor t...