MetroCS / QualityToolsForBlueJ

BlueJ extension to integrate quality assessment tools
GNU Lesser General Public License v3.0
0 stars 42 forks source link

[UserStory] see if I use all the variables that I declare #50

Closed holsappled closed 4 years ago

holsappled commented 4 years ago

User Story

Essential components

Story

USER STORY: As a CS1 student I want to be able to see if I use all the variables that I declare. I want the tool to point to a line where the unused variable exists.

Acceptance Criteria

(Rules or scenarios are acceptable formats.)

Scenario 1

Given A variable
when unused then extention points to line number of unused variable

Supporting Information

https://www.bluej.org/extensions/extensions.html

The PMD Extension for BlueJ is a wrapper for the open-source code analysis utility PMD. This extension gives the BlueJ user a handy way to quickly run the PMD source code analyzer on a Java class in BlueJ. It adds a PMD menu item to the BlueJ class menu. PMD finds common programming flaws like unused variables, empty catch blocks, unnecessary object creation, duplicated code, and so forth. This extension works with any version of PMD and works under Linux or Windows.

After Installation

In BlueJ, open to the main class window that displays your classes, right-click on a class object, when the menu comes up, at the bottom of it you will see PMD as an option, select that and click "check code". A popup will then run PMD against your class source file and then display a popup listing all of the things PMD does not like about your code.

--

Dependencies

Depends On

(Issues on which this story depends)

Dependents

(Issues dependent on this story)

jody commented 4 years ago

Please use the templated form for a user story to ensure that every aspect is addressed.

Please review the intent of Acceptance Criteria, which are a way of testing whether the product satisfies the requirement.

Please use one of the identified stakeholder types, or explain why a subtype is needed.

It is unclear how this story addresses the intended goals of the project as given in the Vision Statement; in particular, seeking a single extension that integrates multiple SQA tools, provides a cohesive user experience, and provides a smooth path for the addition of new SQA tools.

holsappled commented 4 years ago

Closed user story due to no future alteration possibilities.