On T183730 there was a global function found created inside a static function.
Codesniffer should at least detect these function with it's PrefixedGlobalFunctionsSniff.
Maybe it is better to detect and forbid them, even there are named wf*?
On T183730 there was a global function found created inside a static function.
Codesniffer should at least detect these function with it's PrefixedGlobalFunctionsSniff.
Maybe it is better to detect and forbid them, even there are named wf*?
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Prohibit nested functions | mediawiki/tools/codesniffer | master | +172 -88 |
Change 420231 had a related patch set uploaded (by MaxSem; owner: MaxSem):
[mediawiki/tools/codesniffer@master] Prohibit nested functions
Change 420231 merged by jenkins-bot:
[mediawiki/tools/codesniffer@master] Prohibit nested functions