Skip to content

Commit 8c34543

Browse files
committed
[docs] Deprecate MD list and use find-rule page instead
1 parent c053b97 commit 8c34543

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

.github/workflows/code_analysis.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
-
2020
name: 'Active Classes'
2121
run: vendor/bin/class-leak check config src rules
22+
-
23+
name: "Validate docs"
24+
run: vendor/bin/rule-doc-generator validate src rules
2225

2326
name: ${{ matrix.actions.name }}
2427
runs-on: ubuntu-latest

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Rector Rules for PHP Downgrade
22

3-
See available [Downgrade rules](/docs/rector_rules_overview.md)
3+
See available [Downgrade rules](https://getrector.com/find-rule?query=downgrade+rules)
44

55
## Install
66

composer.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@
3535
"scripts": {
3636
"phpstan": "vendor/bin/phpstan analyse --ansi --error-format symplify",
3737
"check-cs": "vendor/bin/ecs check --ansi",
38-
"fix-cs": "vendor/bin/ecs check --fix --ansi",
39-
"docs": [
40-
"vendor/bin/rule-doc-generator generate rules --output-file docs/rector_rules_overview.md --ansi"
41-
]
38+
"fix-cs": "vendor/bin/ecs check --fix --ansi"
4239
},
4340
"extra": {
4441
"enable-patching": true

docs/rector_rules_overview.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# 74 Rules Overview
22

3+
**This overview is deprecated and replaced by more advanced web search. There you can search and filter by nodes, copy-paste configs for configurable rules and more.**
4+
5+
Use https://getrector.com/find-rule?query=downgrade+rules instead!
6+
7+
---
8+
39
## ArrowFunctionToAnonymousFunctionRector
410

511
Replace arrow functions with anonymous functions

0 commit comments

Comments
 (0)