Commit graph

342 commits

Author SHA1 Message Date
61c4a7b9eb
TASK: Migrate configuration fixture
* As old globals are not used anymore, we use the API to use our fixture
  file to be returned for tests.

Relates: #82
2017-06-01 08:20:19 +02:00
f8afc920a4
TASK: Migrate code base and tests
* Use namespace in configuration, as classes are now namespaced.
* Also use namespace in code for referenced to own sniffs.
* Do not use identifiers with further dots as this is no longer
  supported, use ":" instead.

Relates: #82
2017-05-30 15:42:21 +02:00
ded389aeca
TASK: Update PHP CS
* Use hash, not version, as version contains bug that not a single
  custom sniff can be executed. That would break our tests.
* Also add auto loading for tests to work, as phpcs removed autoloading
  support for composer.
* Move all sniffs to namespace to allow processing through phpcs.
* Adjust already some class names of phpcs to new conventions.

Relates: #82
2017-05-30 14:47:46 +02:00
Daniel Hürtgen
0c91d7b22c Merge branch 'feature/15-check-all-possible-occurences-of-class' into 'develop'
FEATURE: Detect classes in strings

Closes #15 and #43

See merge request !84
2017-05-16 15:32:55 +02:00
Daniel Hürtgen
6be0de28d3 Update StringSniff.php 2017-05-16 15:05:54 +02:00
Daniel Hürtgen
ec7a4634c9 Merge branch 'hotfix/allow-phpdoc-to-substitute-all-classnames' into 'develop'
BUGFIX: Allow PhpDocCommentSniff to work find all classnames in comment

See merge request !92
2017-05-16 14:44:56 +02:00
Daniel Hürtgen
8d93512b20 Merge branch 'feature/improve-namespaces' into 'develop'
FEATURE: Improve namespace migration

See merge request !91
2017-05-16 14:42:46 +02:00
Daniel Hürtgen
5aac278ba9 Merge branch 'feature/66-ts-structure' into 'develop'
FEATURE: Add FQObjectIdentifier to TypoScript tokens

Closes #66

See merge request !83
2017-05-16 14:39:57 +02:00
Daniel Hürtgen
7c6fe7e83c Merge branch 'feature/45-removed-signals' into 'develop'
FEATURE: Removed signals and hooks

Closes #45

See merge request !86
2017-05-16 14:34:04 +02:00
Daniel Hürtgen
c8f6917b38 TASK: CS fixes 2017-05-16 14:31:47 +02:00
Daniel Hürtgen
06a45a528a TASK: Added missing variable name in phpdoc 2017-05-16 14:28:26 +02:00
f723d9a28b
TASK: Add missing mapping 2017-05-16 10:47:26 +02:00
2d3165e8f4
BUGFIX: Also allow to fix validator classnames 2017-05-16 10:36:27 +02:00
f2910b02b2
BUGFIX: Allow PhpDocCommentSniff to work find all classnames in comment
* Before only the first classname was returned.
* All class names are returned now.
* This allows to fix Extbase type annotations for relations.
2017-05-11 11:17:46 +02:00
53d727fa4b
FEATURE: Make sure namespaces are only applied for Tx_ class definitions
* E.g. prevent migration for ux_ classes which do not follow the
  convention.
* Add test to make sure it works as expected.
2017-05-11 08:59:37 +02:00
40be6732af
FEATURE: Already save classname alias while searching
* To improve report results even during searching.
* By moving namespace mapping to search from fixing.
2017-05-11 08:58:35 +02:00
7a16dac529
FEATURE: Allow auto migration of classes in strings
* We now check class names case sensitive in strings.
* This will prevent issues with stuff like TCA, as class names mathing
  table names are written in lower case.
* Also add further tests and fix issues.
* Extend test to check that lower version is not replaced but mentioned
  as warning.
* Expected class names in Tx_ format are reported as fixable error.

Resolves: #15
2017-05-04 13:35:02 +02:00
b69c262288
TASK: Improve tests and fix issues
* Configure code coverage for new tested class.
* Fix usage of class with new insensitivity lookup.
* Add further tests.
2017-05-04 12:46:39 +02:00
666bbdb26a
TASK: Add tests for mapping class
* Add minimum phpdoc.
* Add tests.
* Fix issue in class.
* Fix phpmd issues.
2017-05-04 11:58:49 +02:00
Daniel Hürtgen
413d8e45f5 Merge branch 'feature/rename-ci-jobs' into 'develop'
TASK: Rename ci documentation jobs

See merge request !88
2017-05-04 11:08:45 +02:00
8db7a8bb1f
TASK: Split legacy mapping into two files
* One files is provided by us for TYPO3 mappings.
* Second one keeps as is and contains the generated mappings.

