sirbrillig / phpcs-variable-analysis

Find undefined and unused variables with the PHP Codesniffer static analysis tool.
Other
136 stars 14 forks source link

CS/QA: align different data in `@param` tags #257

Closed jrfnl closed 2 years ago

jrfnl commented 2 years ago

Effectively treat the information in a @param tag as columns to be aligned:

@param dataType $variableName Description
sirbrillig commented 2 years ago

Looks good. Will the fixers we've discussed be able to apply this to any new code automatically (if run)?

jrfnl commented 2 years ago

Looks good. Will the fixers we've discussed be able to apply this to any new code automatically (if run)?

Absolutely, though I'd need to do some ruleset magic if we want this particular part of the docs sniffs to be applied, but the rest still excluded. But yes, this patch was created using the auto-fixer.