Skip to content

Releases: NexusPHP/cs-config

Nexus CS Config v3.3.4

02 Nov 13:17
v3.3.4
aef4a96
Compare
Choose a tag to compare

Minor Changes ⚙️

  • Update to phpstan 1.0
  • Add ignored tags to phpdoc_to_comment rule

Please refer to the CHANGELOG for the detailed list of changes.

Full Changelog: v3.3.3...v3.3.4

Nexus CS Config v3.3.3

06 Oct 06:28
v3.3.3
cb1d768
Compare
Choose a tag to compare

Minor Changes ⚙️

  • Enable no_alternative_syntax rule
  • Change class attributes separation to none except for methods
  • Remove operator override for braces in Nexus80
  • Add support for new fixers added in v3.2.0
  • Remove deprecated "tokens: use_trait" option
  • Use own custom fixers
  • Fix phpstan error on v0.12.99

Please refer to the CHANGELOG for the detailed list of changes.

Full Changelog: v3.3.2...v3.3.3

Nexus CS Config v3.3.2

08 Sep 13:41
v3.3.2
0b63190
Compare
Choose a tag to compare

Fixed 🔧

  • Fix missing string substitution when FixerGenerator::create() fails

Please refer to the CHANGELOG for the detailed list of changes.

Nexus CS Config v3.3.1

31 Aug 15:01
v3.3.1
9731564
Compare
Choose a tag to compare

Fixed 🔧

  • [SpaceAfterCommentStartFixer] Fixed a case where a comment exactly as // is causing Undefined array key 1 error

Please refer to the CHANGELOG for the detailed list of changes.

Nexus CS Config v3.3.0

31 Aug 13:50
v3.3.0
1fbec8d
Compare
Choose a tag to compare

Added 🔥

  • Support for custom fixers is added. This release contains two new fixers, SpaceAfterCommentStartFixer and NoCodeSeparatorCommentFixer
  • Added FixerGenerator to easily register all custom fixers in directory

To use the custom fixers in your ruleset, you just need two (2) steps:

  1. In the $options array, add the key customFixers with the value FixerGenerator::create('path/to/fixers', 'namespace').
  2. In the same array, add the key customRules with value of array of desired rules.

For example:

 $options = [
     'finder' => $finder,
+    'customFixers' => FixerGenerator::create('src/Fixer', 'Nexus\\CsConfig\\Fixer'),
+    'customRules' => [
+        \Nexus\CsConfig\Fixer\Comment\SpaceAfterCommentStartFixer::name() => true,
+        \Nexus\CsConfig\Fixer\Comment\NoCodeSeparatorCommentFixer::name() => true,
+    ],
 ];

Stay tuned for more custom fixers in future releases.

Changed ⚙️

  • Bump friendsofphp/php-cs-fixer version to v3.1.0 River to use latest fixers

Please refer to the CHANGELOG for the detailed list of changes.

Nexus CS Config v3.2.2

07 Aug 15:27
v3.2.2
7271b77
Compare
Choose a tag to compare

Minor Changes ⚙️

  • Add support for trait_import in class_attributes_separation

Please refer to the CHANGELOG for the detailed list of changes.

Nexus CS Config v3.2.1

07 Jul 17:02
v3.2.1
e472d22
Compare
Choose a tag to compare

This is a patch release, with many internal changes. Upgrading to this version is safe UNLESS you are using the internal rulesets for yourself.

Bug Fix 🐛

  • Fix for AbstractRulesetTestCase when configurable fixer is not yet defined by the ruleset.

Internal Changes 🔧

  • Forbid running PHPStan on PHP8.1 (for now)
  • Standardize phpunit.xml.dist structure.
  • Remove include/require from statements requiring blank line before.
  • [Nexus80] Enable void_return fixer
  • Limit excluded annotations to @final and @no-final only
  • [Nexus80] Enable final_public_method_for_abstract_class
  • [Nexus80] Enable phpdoc_to_param_type and phpdoc_to_return_type
  • Remove @test annotations from tests
  • Disable php_unit_test_class_requires_covers. Let PHPUnit do the job instead.

Please refer to the CHANGELOG for the detailed list of changes.

Nexus CS Config v3.2.0

19 Jun 16:02
v3.2.0
b130732
Compare
Choose a tag to compare

⚠️ POSSIBLE BC BREAK

  • Libraries using the AbstractRulesetTestCase in testing their rulesets may face build errors since the test case has been refactored to be explicit on the options of fixers if these were configurable. Previously, setting to true (to get the default configuration) is enough.

Please refer to the CHANGELOG for the detailed list of changes.

Nexus CS Config v3.1.1

01 Jun 15:57
v3.1.1
04c3c77
Compare
Choose a tag to compare

Please refer to the CHANGELOG for the detailed list of changes.

Nexus CS Config v3.1.0

01 Jun 11:14
v3.1.0
c95d8ba
Compare
Choose a tag to compare

Please refer to the CHANGELOG for the detailed list of changes.