Commit graph

341 commits

Author SHA1 Message Date
0703167315
FEATURE: Allow to overwrite cli arguments for test
* Enable overwriting using Arguments.php.
* Add multiple sub tests for AjaxRegistrationSniff.

Relates: #46
2017-04-06 15:37:55 +02:00
63d48e01fa
FEATURE: Add all remaining tests
Relates: #46
2017-04-06 14:23:32 +02:00
c8166df601
WIP|FEATURE: Allow scrutinizer to run tests
* Install standard to enable sniffs to run.

Relates: #46
2017-04-06 13:02:30 +02:00
f9ad7070a5
TASK: Add mapping for tests
Relates: #46
2017-04-06 12:48:43 +02:00
58bda24360
WIP|FEATURE: Integrate tests into scrutinizer
Relates: #46
2017-04-06 12:42:37 +02:00
bfda1cfec4
FEATURE: Add further test
Relates: #46
2017-04-06 12:42:17 +02:00
03f321c865
FEATURE: Add tests and fix issues
* Add test for IsACallSniff.
* Fix doublicate finds in IsACallSniff and
  InstantiationWithObjectManagerSniff.
* Both didn't stop looking for class at end of expression.

Relates: #46
2017-04-06 12:35:44 +02:00
af74a5db21
FEATURE: Add further tests
Relates: #46
2017-04-06 12:11:31 +02:00
d7911cccee
BUGFIX: Keep line ending for inline comments
* As test showed, line ending was removed for inline comments "//".
* This line ending is now kept.
* Test does not fail anymore.

Relates: #46, #3
2017-04-06 11:57:00 +02:00
a78d94ab13
WIP|FEATURE: Add further tests
* Add new tests and improve existing

Relates: #46
2017-04-06 11:44:15 +02:00
b23ee6ef8b
TASK: Improve tests
* Allow phpcbf / diff to be optional, as not all tests are fixable.
* Provide more information in case of error.
* Provide phpunit dist to run phpunit without anything special.

Relates: #46
2017-04-06 11:14:32 +02:00
7c35998c62
FEATURE: Also enable testing phpcbf
* Add diff to test actual fixes.

Relates: #46
2017-04-06 10:55:17 +02:00
1b309bd709
WIP|FEATURE: First working test
* Parses fixtures to auto run tests for sniffs.
* Compares actual result for fixture input against expected result from
  fixture.

Relates: #46
2017-04-06 10:39:24 +02:00
20952b7710
TASK: Refactor options access
* No longer use trait but static methods due to lack of Dependency
  Injection.
* Adjust all calls.
* Also don't use yield any longer but return array of file names.

Relates: #42
2017-04-06 09:12:43 +02:00
b99438fff9
TASK: Refactor remove duplicate logic
* Make option trait cleaner, remove duplicate logic and use methods for
  same logic.
* Also fix issue in readme pointing to non existing config name.

Relates: #42
2017-04-06 08:26:13 +02:00
3ceffb1680 Merge pull request #53 from DanielSiepmann/feature/38-add-typoscript-tokenizer
Feature/38 add typoscript tokenizer
2017-04-06 08:17:10 +02:00
0e5d74b51d
Merge remote-tracking branch 'origin/develop' into feature/38-add-typoscript-tokenizer 2017-04-06 08:10:21 +02:00
Daniel Hürtgen
da0adb7d5e Merge pull request #52 from DanielSiepmann/feature/49-deprecated-use-statements
FEATURE: Migrate legacy class names in use statements
2017-04-04 16:39:39 +02:00
Daniel Hürtgen
22c2f4cb1c Merge pull request #51 from DanielSiepmann/hotfix/48-multiple-type-hints
BUGFIX: Allow multiple type hints in php docs
2017-04-04 16:36:47 +02:00
Daniel Hürtgen
b2960ac63b Merge pull request #47 from DanielSiepmann/feature/33-deprecated-handling
Feature/33 deprecated handling
2017-04-04 16:19:56 +02:00
300e3511be
TASK: Remove example sniff
* As this is just an example and we want to have a clean state.
* Also cleanup imported interface which is not in use anymore.
2017-04-04 14:48:10 +02:00
2e115bb3f7
FEATURE: Migrate legacy class names in use statements
Resolves: #49
2017-04-04 14:39:31 +02:00
55bdb39fa5
WIP|FEATURE: Integrate TypoScript
* Provide tokens for TypoScript.
* Provide first basic example of a working sniff.

