Releases: Submitty/submitty-php-codesniffer
Releases · Submitty/submitty-php-codesniffer
v3.0.1
v3.0.0
v2.5.0
Breaking Change
The StroustrupSniff
and DoWhileSniff
have been re-combined and the errors reported by them are no longer fixable.
Dependencies
- Remove usage of
phpcsstandards
packages. There is no indication as to when these packages will ever get a general release. - Upgrade
dealerdirect/phpcodesniffer-composer-installer
dev dependency to latest version
v2.4.1
Dependencies
- Update phpcs from 3.5.4 to 3.5.5
- Update slevomat/coding-standard from 6.2.0 to 6.3.9 (no new sniffs enabled)
Build
- Move from Travis-CI to GitHub actions
v2.4.0
-
Update slevomat/coding-standard to 6.2.0
-
Rewrite StroustrupSniff into two parts:
- StroustrupSniff
- DoWhileSniff
The first ensures that elseif, else, and catch are all on their own lines after the prior closing brace. The second ensures that the while of a do-while appears on its own line. By doing this, these sniffs are able to extend existing sniffs, and take advantage of their fixer code, as opposed to just reporting unfixable errors.
As such, running phpcbf on the following code:
if ($cond) {
} elseif ($cond2) {
} else {
}
try {
} catch ($exc) {
}
do {
}
while ($cond);
will get fixed as:
if ($cond) {
}
elseif ($cond2) {
}
else {
}
try {
}
catch ($exc) {
}
do {
}
while ($cond);
v2.3.0
- Update slevomat/coding-standard to ^6.0
- Update squizlabs/php_codesniffer to ^3.5.4
- Require boolean placement at beginning of line for multi-line control structures:
if (
$condition1
&& $condition2
&& (
$condition 3
|| $condition 4
)
)
v2.2.3
- Fix try/catch statements not being checked
v2.2.2
- Drop including both PSR-2 and PSR-12 rulesets and just use PSR-12
v2.2.1
- Updates squizlabs/php_codesniffer to
3.5.2
v2.2.0
Features
- Add Squiz.Classes.ClassFileName sniff