Skip to content

Commit 613e57a

Browse files
committed
[removal] Remove --kaizen option, as it might jump right to risky rules, use levels instead
1 parent e7381c2 commit 613e57a

25 files changed

Lines changed: 21 additions & 334 deletions

File tree

.github/workflows/e2e.yaml

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ jobs:
3838
- 'e2e/only-option-quote-single-bsdouble'
3939
- 'e2e/only-option-quote-single-equalnone'
4040
- 'e2e/parallel-custom-config'
41-
- 'e2e/parallel-kaizen-applied-rules'
4241
- 'e2e/parallel-reflection-resolver'
4342
- 'e2e/parallel with space'
4443
- 'e2e/print-new-node'
@@ -71,10 +70,6 @@ jobs:
7170
working-directory: ${{ matrix.directory }}
7271
if: ${{ matrix.directory == 'e2e/parallel-custom-config' }}
7372

74-
- run: php ../e2eTestRunner.php --kaizen 1
75-
working-directory: ${{ matrix.directory }}
76-
if: ${{ matrix.directory == 'e2e/parallel-kaizen-applied-rules' }}
77-
7873
- run: php ../e2eTestRunner.php
7974
working-directory: ${{ matrix.directory }}
80-
if: ${{ matrix.directory != 'e2e/parallel-custom-config' && matrix.directory != 'e2e/parallel-kaizen-applied-rules' }}
75+
if: ${{ matrix.directory != 'e2e/parallel-custom-config' }}

.github/workflows/e2e_command_with_option.yaml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -40,23 +40,23 @@ jobs:
4040
php ../../bin/rector help
4141
4242
# with explicit "process" command
43-
../../bin/rector process --kaizen 1 --dry-run
44-
../../bin/rector process --kaizen=1 --dry-run
45-
php ../../bin/rector process --kaizen 1 --dry-run
46-
php ../../bin/rector process --kaizen=1 --dry-run
47-
../../bin/rector process some_file.php --kaizen 1
48-
../../bin/rector process some_file.php --kaizen=1
49-
php ../../bin/rector process some_file.php --kaizen 1
50-
php ../../bin/rector process some_file.php --kaizen=1
43+
../../bin/rector process --output-format 1 --dry-run
44+
../../bin/rector process --output-format=1 --dry-run
45+
php ../../bin/rector process --output-format 1 --dry-run
46+
php ../../bin/rector process --output-format=1 --dry-run
47+
../../bin/rector process some_file.php --output-format 1
48+
../../bin/rector process some_file.php --output-format=1
49+
php ../../bin/rector process some_file.php --output-format 1
50+
php ../../bin/rector process some_file.php --output-format=1
5151
5252
# with implicit process command
53-
../../bin/rector --kaizen 1 --dry-run
54-
../../bin/rector --kaizen=1 --dry-run
55-
php ../../bin/rector --kaizen 1 --dry-run
56-
php ../../bin/rector --kaizen=1 --dry-run
57-
58-
../../bin/rector some_file.php --kaizen 1
59-
../../bin/rector some_file.php --kaizen=1
60-
php ../../bin/rector some_file.php --kaizen 1
61-
php ../../bin/rector some_file.php --kaizen=1
53+
../../bin/rector --output-format 1 --dry-run
54+
../../bin/rector --output-format=1 --dry-run
55+
php ../../bin/rector --output-format 1 --dry-run
56+
php ../../bin/rector --output-format=1 --dry-run
57+
58+
../../bin/rector some_file.php --output-format 1
59+
../../bin/rector some_file.php --output-format=1
60+
php ../../bin/rector some_file.php --output-format 1
61+
php ../../bin/rector some_file.php --output-format=1
6262

e2e/e2eTestRunner.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@
3232
$e2eCommand .= ' -a ' . $argv[2];
3333
}
3434

35-
if (isset($argv[1]) && $argv[1] === '--kaizen') {
36-
$e2eCommand .= ' --kaizen ' . $argv[2];
37-
}
38-
3935
$cliOptions = 'cli-options.txt';
4036
if (file_exists($cliOptions)) {
4137
$e2eCommand .= ' ' . trim((string) file_get_contents($cliOptions));

e2e/parallel-kaizen-applied-rules/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

e2e/parallel-kaizen-applied-rules/composer.json

Lines changed: 0 additions & 5 deletions
This file was deleted.

e2e/parallel-kaizen-applied-rules/expected-output.diff

Lines changed: 0 additions & 36 deletions
This file was deleted.

e2e/parallel-kaizen-applied-rules/rector.php

Lines changed: 0 additions & 23 deletions
This file was deleted.

e2e/parallel-kaizen-applied-rules/src/File1.php

Lines changed: 0 additions & 10 deletions
This file was deleted.

e2e/parallel-kaizen-applied-rules/src/File2.php

Lines changed: 0 additions & 12 deletions
This file was deleted.

e2e/parallel-kaizen-applied-rules/src/File3.php

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)