You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CLASS MyObject IMPLEMENTS IGetLabel:
METHOD PUBLIC CHARACTER GetLabel( INPUT pCode AS CHARACTER ):
RETURN "Hello".
END METHOD.
END CLASS.
In MyObject, the pCode parameter is not used in the method (it's a bug in my code).
Usually, "Unused parameter should be removed" rule show me this error and I can fix or ignore it.
But because this method come from my interface, this rule doesn't show any error (that's legit).
May be we should have a new rule for unused parameters of inherited/implemented method ?
Thanks,
The text was updated successfully, but these errors were encountered:
This case is specifically excluded from the existing rule, as there's nothing you can do if you don't have any usage for this variable.
It could technically be possible to have a separate rule for that, but to my mind, it will report way too many false positives.
Hello,
Here is my case:
In
MyObject
, the pCode parameter is not used in the method (it's a bug in my code).Usually, "Unused parameter should be removed" rule show me this error and I can fix or ignore it.
But because this method come from my interface, this rule doesn't show any error (that's legit).
May be we should have a new rule for unused parameters of inherited/implemented method ?
Thanks,
The text was updated successfully, but these errors were encountered: