Skip to content

Commit 140401f

Browse files
committed
Simplify setup
1 parent 91d5fa0 commit 140401f

File tree

3 files changed

+6
-12
lines changed

3 files changed

+6
-12
lines changed

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/.build/
21
/vendor/
32
/.phpunit.result.cache
43
/.php-cs-fixer.cache

Makefile

+2-6
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ it: fix stan test ## Runs all common targets
33

44
.PHONY: coverage
55
coverage: vendor ## Collects coverage from running unit tests with phpunit
6-
mkdir -p .build/phpunit
7-
vendor/bin/phpunit --dump-xdebug-filter=.build/phpunit/xdebug-filter.php
8-
vendor/bin/phpunit --coverage-text --prepend=.build/phpunit/xdebug-filter.php
6+
vendor/bin/phpunit --coverage-text
97

108
.PHONY: fix
119
fix: vendor ## Fix the codestyle
@@ -18,12 +16,10 @@ help: ## Displays this list of targets with descriptions
1816

1917
.PHONY: stan
2018
stan: vendor ## Runs a static analysis with phpstan
21-
mkdir -p .build/phpstan
22-
vendor/bin/phpstan analyse --configuration=phpstan.neon
19+
vendor/bin/phpstan analyse
2320

2421
.PHONY: test
2522
test: vendor ## Runs auto-review, unit, and integration tests with phpunit
26-
mkdir -p .build/phpunit
2723
vendor/bin/phpunit
2824

2925
vendor: composer.json

phpstan.neon

+4-5
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@ parameters:
55
paths:
66
- src
77
- tests
8-
tmpDir: %currentWorkingDirectory%/.build/phpstan
98
exceptions:
10-
checkedExceptionRegexes:
11-
- '#.*#'
12-
check:
13-
missingCheckedExceptionInThrows: true
9+
checkedExceptionRegexes:
10+
- '#.*#'
11+
check:
12+
missingCheckedExceptionInThrows: true
1413
ignoreErrors:
1514
- message: "#Method .* throws checked exception .* but it's missing from the PHPDoc @throws tag.#"
1615
paths:

0 commit comments

Comments
 (0)