Tomas Votruba
2030badc19
[PHP 8.0] Add nette utils strings replace, static fixes ( #4741 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-12-01 14:52:24 +01:00
Tomas Votruba
080e5cbe00
use symplify/skipper ( #4689 )
2020-11-26 23:09:21 +01:00
Tomas Votruba
9e49fe97fe
[PSR-4] autoprefix on namespace add ( #4653 )
...
* check
* prepare prefix-name case
* [PSR-4] Fqnize names without name importing
* fixup! [PSR-4] Fqnize names without name importing
* static fixes
* [ci-review] Rector Rectify
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-18 21:25:59 +00:00
Tomas Votruba
c71c73340d
[PSR-4] fix case of missing namespace ( #4651 )
2020-11-18 21:37:17 +01:00
Tomas Votruba
a7705ed0a5
[Symplify 9] First update + switch to RuleDocGenerator ( #4616 )
...
* [composer] bump to Symplify 9
* [Symplify 9] Update phpstan rules
* bump to Symplify 9 BETA2
* update AbstractKernel from Tests to Testing namespace
* decoupling removing node trait
* remove fluent calls
* removing variadic
* [CodingStyle] Improve AnnotateThrowablesRector
* bump deps
* Make use of RuleDocGenerator
* first short
* [DocumentationGenerator] Drop deprecated package, RuleSetGenerator now handles it
* import namespace
* update docs
2020-11-16 17:50:38 +00:00
Tomas Votruba
297ec316af
move suffix filesystem 3 ( #4540 )
2020-11-01 21:31:13 +01:00
Tomas Votruba
c03b66f7cd
move suffix filesystem 2 ( #4529 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-11-01 16:39:04 +01:00
Tomas Votruba
8542a3bcbc
Move from Filesystem rules to FileNode ( #4528 )
...
* make MoveServicesBySuffixToDirectoryRector with non-filesystem rector
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* [ci-review] Rector Rectify
* [ci-review] Apply coding standards
* fixup! make MoveServicesBySuffixToDirectoryRector with non-filesystem rector
Co-authored-by: rector-bot <tomas@getrector.org>
2020-10-31 21:39:09 +00:00
Tomas Votruba
0513315056
Change file system approach of MultipleClassFileToPsr4ClassesRector to file without namespace node ( #4522 )
...
* Change file system approach of MultipleClassFileToPsr4ClassesRector to file without namespace node
* update DecoupleClassMethodToOwnClassRector
* [ci] add rebase jobp
* disable fail fast for unit tests
* misc
2020-10-31 12:59:40 +00:00
Abdul Malik Ikhsan
9e0b632e4e
[CodeQualityStrict] Add CountArrayToEmptyArrayComparisonRector to CodeQualityStrict ( #4496 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
Co-authored-by: Tomas Votruba <tomas.vot@gmail.com>
2020-10-29 09:59:39 +01:00
Tomas Votruba
01514ab9a8
[SimplePhpDocParser] Add README + getParam*() helper methods ( #4393 )
2020-10-11 16:17:43 +02:00
Tomas Votruba
e47a806300
Remove AbstractFileSystemRector and move to AbstractRector ( #4378 )
2020-10-09 21:51:09 +02:00
Tomas Votruba
5cb49a2d5a
[PSR-4] Move from FileSystemRector to FileWithoutNamespace node ( #4372 )
2020-10-08 23:28:24 +02:00
Tomas Votruba
7a5cf0ed5a
[PSR-4] Fix declare for NormalizeNamespaceByPSR4ComposerAutoloadFileSystemRector ( #4332 )
2020-09-29 21:16:47 +00:00
Tomas Votruba
1950ab5abd
phpstan fixes ( #4224 )
2020-09-15 11:16:43 +02:00
Igor
f2ecdeb0b1
[Naming] Foreach over "data", renames to "datum" ( #4221 )
...
Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-15 10:23:13 +02:00
Tomas Votruba
7ac228c638
[CI] Add type-declaration set ( #4089 )
...
* [CI] Add type-declaration set
* [rector] [CI] Add type-declaration set
* [cs] [CI] Add type-declaration set
* skip nullable void
* add anonymous parent/interface support
* refactor MultiExceptionCatchRector to use Catch_ over integers
* type fixes
* fix unoin array type override
* remove unused test cases
* drop overcomplicated InlineValidationRulesToArrayDefinitionRector
* skip assign on var
* [rector] skip assign on var
* [cs] skip assign on var
* [rector] [cs] skip assign on var
* skip assign on var
* fixes
* [rector] fixes
* [cs] fixes
Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-01 17:56:30 +00:00
Tomas Votruba
1c4b510513
PHPStan: require iterable types ( #3936 )
...
* phpstan: require iterable types
* add link on relative path and line
* fix missing class type
* typed array in Rector code + add data provide support resolver
* remove duplicated set
* drop unused yaml ecs config
* add out-of-the-box directory for 3rd party packages
* static fixes
* [rector] static fixes
* [cs] static fixes
* [rector] [cs] static fixes
* generic types
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-11 10:59:04 +00:00
dobryy
411d76f9a9
[Order] Make OrderPrivateMethodsByUseRector process file in one run u… ( #3889 )
...
* [Order] Make OrderPrivateMethodsByUseRector process file in one run using while loop
* [Order] Enable rule in CI
* [rector] [Order] Enable rule in CI
* [cs] [Order] Enable rule in CI
* [Order] Use constant for number of max attempts and throw exception when exceeded.
* [rector] [Order] Use constant for number of max attempts and throw exception when exceeded.
* [cs] [Order] Use constant for number of max attempts and throw exception when exceeded.
Co-authored-by: rector-bot <tomas@getrector.org>
2020-08-05 22:45:36 +02:00
TomasVotruba
99db894192
restore types
2020-07-27 10:44:51 +02:00
TomasVotruba
7ed4cb19c4
simplify config globs
2020-07-25 20:14:28 +02:00
TomasVotruba
0188d802d2
use SmartFileSystem over Nette FileSystem
2020-07-24 14:39:10 +02:00
TomasVotruba
3a9375007e
decouple Set package
2020-07-21 01:39:24 +02:00
TomasVotruba
c1e1053d1c
correct names manually back to desired state
2020-07-19 21:32:18 +02:00
TomasVotruba
c2c1066374
[rector] apply on rules
2020-07-19 20:52:42 +02:00
TomasVotruba
0944b75f7e
correct namespace in configs
2020-07-18 11:58:17 +02:00
TomasVotruba
0c816d60f8
[config] switch rules config from YAML to PHP
2020-07-16 12:48:54 +02:00
TomasVotruba
0cb82c2a6f
apply new Naming_
2020-06-30 00:57:38 +02:00
TomasVotruba
7f49658112
change test(string ) to test(SmartFileInfo ) in tests
2020-06-25 20:02:36 +02:00
TomasVotruba
baee588461
add rename neon/yaml file content case
2020-06-21 19:03:39 +02:00
TomasVotruba
c0cc31aa7e
fix php parser factory name
2020-06-21 13:47:24 +02:00
TomasVotruba
fac932a8bd
cleanup
2020-06-21 11:46:52 +02:00
TomasVotruba
379aa80679
cleanup AbstractFileSystemRector
2020-06-21 11:34:08 +02:00
TomasVotruba
ff4c3cc8ce
decopule NodesWithFileDestinationPrinter
2020-06-21 02:31:27 +02:00
TomasVotruba
14a72f15d8
remove MoveAndRenameNamespaceRector, not tested and not working, prefer class rename
2020-06-18 22:34:25 +02:00
TomasVotruba
b5f0129c84
complete missing code samples
2020-06-16 16:20:17 +02:00
TomasVotruba
aff10cf014
[Autodiscovery] Do not nest already correct name
2020-06-10 19:59:15 +02:00
TomasVotruba
8a28581ce1
[PSR-4] Add NormalizeNamespaceByPSR4ComposerAutoloadFileSystemRector
2020-05-14 01:42:17 +02:00
rector-bot
aa5b5d2ed6
fixup! [PSR-4] Add test for NormalizeNamespaceByPSR4ComposerAutoloadRector
2020-05-13 22:38:09 +00:00
TomasVotruba
ffeb6c9f53
[PSR-4] Add test for NormalizeNamespaceByPSR4ComposerAutoloadRector
2020-05-14 00:35:00 +02:00
TomasVotruba
e81044fd3b
decouple ClassRenamer
2020-05-11 18:08:13 +02:00
TomasVotruba
db7248135a
add multi-paths support
2020-05-10 22:33:39 +02:00
TomasVotruba
f63e4424b8
move MultipleClassFileToPsr4ClassesRector to PSR4
2020-05-10 00:54:56 +02:00
TomasVotruba
a952cac41c
complete @see annotation, minor improvements
2020-05-03 16:07:56 +02:00
TomasVotruba
c64a71ecad
phsptan fixes
2020-04-25 16:45:36 +02:00
TomasVotruba
1ecd30818a
remove unused print method
2020-04-20 09:45:15 +02:00
TomasVotruba
bc5eefdb76
improve AddSeeTestAnnotationRector
2020-02-11 14:40:59 +01:00
TomasVotruba
3e5dd77bb6
move Rector-rule based packages from /packages to /rules
2020-02-11 13:41:37 +01:00