45 Commits

Author SHA1 Message Date
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
59c5a5e5ba
[NodeRepository] Merge function like finder to NodeRepository (#4186)
Co-authored-by: rector-bot <tomas@getrector.org>
2020-09-11 00:09:05 +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
Tom Pavelec
36b24b2bfc
fix: swapped naming of camel and pascal cases (#4047) 2020-08-28 18:07:15 +02:00
Tomas Votruba
8784a81ff7
[Fluent] Add factory case (#3950) 2020-08-12 20:24:52 +02: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
Tomas Votruba
2bd1eac705
use dev nette deps to resolve form/application types (#3879) 2020-08-03 08:51:44 +00:00
Tomas Votruba
39ec802963
[NetteCodeQuality] Fix unset, on purpose (#3877) 2020-08-02 19:54:15 +02:00
Tomas Votruba
552b97d90e
add param type test case (#3876) 2020-08-02 16:58:56 +00:00
Tomas Votruba
e7429d96a4
make use of constant (#3875) 2020-08-02 13:17:33 +00:00
Tomas Votruba
b99a3cbdb2
add case with type form (#3874) 2020-08-02 12:58:14 +00:00
Tomas Votruba
bb6a53fef0
[NetteCodeQuality] Skip isset on form input + multiplier check (#3872) 2020-08-02 12:57:05 +02:00
Tomas Votruba
ee957111c4
fix import slash (#3871) 2020-08-02 10:04:46 +00:00
Tomas Votruba
91bda1b75b
[NetteCodeQuality] Get component (#3870) 2020-08-02 11:39:52 +02:00
Tomas Votruba
6186cdeab7
skip form (#3869) 2020-08-02 01:24:58 +02:00
Tomas Votruba
62ac58e60d
add failing test case + add support for previous assign type dim fetch (#3868) 2020-08-02 00:57:35 +02:00
Tomas Votruba
fa2caf77ed
[NetteCodeQuality] Add ArrayAccessSetControlToAddComponentMethodCallRector (#3867) 2020-08-02 00:18:40 +02:00
Tomas Votruba
55acb3578a
[MagicDisclosure] Add SetterOnSetterMethodCallToStandaloneAssignRector (#3860)
* [MagicDisclosure] Add MethodCallOnSetterMethodCallToStandaloneAssignRector

* merge ChainMethodCallManipulator to ChainMethodCallNodeAnalyzer for better DX

* [MagicDisclosure] Add in arg defluent

* rebase
2020-08-01 11:41:16 +00:00
TomasVotruba
1c2045e710 add assign to root stmt to prevent non-existing variable 2020-07-30 23:33:13 +02:00
TomasVotruba
fd6f905651 cover parent createComponent() too 2020-07-30 23:00:55 +02:00
TomasVotruba
b9fd318ac2 skip on method call 2020-07-30 22:16:38 +02:00
TomasVotruba
bdb7256626 [Nette] Add ArrayDimFetchControlToGetComponentMethodCallRector 2020-07-30 22:11:52 +02:00
TomasVotruba
9f51a32d36 [Nette] Rename follow up variables too 2020-07-30 20:29:09 +02:00
TomasVotruba
2da8e94ef1 [Nette] Skip nested control access to /ChangeControlArrayAccessToAnnotatedControlVariableRector 2020-07-30 17:57:22 +02:00
TomasVotruba
747f3cd45c addJSelect to form options 2020-07-29 11:06:47 +02:00
TomasVotruba
9488eb5d07 add debug notes 2020-07-29 03:39:48 +02:00
dobryy
dd9eda12c6 Apply rule 2020-07-27 16:39:34 +02:00
TomasVotruba
9e7c30cef3 fix create component method name 2020-07-27 14:44:23 +02:00
TomasVotruba
955f7a7e76 refactor arra dim fetch to exclusive rules 2020-07-27 13:18:18 +02:00
TomasVotruba
e647b8f003 decopule PropertyDocBlockManipulator 2020-07-27 12:56:13 +02:00
TomasVotruba
99db894192 restore types 2020-07-27 10:44:51 +02:00
TomasVotruba
42decbb0c5 add nested callback case 2020-07-27 07:27:17 +02:00
TomasVotruba
63c515a834 [Nette] Load data from __construct of same class 2020-07-27 02:07:36 +02:00
TomasVotruba
16e3745eac decopule AbstractArrayDimFetchToAnnotatedControlVariableRector 2020-07-27 01:30:16 +02:00
TomasVotruba
f2e6968396 prevent duplicated form assign adding 2020-07-27 01:17:17 +02:00
TomasVotruba
d6624f343e add duplicated assign case 2020-07-27 01:10:39 +02:00
TomasVotruba
496934818a [Nette] skip non contorl adding add methods 2020-07-27 00:25:03 +02:00
TomasVotruba
b377b73ad4 decouple NetteFormMethodNameToControlType value object 2020-07-27 00:04:53 +02:00
TomasVotruba
0c64e0a3ab add skip assign expr 2020-07-26 22:37:47 +02:00
TomasVotruba
66a3ecd8d9 make adding unique per variable name 2020-07-26 22:14:27 +02:00
TomasVotruba
90c789e38b add switch test case 2020-07-26 22:14:27 +02:00
TomasVotruba
86d8666438 [Nette] move quality rules to nette-code-quality directory 2020-07-26 18:48:18 +02:00
TomasVotruba
a8a6e7bcad rename file to fileInfo 2020-06-30 01:45:05 +02:00
TomasVotruba
7f49658112 change test(string ) to test(SmartFileInfo ) in tests 2020-06-25 20:02:36 +02:00
TomasVotruba
fa0d8d238c [NetteCodeQuality] Add MoveInjectToExistingConstructorRector 2020-06-24 22:19:10 +02:00