Relates: #38
2017-04-04 13:31:39 +02:00
4a7ffaa92d
TASK: Update documentation
* Add new feature to docs.

Resolves: #42
2017-04-04 10:59:46 +02:00
f3e708f5e0
BUGFIX: Allow multiple type hints in php docs
* Respect possible separation by "|" and handle each of them.

Resolves: #48
2017-04-04 10:57:42 +02:00
818f266b9e
TASK: Cleanup some comments 2017-04-04 10:27:04 +02:00
99840b080f
FEATURE: Finish refactoring
* Removed functions and constants are working now.

Relates: #42
2017-04-04 10:21:16 +02:00
1a081900b2
WIP|FEATURE: Add removed constants
* Add configuration.
* Refactor common base for functions and constants.
* Add constants handling.

Relates: #42
2017-04-04 09:59:28 +02:00
b5e7e15683 Merge branch 'feature/33-deprecated-handling' into feature/42-deprecated-constants 2017-04-04 08:41:02 +02:00
034ab57a34
TASK: Skip unnecessary function call 2017-04-04 08:39:09 +02:00
830584fa87
TASK: Improve docs 2017-04-04 08:37:01 +02:00
9c6085642e
BUGFIX: Respect double quotes for ajax deprecation
Relates: #33
2017-04-04 08:36:57 +02:00
Daniel Hürtgen
aa8ffab3fa TASK: Rename removed function method 2017-03-30 17:02:36 +02:00
Daniel Hürtgen
2d33832a79 Merge pull request #39 from DanielSiepmann/feature/36-namespace-migration
Feature/36 namespace migration
2017-03-30 16:11:23 +02:00
56d692bac7
TASK: Add missing docs
* Add docs for new feature.

Relates: #33
2017-03-30 13:18:44 +02:00
a4f4fd1ad7
WIP|TASK: Copy and paste function code
* Refactor afterwards

Relates: #42
2017-03-30 13:13:19 +02:00
125c4280d6
WIP|FEATURE: Try to add tokenizer
* First try to add tokenizer to code sniffer

Relates: #38
2017-03-30 13:02:47 +02:00
1c4fce2315
TASK: Adjust for CGL 2017-03-30 11:21:03 +02:00
93c0cff635
TASK: Rename deprecated to removed for functions
* As we check removed functions, the folder and code should reflect
  that.

Relates: #33
2017-03-30 11:08:42 +02:00
21b7c09416
FEATURE: Add removed functions for TYPO3 7.x.
* Adjust structure of deprecated functions yaml.
* Add version of removal to message for removed functions.

Relates: #33
2017-03-30 11:03:30 +02:00
4c162af3d4
TASK: Finish 7.0 breaking changes 2017-03-30 08:08:41 +02:00
81fc7f7608
WIP|FEATURE: Add further deprecated calls
* Configure further deprecated calls for TYPO3 7.0
* Remove todo as it's already done.

Relates: #33
2017-03-28 16:41:15 +02:00
b652137e96
FEATURE: Provide code to handle deprecated method calls
* Add parsing of YAML-files.
* Check matching deprecated calls.
* Provide necessary information for PHPCS and user.

Relates: #33
2017-03-28 15:29:26 +02:00
cd434ac639
WIP|FEATURE: Provide configuration files for deprecated functions
* To provide a way to adjust deprecations without touching standard.
* Provide an option defining the path to lookup the configuration files.
* Parse yaml files containing deprecations.

Relates: #33
2017-03-28 12:52:14 +02:00
0ee10ea61f
BUGFIX: Allow deprecations to work in vim too.
* Remove line breaks from output, as syntastic will not parse them.
* It's up to the report to format the messages, not the Sniff.

Relates: #33
2017-03-28 11:44:06 +02:00
65773c88b5
WIP|FEATURE: Provide first deprecation function sniff
* Use a single generic sniff with configuration.

Relates: #33
2017-03-28 10:57:35 +02:00
2118d86879
WIP|FEATURE: First working check for deprecated functions
* Provide a generic sniff with configuration (property) containing all
  deprecated calls.
* Check function calls and provide warning with information.

Relates: #33
2017-03-28 10:31:30 +02:00
293a6570a8
FEATURE: Add sniff to check for Breaking: #69916
Relates: #33
2017-03-28 09:27:42 +02:00
3cc85feec7
TASK: Extend readme 2017-03-28 08:48:43 +02:00
69de131a4c
TASK: Improve readme 2017-03-28 08:40:19 +02:00