This repository has been archived by the owner on Jan 21, 2020. It is now read-only.
geerteltink
released this
01 Jan 19:10
·
2 commits
to master
since this release
Added
-
#8 adds some sniffs from webimpress/coding-standard.
- Forbid null values for class properties
- Comments at the end of the line, with at least single space
- Requires one space after namespace keyword
- One space after break/continue with argument, remove redundant 1
- Forbid continue in switch; use break instead
- Require camelCase variable names
- Detects for-loops that can be simplified to a while-loop
- Detects unconditional if- and elseif-statements
- Forbid goto instruction
- Forbid multiple traits by declaration
- Require lowercase function and const keywords in imports with one space after
- Forbid superfluous leading backslash in use statements
- Forbid whitespace around double colon operator
- Forbid whitespace around double colon operator
-
#10 adds additional sniffs.
- Added AnonymousClassDeclaration sniff
- Added ScopeIndent sniff
- Added sniff to disallow spaces before/after incrementation/decrementation operators
- Added sniff to disallow space after nullable operator
Changed
-
#8 replaces sniffs in favor of webimpress/coding-standard as these are more reliable or fixes more cases.
-
#10 adds additional sniffs.
- Improve absolute class name references sniffs
- Improve sniff for useless alias for classes, constants, functions and traits
- Use PSR-12 sniff for class instantiation parenthesis
- Use PEAR.Commenting.FunctionComment instead of Squiz
- Updated to PHP_CodeSniffer 3.4.0
Deprecated
- Nothing.
Removed
- Nothing.
Fixed
- Nothing.