-
-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* PHP 8 * PHPStan 0.12. * ninjify/qa 0.12 * ninjify/nunjuck 0.4 * new Makefile * new README
- Loading branch information
1 parent
0fa0760
commit fc96a19
Showing
9 changed files
with
84 additions
and
80 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,28 @@ | ||
.PHONY: qa lint cs csf phpstan tests coverage | ||
.PHONY: install qa cs csf phpstan tests coverage-clover coverage-html | ||
|
||
all: | ||
@$(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$' | xargs | ||
install: | ||
composer update | ||
|
||
vendor: composer.json composer.lock | ||
composer install | ||
qa: phpstan cs | ||
|
||
qa: lint phpstan cs | ||
|
||
lint: vendor | ||
vendor/bin/linter src tests | ||
|
||
cs: vendor | ||
cs: | ||
ifdef GITHUB_ACTION | ||
vendor/bin/codesniffer -q --report=checkstyle src tests | cs2pr | ||
else | ||
vendor/bin/codesniffer src tests | ||
endif | ||
|
||
csf: vendor | ||
csf: | ||
vendor/bin/codefixer src tests | ||
|
||
phpstan: vendor | ||
phpstan: | ||
vendor/bin/phpstan analyse -l max -c phpstan.neon src | ||
|
||
tests: vendor | ||
tests: | ||
vendor/bin/tester -s -p php --colors 1 -C tests/cases | ||
|
||
coverage: vendor | ||
coverage-clover: | ||
vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage ./coverage.xml --coverage-src ./src tests/cases | ||
|
||
coverage-html: | ||
vendor/bin/tester -s -p phpdbg --colors 1 -C --coverage ./coverage.html --coverage-src ./src tests/cases |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
includes: | ||
- vendor/phpstan/phpstan-nette/extension.neon | ||
- vendor/phpstan/phpstan-nette/rules.neon | ||
- vendor/phpstan/phpstan/conf/bleedingEdge.neon | ||
- vendor/phpstan/phpstan-deprecation-rules/rules.neon | ||
- vendor/phpstan/phpstan-strict-rules/rules.neon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
<?xml version="1.0"?> | ||
<ruleset> | ||
<!-- Contributte Coding Standard --> | ||
<rule ref="./vendor/ninjify/coding-standard/contributte.xml"> | ||
<exclude name="Squiz.Commenting.FunctionComment.InvalidTypeHint"/> | ||
</rule> | ||
<rule ref="./vendor/ninjify/coding-standard/contributte.xml"/> | ||
|
||
<!-- Specific rules --> | ||
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName"> | ||
<properties> | ||
<property name="rootNamespaces" type="array" value=" | ||
src=>Contributte\Parsedown, | ||
tests/fixtures=>Tests\Fixtures, | ||
"/> | ||
<property name="rootNamespaces" type="array"> | ||
<element key="src" value="Contributte\Parsedown"/> | ||
<element key="tests/cases" value="Tests\Cases"/> | ||
</property> | ||
</properties> | ||
</rule> | ||
|
||
<!-- Exclude folders --> | ||
<!--Exclude folders --> | ||
<exclude-pattern>/tests/tmp</exclude-pattern> | ||
</ruleset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters