-
Notifications
You must be signed in to change notification settings - Fork 57
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
Add vimeo/psalm as new tool #87
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- documentation
-
internalClass
-
composer.lock
@@ -0,0 +1,40 @@ | |||
<?xml version="1.0"?> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great idea to define XML template in twig!
composer.lock
Outdated
@@ -4,8 +4,7 @@ | |||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please revert changes in composer.lock
.
I know that lock file is not up to date. I'll update before releasing a new version.
'psalm' => array( | ||
'optionSeparator' => '=', | ||
'xml' => ['psalm.xml'], | ||
'errorsXPath' => '//item/severity[text()=\'error\']', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add internalClass
. It prevents running a suggested tool when the tool is not installed.
phpqa should quietly ignore the tool, not show an error message:
# bad
$ ./phpqa --verbose --report --config tests/.travis --tools psalm
[FileSystem\CleanDir] Cleaned build/
[FileSystem\FilesystemStack] mkdir ["build\/"]
[Edge\QA\Task\ParallelExec] "/phpqa-psalm/vendor/bin/psalm" --config="build/psalm-config.xml" --output-format=console --show-info=true --report="build//psalm.xml"
1/1 [============================] 100%
[Edge\QA\Task\ParallelExec] Output for "/phpqa-psalm/vendor/bin/psalm" --config="build/psalm-config.xml" --output-format=console --show-info=true --report="build//psalm.xml"
sh: 1: /phpqa-psalm/vendor/bin/psalm: not found
# good
$ ./phpqa --verbose --report --config tests/.travis --tools psalm
[FileSystem\CleanDir] Cleaned build/
[FileSystem\FilesystemStack] mkdir ["build\/"]
0 [>---------------------------]
[Edge\QA\Task\ParallelExec] 0 processes finished running
[Edge\QA\Task\ParallelExec] Done in 0s
After that you can add psalm to bin/ci.sh (it will be tested in php 7.1)
) | ||
); | ||
$psalmConfigFile = escapePath($psalmConfigFile); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add documentation (#suggested tools (stable status), #output modes, #advanced configuration).
Please mention in psalm.config
that analyzedDirs
and ignoredDirs
are not used when custom config is specified (you can copy-paste it from phpunit.config
).
@zdenekdrahos Is it good or you need more? |
Perfect! |
Closes #85