During a code review, you discover quality issues in a Java application. You need to recommend a solution to detect quality issues including unused variables an...


Microsoft AZ-400 Exam

Questions Number: 219 out of 535 Questions
40.93%

Question 219
During a code review, you discover quality issues in a Java application.
You need to recommend a solution to detect quality issues including unused variables and empty catch blocks.
What should you recommend?



PMD is a source code analyzer. It finds common programming flaws like unused variables, empty catch blocks, unnecessary object creation, and so forth.
There is an Apache Maven PMD Plugin which allows you to automatically run the PMD code analysis tool on your project's source code and generate a site report with its results.
Incorrect Answers:
B: xcpretty is a fast and flexible formatter for xcodebuild.
Reference:
https://pmd.github.io/





Previous Questions Next Questions