[TYPO3-core] CGL violations "unused parameters"

Xavier Perseguers xavier at typo3.org
Fri Oct 19 23:57:15 CEST 2012


> can someone please tell me if i can fix those CGL violations just by
> deleting the unused parameters? or are those unused parameters there on
> purpose?
> http://bit.ly/S3gEsS
> according to sonat in total there are 400+ unused parameters in core. i
> could fix that but am not sure if there were some pitfalls...
> https://metrics.typo3.org/drilldown/violations/2

Just an example which is typically plainly wrong:


fullQuoteStr() has a second unused parameter which is of high value for
DBAL where the XCLASS method *is* using it.

This lets me say that this metric simply cannot be trusted.

Kind regards

Xavier Perseguers
Release Manager TYPO3 4.6

TYPO3 .... inspiring people to share!
Get involved: http://typo3.org

More information about the TYPO3-team-core mailing list