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/phan #336

Merged
merged 15 commits into from
Apr 4, 2017
Merged

Feature/phan #336

merged 15 commits into from
Apr 4, 2017

Conversation

tombevers
Copy link
Contributor

@tombevers tombevers commented Mar 31, 2017

Q A
Branch master
Bug fix? no
New feature? yes
BC breaks? no
Deprecations? no
Documented? yes
Fixed tickets #226

Added new task Phan

New Task Checklist:

  • Is the README.md file updated?
  • Are the dependencies added to the composer.json suggestions?
  • Is the doc/tasks.md file updated?
  • Are the task parameters documented?
  • Is the task registered in the tasks.yml file?
  • Does the task contains phpspec tests?
  • Is the configuration having logical allowed types?
  • Does the task run in the correct context?
  • Is the run() method readable?
  • Is the run() method using the configuration correctly?
  • Are all CI services returning green?

Copy link
Contributor

@veewee veewee left a comment

Choose a reason for hiding this comment

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

Thanks for the PR! I've added some small changes;

.phan/config.php Outdated
@@ -0,0 +1,3 @@
<?php
Copy link
Contributor

Choose a reason for hiding this comment

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

Since this package is not running han by default, it is ok to remove this file?

README.md Outdated
- kahlan/kahlan: ~3
- nikic/php-parser : ~2.1
- kahlan/kahlan : ~3
- etsy/phan : dev-master@dev
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you use one of the stable versions instead?

grumphp.yml.dist Outdated
@@ -7,6 +7,7 @@ parameters:
ignore_patterns:
- "spec/*Spec.php"
- "test/*.php"
- ".phan/*.php"
Copy link
Contributor

Choose a reason for hiding this comment

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

This one can be removed when you remove the config file that isn't used.

{
$options = $this->getConfigurableOptions();
$options->shouldBeAnInstanceOf(OptionsResolver::class);
$options->getDefinedOptions()->shouldContain('exclude');
Copy link
Contributor

Choose a reason for hiding this comment

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

The config_file setting is missing

@@ -0,0 +1,108 @@
<?php
Copy link
Contributor

Choose a reason for hiding this comment

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

There are 2 spec files in this PR. Can you use the PSR-4 version?


$arguments = $this->processBuilder->createArgumentsForCommand('phan');

$arguments->addOptionalArgumentWithSeparatedValue('-k', $config['config_file']);
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you use the long argument names? That makes debugging a bit easier in the future :)

@veewee veewee added this to the Version 0.11.4 milestone Mar 31, 2017
composer.json Outdated
@@ -52,7 +52,8 @@
"sebastian/phpcpd": "Lets GrumPHP find duplicated code.",
"sensiolabs/security-checker": "Lets GrumPHP be sure that there are no known security issues.",
"squizlabs/php_codesniffer": "Lets GrumPHP sniff on your code.",
"sstalle/php7cc": "Lets GrumPHP check PHP 5.3 - 5.6 code compatibility with PHP 7."
"sstalle/php7cc": "Lets GrumPHP check PHP 5.3 - 5.6 code compatibility with PHP 7.",
"etsy/phan": "Lets GrumPHP unleash a static analyzer on your code"
Copy link
Contributor

Choose a reason for hiding this comment

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

This list is alphabetically. Can you change the order?

parameters:
tasks:
phan:
config_file: ~
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you use the correct default values here?


$arguments = $this->processBuilder->createArgumentsForCommand('phan');

$arguments->addOptionalArgumentWithSeparatedValue('-config-file', $config['config_file']);
Copy link
Contributor

Choose a reason for hiding this comment

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

The documentation states that the long parameters are double dashed. This probably won't work with single dashes.

@veewee veewee merged commit af9e464 into phpro:master Apr 4, 2017
@veewee
Copy link
Contributor

veewee commented Apr 4, 2017

Thanks for your work!

@veewee veewee mentioned this pull request Apr 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants