Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/phpstan #126

Merged
merged 11 commits into from
Nov 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/ci-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@ jobs:
run: |
vendor/bin/phpcs --standard=PSR12 lib/php/*
- name: Run code static analysis
run: |
vendor/bin/phpstan analyze --ansi --no-interaction --no-progress
- name: Conversions tests
run: for i in `ls tests/data/*.xml`; do ./bin/convert $i || exit 1; done

Expand Down
9 changes: 8 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,20 @@
"php": ">=7.4",
"seld/jsonlint": "^1.10",
"swaggest/json-schema": "^0.12.42",
"symfony/polyfill-php81": "^1.28"
"symfony/polyfill-php81": "^1.28",
"ext-json": "*",
"ext-libxml": "*",
"ext-simplexml": "*",
"ext-ctype": "*",
"ext-curl": "*"
},
"autoload": {
"files": ["lib/php/Converter.php", "lib/php/FilesToJSON.php"]
},
"bin": ["bin/convert", "bin/build_hw_jsons", "bin/refresh_hw_sources","bin/validate"],
"require-dev": {
"phpstan/phpstan": "^1.10",
"phpstan/phpstan-deprecation-rules": "^1.1",
"phpunit/phpunit": "^9.6",
"squizlabs/php_codesniffer": "^3.7"
},
Expand Down
Loading