ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 258 - AZ-400 discussion

Report
Export

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?

A.
In a Maven build task, select Run PMD.
Answers
A.
In a Maven build task, select Run PMD.
B.
In an Xcode build task, select Use xcpretty from Advanced.
Answers
B.
In an Xcode build task, select Use xcpretty from Advanced.
C.
In a Gulp build task, specify a custom condition expression.
Answers
C.
In a Gulp build task, specify a custom condition expression.
D.
In a Grunt build task, select Enabled from Control Options.
Answers
D.
In a Grunt build task, select Enabled from Control Options.
Suggested answer: A

Explanation:

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/

asked 02/10/2024
Darpan Sodhi
41 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first