-
Notifications
You must be signed in to change notification settings - Fork 128
/
notes.txt
66 lines (58 loc) · 2.46 KB
/
notes.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
==========
The Joomla coding-standards for PHP_CodeSniffer has been derived from the Generic, PEAR, Squiz, PSR2, and Zend standards.
Differences are noted below.
==========
ruleset.xml
- Increased notional limit to 150 chars.
- Include/exclude additional sniffs from various standards (see file for specifics)
Classes/InstantiateNewClassesSniff.php
Classes/MemberVarScopeSniff.php
Classes/MethodScopeSniff.php
Classes/StaticThisUsageSniff.php
Commenting/ClassCommentSniff.php
- Added tags to check (copyright, etc not required in classes).
- @package tag optional.
Commenting/FileCommentSniff.php
- If not short description is provided then the blank line check is not done.
- Removed check on subpackage name in processSubpackage
- Removed space checking after @ tags in processTags
- Allowed any characters to appear before the copyright year in processCopyrights
- @package tag optional.
Commenting/FunctionCommentSniff.php
- Remove check for one space before var type.
- Remove check for 1 space after the longest type.
- Remove check for 1 space after the variable name.
- Remove check for variable name alignment.
- Remove check for variable comment alignment.
Commenting/SingleCommentSniff.php
ControlStructures/ControlSignatureSniff.php
ControlStructures/ElseIfDeclarationSniff.php
- based on PSR2.ControlStructures.ElseIfDeclaration
- Changed from WARNING to ERROR
ControlStructures/InlineControlStructureSniff.php
- Changed from WARNING to ERROR
- Added exception if the file is a layout (ie, under a /tmpl/ folder).
ControlStructures/MultiLineConditionSniff.php
ControlStructures/WhiteSpaceBeforeSniff.php
Functions/FunctionCallSignatureSniff.php
Functions/FunctionDeclarationSniff.php
Functions/StatementNotFunctionSniff.php
NamingConventions/ValidFunctionNameSniff.php
NamingConventions/ValidVariableNameSniff.php
PHP/LowerCaseConstantSniff.php
- Based on Generic.PHP.LowerCaseConstantSniff
WhiteSpace/CastSpacingSniff.php
- Squiz.WhiteSpace.CastSpacing
WhiteSpace/ConcatenationSpacingSniff.php
WhiteSpace/ControlStructureSpacingSniff.php
WhiteSpace/DisallowSpaceIndentSniff.php
- Based on Generic.WhiteSpace.DisallowSpaceIndent
WhiteSpace/MemberVarSpacingSniff.php
- Based on Squiz.WhiteSpace.MemberVarSpacing
WhiteSpace/ObjectOperatorIndentSniff.php
- Based on PEAR.WhiteSpace.ObjectOperatorIndent
WhiteSpace/OperatorSpacingSniff.php
WhiteSpace/SemicolonSpacingSniff.php
- Based on Squiz.WhiteSpace.SemicolonSpacing
WhiteSpace/SpaceAfterCastSniff.php
WhiteSpace/SuperfluousWhitespaceSniff.php