Skip to content

Commit

Permalink
[docs] Deprecate MD list and use find-rule page instead
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Aug 12, 2024
1 parent c053b97 commit 8c34543
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/code_analysis.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ jobs:
-
name: 'Active Classes'
run: vendor/bin/class-leak check config src rules
-
name: "Validate docs"
run: vendor/bin/rule-doc-generator validate src rules

name: ${{ matrix.actions.name }}
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Rector Rules for PHP Downgrade

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

## Install

Expand Down
5 changes: 1 addition & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,7 @@
"scripts": {
"phpstan": "vendor/bin/phpstan analyse --ansi --error-format symplify",
"check-cs": "vendor/bin/ecs check --ansi",
"fix-cs": "vendor/bin/ecs check --fix --ansi",
"docs": [
"vendor/bin/rule-doc-generator generate rules --output-file docs/rector_rules_overview.md --ansi"
]
"fix-cs": "vendor/bin/ecs check --fix --ansi"
},
"extra": {
"enable-patching": true
Expand Down
6 changes: 6 additions & 0 deletions docs/rector_rules_overview.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# 74 Rules Overview

**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.**

Use https://getrector.com/find-rule?query=downgrade+rules instead!

---

## ArrowFunctionToAnonymousFunctionRector

Replace arrow functions with anonymous functions
Expand Down

0 comments on commit 8c34543

Please sign in to comment.