Exam-Answer

Home / Microsoft / AZ-400 / Question 5

Prev Question
Next Question

Question 5

During a code review, you discover many quality issues. Many modules contain unused variables and empty catch blocks.

You need to recommend a solution to improve the quality of the code.

What should you recommend?

Answers


Advertisement

Explanation (click to expand)

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:

xcpretty is a fast and flexible formatter for xcodebuild.

References (click to expand)

Prev Question
Next Question

Load more