Skip to content

Releases: NexusPHP/cs-config

Nexus CS Config v3.6.0

02 Sep 03:03
v3.6.0
59546a3
Compare
Choose a tag to compare

Changes ⚙️

  • Add new option to phpdoc_separation
  • Remove deprecated rules
  • Configure no_trailing_comma_in_singleline
  • Bump php-cs-fixer to ^3.11
  • Configure whitespace_after_comma_in_array
  • Use available option of phpdoc_order
  • Configure no_multiple_statements_per_line rule
  • Bump php-cs-fixer to v3.10
  • Fix PHPStan error

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

Nexus CS Config v3.5.0

11 Jul 12:46
v3.5.0
8c455a9
Compare
Choose a tag to compare

Changes ⚙️

  • Change 'concat_space' to none
  • Configure new rules in v3.9.1
  • [BC BREAK] Drop Nexus73 ruleset
  • Suppress missing iterable value type hints
  • Remove use of deprecated rule
  • Deprecate Nexus/space_after_comment_start
  • Configure new rules in v3.8

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

Nexus CS Config v3.4.0

09 Feb 13:54
v3.4.0
5ed4f47
Compare
Choose a tag to compare

Changes ⚙️

  • Fix code style lint
  • Add Nexus81 ruleset
  • Deprecate Nexus73 ruleset
  • Bump php-cs-fixer version to v3.6
  • Bump php version to 7.4
  • Prune build workflow
  • Revert phpstan level to 8

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

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.