Skip to content

Releases: woohoolabs/coding-standard

2.4.0

13 Aug 14:33
2.4.0
1e42bff
Compare
Choose a tag to compare

CHANGED:

  • Use slevomat/coding-standard v8
  • Updated dependencies

2.3.0

07 Jun 07:31
2.3.0
765deff
Compare
Choose a tag to compare

CHANGED:

  • Allow to install slevomat/coding-standard v7

REMOVED:

  • SlevomatCodingStandard.Classes.UnusedPrivateElements rule

2.2.0

21 Jul 21:16
2.2.0
a78e3bb
Compare
Choose a tag to compare

ADDED:

  • Support for PHP 8.0

CHANGED:

  • Increased minimum version requirement of slevomat/coding-standard to v6

2.1.1

04 Oct 12:28
2.1.1
96218a1
Compare
Choose a tag to compare

FIXED:

  • SlevomatCodingStandard.Namespaces.UseSpacing.IncorrectLinesCountBetweenDifferentTypeOfUse was configured in a way which prevented PSR-12 conformance

2.1.0

04 Oct 12:01
2.1.0
bffd98e
Compare
Choose a tag to compare

CHANGED:

  • Require PHP CodeSniffer 3.5.0 at least

FIXED:

  • SlevomatCodingStandard.TypeHints.DeclareStrictTypes was configured in a way which prevented PSR-12 conformance

REMOVED:

  • SlevomatCodingStandard.TypeHints.DeclareStrictTypes became unnecessary

2.0.1

22 Aug 19:50
2.0.1
e82f6ad
Compare
Choose a tag to compare

REMOVED:

  • Check to forbid usage of conditions when a simple return can be used
  • Check to require types to be written as natively if possible
  • Check to force rules for function phpDoc

2.0.0

22 Aug 13:14
2.0.0
41481aa
Compare
Choose a tag to compare

ADDED:

  • Check to forbid duplicate class names
  • Check to forbid inline HTML in PHP code
  • Check to forbid alias functions
  • Check to forbid Late Static Binding of constants
  • Check to forbid dead code
  • Check to specific order of phpDoc annotations with empty newline between groups
  • Check to forbid useless comments
  • Check to require comments with single line written as one-liners
  • Check to forbid assignments in conditions
  • Check to require consistent spacing for control structures
  • Check to forbid usage of conditions when a simple return can be used
  • Check to forbid usage of boolean-only ternary operator usage
  • Check to forbid useless unreachable catch blocks
  • Check to require closures not referencing $this be static
  • Check to require newlines around namespace declaration
  • Check to require only one namespace declaration in a file
  • Check to forbid useless alias for classes, constants and functions
  • Check to require no spacing after spread operator
  • Check to forbid argument unpacking for functions specialized by PHP VM
  • Check to forbid useless semicolon
  • Check to require types to be written as natively if possible
  • Check to forbid useless @var for constants
  • Check to forbid duplicated variables assignments
  • Check to forbid useless variables
  • Check to force rules for function phpDoc
  • Check to forbid global functions
  • Check to forbid functions inside functions
  • Check to forbid superfluous whitespaces

CHANGED:

  • Increased minimum PHP version requirement to 7.4

1.1.2

22 Aug 13:14
1.1.2
39a0585
Compare
Choose a tag to compare

REMOVED:

  • Check for early exit

1.1.1

22 Aug 13:14
1.1.1
b2011fb
Compare
Choose a tag to compare

FIXED:

  • DisallowEqualOperatorsSniff was moved to another namespace

1.1.0

07 Feb 08:21
1.1.0
c510099
Compare
Choose a tag to compare

ADDED:

  • Check for spread operator spacing
  • Check for useless else/elseif conditions