Skip to content

Commit 3149184

Browse files
Upgrade rector
1 parent b8647e6 commit 3149184

File tree

18 files changed

+92
-7433
lines changed

18 files changed

+92
-7433
lines changed

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
composer.phar
22
/vendor/
33
/coverage/
4-
/.idea/
4+
/.idea/
5+
.DS_Store
6+
.churn.cache
7+
composer.lock

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ language: php
55

66
php:
77
- '7.4'
8+
- '8.0'
89

910
before_install:
1011
- sudo apt-get -y install dnsutils

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ style-check:
1919
dependency-check:
2020
@vendor/bin/composer-require-checker check -vvv ./composer.json
2121

22+
churn-report:
23+
@vendor/bin/churn run
24+
2225
static-analysis:
2326
@vendor/bin/phpstan analyze --level=max ./src && ./vendor/bin/psalm --show-info=false
2427

churn.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# The maximum number of files to display in the results table.
2+
# Default: 10
3+
filesToShow: 20
4+
5+
# The minimum score a file need to display in the results table.
6+
# Disabled if null.
7+
# Default: 0.1
8+
minScoreToShow: 0
9+
10+
# The command returns an 1 exit code if the highest score is greater than the threshold.
11+
# Disabled if null.
12+
# Default: null
13+
maxScoreThreshold: 0.9
14+
15+
# The number of parallel jobs to use when processing files.
16+
# Default: 10
17+
parallelJobs: 10
18+
19+
# How far back in the VCS history to count the number of commits to a file
20+
# Can be a human readable date like 'One week ago' or a date like '2017-07-12'
21+
# Default: '10 Years ago'
22+
commitsSince: One year ago
23+
24+
# Files to ignore when processing. The full path to the file relative to the root of your project is required.
25+
# Also supports regular expressions.
26+
# Default: All PHP files in the path provided to churn-php are processed.
27+
#filesToIgnore:
28+
29+
# File extensions to use when processing.
30+
# Default: php
31+
fileExtensions:
32+
- php
33+
- inc
34+
35+
# This list is used only if there is no argument when running churn.
36+
# Default: <empty>
37+
directoriesToScan:
38+
- src
39+
- tests/
40+
41+
# List of user-defined hooks.
42+
# They can be referenced by their full qualified class name if churn has access to the autoloader.
43+
# Otherwise the file path can be used as well.
44+
# See below the section about hooks for more details.
45+
# Default: <empty>
46+
#hooks:
47+
48+
# The version control system used for your project.
49+
# Accepted values: fossil, git, mercurial, subversion, none
50+
# Default: git
51+
vcs: git
52+
53+
# The path of the cache file. It doesn't need to exist before running churn.
54+
# Disabled if null.
55+
# Default: null
56+
cachePath: .churn.cache

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,18 @@
2121
"symfony/event-dispatcher": "^5.0 || ^4.0 || ^3.0",
2222
"psr/log": "^1.0",
2323
"guzzlehttp/promises": "^1.3",
24-
"spatie/dns": "^1.4"
24+
"spatie/dns": "^1.5"
2525
},
2626
"require-dev": {
2727
"phpunit/phpunit": "^9.0",
28-
"maglnet/composer-require-checker": "^1.1",
28+
"maglnet/composer-require-checker": "@stable",
2929
"squizlabs/php_codesniffer": "^3.3",
3030
"psy/psysh": "^0.9.9",
3131
"php-coveralls/php-coveralls": "^2.1",
3232
"symfony/cache": "^4.3",
33-
"vimeo/psalm": "^3.5",
34-
"phpstan/phpstan": "^0.12.49",
35-
"rector/rector": "^0.8.28"
33+
"vimeo/psalm": "^4.10",
34+
"rector/rector": "^0.11.58",
35+
"bmitch/churn-php": "^1.5"
3636
},
3737
"autoload": {
3838
"psr-4": {

0 commit comments

Comments
 (0)