Relates: #43
2017-05-04 10:44:49 +02:00
cacd15029d
Merge branch 'feature/seperate-tests' into feature/66-ts-structure 2017-05-04 08:45:58 +02:00
470910b07a
Merge branch 'feature/seperate-tests' into feature/45-removed-signals 2017-05-04 08:45:10 +02:00
900f68dd48 Merge branch 'feature/seperate-tests' into 'develop'
TASK: Use test class for each sniff.

See merge request !87
2017-05-04 08:43:11 +02:00
aa5cc51043
Merge branch 'feature/seperate-tests' into feature/15-check-all-possible-occurences-of-class 2017-05-04 08:41:23 +02:00
4031055210
TASK: Rename ci documentation jobs
* To have them much shorter, enabling full title to show up in gitlab
  ui.
2017-05-04 08:38:02 +02:00
7f17db504c
BUGFIX: Fix broken rst syntax 2017-05-04 08:35:25 +02:00
9e3f8b8195
TASK: Document new test implementation 2017-05-04 08:35:13 +02:00
e789311862
TASK: Migrate added test
* As test was added to develop, also migrate it.
2017-05-04 08:30:14 +02:00
a16390d227
Merge branch 'develop' into feature/seperate-tests 2017-05-04 08:29:21 +02:00
34bf941a21 Merge branch 'develop' into feature/15-check-all-possible-occurences-of-class 2017-05-04 08:21:37 +02:00
e5d7f5ac01
Merge branch 'develop' into feature/66-ts-structure 2017-05-04 08:21:11 +02:00
Daniel Hürtgen
dcc0c13dd8 Merge branch 'develop' into 'feature/45-removed-signals'
# Conflicts:
#   Documentation/source/features.rst
2017-05-02 22:15:52 +02:00
Daniel Hürtgen
9bb6810a04 Merge branch 'feature/74-check-removed-typoscript-constants' into 'develop'
Feature/74 check removed typoscript constants

Closes #74 and #76

See merge request !85
2017-05-02 22:14:44 +02:00
Daniel Hürtgen
95da568935 Merge branch 'develop' into 'feature/74-check-removed-typoscript-constants'
# Conflicts:
#   Documentation/source/features.rst
2017-05-02 22:12:23 +02:00
Daniel Hürtgen
cbef72b318 Merge branch 'feature/41-check-removed-classes' into 'develop'
Feature/41 check removed classes

Closes #41

See merge request !80
2017-05-02 22:08:19 +02:00
Daniel Hürtgen
475e38e3fc Merge branch 'develop' into 'feature/41-check-removed-classes'
# Conflicts:
#   Documentation/source/features.rst
2017-05-02 22:06:02 +02:00
Daniel Hürtgen
2ffe2a5676 Merge branch 'feature/71-refactor-removed-code' into 'develop'
Feature/71 refactor removed code

Closes #71

See merge request !79
2017-05-02 22:00:21 +02:00
8312ac3ec6
TASK: Add all hooks
Resolves: #45
2017-05-02 15:50:28 +02:00
4d77e99026
BUGFIX: Fix syntax issue in yaml file
* Ass missing colon.
2017-05-02 15:44:54 +02:00
4d7aeea5ae
FEATURE: Implement removed hook sniff.
* Update docs, add sniff and test.
* Add first configuration.

Relates: #45
2017-05-02 15:43:29 +02:00
2a6bf4f45b Merge branch 'feature/seperate-tests' into feature/45-removed-signals 2017-05-02 15:19:31 +02:00
17368e32f9
TASK: Fix copy and paste issue in docs 2017-05-02 15:15:30 +02:00
ea0dc99e14
TASK: Use test class for each sniff.
* Allow executing tests for single sniff through phpunit '--filter'.
* Provide structure to add further tests for a single sniff.
* Make output more clear, which sniff was tested.
2017-05-02 15:08:21 +02:00
91ab7e3424
TASK: Configure removed or changed signals
Relates: #45
2017-05-02 14:34:52 +02:00
83239ddeee
FEATURE: Add check for removed signals
* Add docs, sniff, tests.
* Add first configuration.

Relates: #45
2017-05-02 14:24:59 +02:00
299c33a075
FEATURE: Add warning for removed TypoScript Constants
* Configure removed constants in TYPO3 7.x.
* Add code / sniff.
* Add test.
* Update docs.

Resolves: #74
2017-05-02 12:44:04 +02:00
582ede2513 TASK: Add removed TypoScript feature to docs 2017-05-02 12:33:32 +02:00
a84f164c49 TASK: Fix typo 2017-05-02 12:33:32 +02:00
a0c9df5667 TASK: Document yaml format for features
* To enable others to configure their own features.

Resolves: #76
2017-05-02 12:33:32 +02:00