Skip to content

Commit 1b33a8c

Browse files
authored
Remove DocBlockLineLengthFixer, as not used and often breaking, better handle manually (#24)
1 parent a39a1ac commit 1b33a8c

18 files changed

+7
-687
lines changed

README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ composer require symplify/easy-coding-standard --dev
1717

1818
```diff
1919
# ecs.php
20+
use Symplify\EasyCodingStandard\Config\ECSConfig;
2021
+use Symplify\EasyCodingStandard\ValueObject\Set\SetList;
2122

22-
return static function (ContainerConfigurator $containerConfigurator): void {
23-
+ $containerConfigurator->import(SetList::SYMPLIFY);
23+
return static function (ECSConfig $ecsConfig): void {
24+
+ $ecsConfig->sets([SetList::SYMPLIFY]);
2425
```
2526

2627
## Rules Overview

docs/rules_overview.md

+4-38
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 13 Rules Overview
1+
# 12 Rules Overview
22

33
## ArrayListItemNewlineFixer
44

@@ -43,42 +43,6 @@ Strict type declaration has to be followed by empty line
4343

4444
<br>
4545

46-
## DocBlockLineLengthFixer
47-
48-
Docblock lenght should fit expected width
49-
50-
:wrench: **configure it!**
51-
52-
- class: [`Symplify\CodingStandard\Fixer\LineLength\DocBlockLineLengthFixer`](../src/Fixer/LineLength/DocBlockLineLengthFixer.php)
53-
54-
```php
55-
<?php
56-
57-
declare(strict_types=1);
58-
59-
use Symplify\CodingStandard\Fixer\LineLength\DocBlockLineLengthFixer;
60-
use Symplify\EasyCodingStandard\Config\ECSConfig;
61-
62-
return static function (ECSConfig $ecsConfig): void {
63-
$ecsConfig->ruleWithConfiguration(DocBlockLineLengthFixer::class, [DocBlockLineLengthFixer::LINE_LENGTH => 40]);
64-
};
65-
```
66-
67-
68-
69-
```diff
70-
/**
71-
- * Super long doc block description
72-
+ * Super long doc
73-
+ * block description
74-
*/
75-
function some()
76-
{
77-
}
78-
```
79-
80-
<br>
81-
8246
## LineLengthFixer
8347

8448
Array items, method parameters, method call arguments, new arguments should be on same/standalone line to fit line length.
@@ -96,7 +60,9 @@ use Symplify\CodingStandard\Fixer\LineLength\LineLengthFixer;
9660
use Symplify\EasyCodingStandard\Config\ECSConfig;
9761

9862
return static function (ECSConfig $ecsConfig): void {
99-
$ecsConfig->ruleWithConfiguration(LineLengthFixer::class, [LineLengthFixer::LINE_LENGTH => 40]);
63+
$ecsConfig->ruleWithConfiguration(LineLengthFixer::class, [
64+
LineLengthFixer::LINE_LENGTH => 40,
65+
]);
10066
};
10167
```
10268

src/Fixer/LineLength/DocBlockLineLengthFixer.php

-235
This file was deleted.

src/ValueObject/DocBlockLines.php

-45
This file was deleted.

0 commit comments

Comments
 (0)