Skip to content

Releases: Submitty/submitty-php-codesniffer

v3.0.1

02 Apr 18:48
703c92a
Compare
Choose a tag to compare

Testing

  • Test code with PHP 8 instead of PHP 7

Dependencies

  • Updated slevomat/coding-standard to 8.15.0
  • Updated phpunit/phpunit to 9.3.4
  • Removed pcov/clobber

v3.0.0

27 Mar 18:00
b80c18d
Compare
Choose a tag to compare

Breaking Changes

SlevomatCodingStandard.Classes.UnusedPrivateElements has been removed as the dependency removed it in favor of PHPStan.

Dependencies

  • Update slevomat/coding-standard from 6.4.1 to 7.0.20
  • Update squizlabs/php_codesniffer from 3.5.8 to 3.6.2

v2.5.0

12 Mar 02:44
Compare
Choose a tag to compare

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

16 Jun 23:07
Compare
Choose a tag to compare

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

14 Apr 03:45
Compare
Choose a tag to compare
  • 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

31 Jan 16:42
Compare
Choose a tag to compare
  • 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

08 Nov 13:25
Compare
Choose a tag to compare
  • Fix try/catch statements not being checked

v2.2.2

08 Nov 10:40
Compare
Choose a tag to compare
  • Drop including both PSR-2 and PSR-12 rulesets and just use PSR-12

v2.2.1

01 Nov 19:49
Compare
Choose a tag to compare
  • Updates squizlabs/php_codesniffer to 3.5.2

v2.2.0

17 Oct 09:52
Compare
Choose a tag to compare

Features

  • Add Squiz.Classes.ClassFileName sniff