Skip to content

Use composer-require-checker #9

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

Merged
merged 1 commit into from
Mar 25, 2019
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
9 changes: 9 additions & 0 deletions .composer-require-checker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"symbol-whitelist": [
"PhpCsFixer\\PhpunitConstraintIsIdenticalString\\Constraint\\IsIdenticalString",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why we need this?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is used in class_alias and recognised as missing dependency: maglnet/ComposerRequireChecker#108


"null", "true", "false",
"static", "self", "parent",
"array", "string", "int", "float", "bool", "iterable", "callable", "void"
]
}
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ before_install:
- composer global show -ND 2>&1 | grep "hirak/prestissimo" || travis_retry composer global require $DEFAULT_COMPOSER_FLAGS hirak/prestissimo

install:
- composer update $DEFAULT_COMPOSER_FLAGS $COMPOSER_FLAGS
- travis_retry composer update $DEFAULT_COMPOSER_FLAGS $COMPOSER_FLAGS
- composer info -D | sort

script:
Expand All @@ -46,10 +46,12 @@ jobs:
stage: Static code analysis
php: 7.3
install:
- travis_retry composer update $DEFAULT_COMPOSER_FLAGS
- travis_retry composer update -d dev-tools $DEFAULT_COMPOSER_FLAGS
- composer info -d dev-tools -D | sort
script:
- composer validate --strict || travis_terminate 1
- composer normalize -d ./dev-tools ./../composer.json --dry-run || travis_terminate 1
- dev-tools/vendor/bin/composer-require-checker check composer.json --config-file=.composer-require-checker.json || travis_terminate 1
- dev-tools/vendor/bin/phpmd src,tests text phpmd.xml || travis_terminate 1
- dev-tools/vendor/bin/php-cs-fixer fix --diff --dry-run -v || travis_terminate 1