Assignment to Formal Parameter (AFP)

Description:

AFP detects the code that assigns to a method parameter. This includes parameter modification with increment or decrement operator.

Example:

   int discount(int inputVal, int quantity, int yearToDate) {
   if (inputVal > 50) inputVal -= 50;
    ...