MediaWiki-CodeSniffer
MediaWiki CodeSniffer Standards
|
Check multiple consecutive newlines in a file. More...
Classes | |
class | EmptyLinesBetweenUseSniff |
Complain about empty lines between the different use statements at the top of a file. More... | |
class | MultipleEmptyLinesSniff |
class | OpeningKeywordParenthesisSniff |
class | SpaceAfterClosureSniff |
class | SpaceBeforeBracketSniff |
Sniff to warn when there is a space between a variable expression and [. More... | |
class | SpaceBeforeClassBraceSniff |
class | SpaceBeforeSingleLineCommentSniff |
class | SpaceyParenthesisSniff |
class | UnaryMinusSpacingSniff |
Sniff to warn when there is a space after a unary minus operator. More... | |
class | WhiteSpaceBeforeFunctionSniff |
Check for tabs or extra spaces between the keyword function and the function name. More... | |
Check multiple consecutive newlines in a file.
Make sure calling functions is spacey: $this->foo( $arg, $arg2 ); wfFoo( $arg, $arg2 );.
Verify that comments are preceded by a single space.
make sure a space before class open brace.
fail: class TestClass\t{ fail: class TestClass{ fail: class TestClass { pass: class TestClass {
However, allow it if there are multiple single-line comments on consecutive lines (also with empty lines in between).
But, wfFoo() is ok.
Also disallow wfFoo( ) and wfFoo( $param )