MediaWiki-CodeSniffer
MediaWiki CodeSniffer Standards
|
▼ MediaWiki | |
▼ Sniffs | |
▼ AlternativeSyntax | |
LeadingZeroInFloatSniff.php | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version |
UnicodeEscapeSniff.php | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version |
▼ Arrays | |
AlphabeticArraySortSniff.php | Check if the keys of an array are sorted and autofix it |
TrailingCommaSniff.php | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version |
▼ Classes | |
UnsortedUseStatementsSniff.php | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version |
UnusedUseStatementSniff.php | Originally from Drupal's coding standard https://github.com/klausi/coder |
▼ Commenting | |
DocCommentSniff.php | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version |
DocumentationTypeTrait.php | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version |
EmptyTagSniff.php | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version |
FunctionAnnotationsSniff.php | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version |
LicenseCommentSniff.php | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version |
PhpunitAnnotationsSniff.php | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version |
PropertyDocumentationSniff.php | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version |
▼ Files | |
ClassMatchesFilenameSniff.php | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version |
▼ PHPUnit | |
AssertionOrderSniff.php | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version |
MockBoilerplateSniff.php | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version |
▼ Usage | |
DeprecatedConstantUsageSniff.php | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version |
DeprecatedGlobalVariablesSniff.php | Detect use of deprecated global variables |
MagicConstantClosureSniff.php | Report error when METHOD is used in closures, because it does not reporting the correct method used in logs |
NestedFunctionsSniff.php | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version |
NestedInlineTernarySniff.php | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version |
NullableTypeSniff.php | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version |
PlusStringConcatSniff.php | Checks that plus is not used for string concat |
ReferenceThisSniff.php | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version |
StaticClosureSniff.php | Use static closure when the inner body does not use $this |
▼ VariableAnalysis | |
MisleadingGlobalNamesSniff.php | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version |
▼ WhiteSpace | |
OpeningKeywordParenthesisSniff.php | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version |
SpaceAfterClosureSniff.php | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version |
SpaceBeforeBracketSniff.php | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version |
UnaryMinusSpacingSniff.php | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version |
WhiteSpaceBeforeFunctionSniff.php | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version |
▼ Tests | |
ExtensionInfoTest.php | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version |
MediaWikiStandardTest.php | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version |