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

Features/GitHub workflows #6

Merged
merged 5 commits into from
Mar 9, 2024
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: 2 additions & 2 deletions .github/workflows/code-format-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: php ./vendor/bin/phplint

- name: Run PHP_CodeSniffer
run: php ./vendor/bin/phpcs --standard=phpcs.xml
run: php ./vendor/bin/phpcs --standard=./configs/phpcs.xml

- name: Run Psalm
run: php ./vendor/bin/psalm --config=psalm.xml
run: php ./vendor/bin/psalm --config=./configs/psalm.xml
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -87,22 +87,22 @@ clear_cache:
# sudo apt-get install php-xml
# sudo apt install php-codesniffer
format:
./vendor/bin/phpcbf --standard=phpcs.xml app/ || true
./vendor/bin/phpcbf --standard=./configs/phpcs.xml app/ || true

format_from_composer:
composer run format

lint:
./vendor/bin/phplint --configuration .phplint.yml
./vendor/bin/phplint --configuration ./configs/.phplint.yml

lint_from_composer:
composer run lint

check_format:
./vendor/bin/phpcs --standard=phpcs.xml app/ > warnings
./vendor/bin/phpcs --standard=./configs/phpcs.xml app/ > warnings

check_format_from_composer:
composer run check_format

psalm:
vendor/bin/psalm
vendor/bin/psalm --config=./configs/psalm.xml
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions psalm.xml → configs/psalm.xml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
<?xml version="1.0"?>
<psalm
errorLevel="7"
autoloader="vendor/autoload.php"
autoloader="../vendor/autoload.php"
resolveFromConfigFile="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="https://getpsalm.org/schema/config"
xsi:schemaLocation="https://getpsalm.org/schema/config vendor/vimeo/psalm/config.xsd"
>
<projectFiles>
<directory name="app" />
<directory name="../app" />
<ignoreFiles>
<directory name="vendor" />
<directory name="app/Config" />
<directory name="app/Views" />
<directory name="../vendor" />
<directory name="../app/Config" />
<directory name="../app/Views" />
</ignoreFiles>
</projectFiles>
</psalm>
Loading