Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Feature: Phan Plugin#171

Merged
corpsee merged 3 commits into
php-censor:masterphp-censor/php-censor:masterfrom
caouecs:plugin_phanCopy head branch name to clipboard
Apr 25, 2018
Merged

Feature: Phan Plugin#171
corpsee merged 3 commits into
php-censor:masterphp-censor/php-censor:masterfrom
caouecs:plugin_phanCopy head branch name to clipboard

Conversation

@caouecs
Copy link
Copy Markdown
Contributor

@caouecs caouecs commented Apr 24, 2018

Contribution type

New plugin

Description of change

I did a plugin for Phan, it launches a command to find PHP files, and after it launches Phan on this list.

Comment thread src/Plugin/Phan.php
/**
* {@inheritdoc}
*/
public function __construct(Builder $builder, Build $build, array $options = [])
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Class PHPCensor\Plugin\Phan::__construct is missing a docblock.

Comment thread src/Plugin/Phan.php
/**
* {@inheritdoc}
*/
public function __construct(Builder $builder, Build $build, array $options = [])
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Class PHPCensor\Plugin\Phan::__construct is missing a docblock.

Comment thread src/Plugin/Phan.php
/**
* {@inheritdoc}
*/
public function __construct(Builder $builder, Build $build, array $options = [])
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Class PHPCensor\Plugin\Phan::__construct is missing a docblock.

Comment thread src/Plugin/Phan.php
*
* @throws \Exception
*/
protected function processReport($jsonString)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Class PHPCensor\Plugin\Phan::processReport is missing a docblock.

Comment thread src/Plugin/Phan.php Outdated
'phan',
$data['check_name']."\n\n".$data['description'],
$this->severity($data['severity']),
$data['location']['path'] ?? '??',
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It doesn't work in PHP 5.6.

@corpsee
Copy link
Copy Markdown
Member

corpsee commented Apr 24, 2018

@caouecs Excellent work! Can you fix code to support PHP 5.6 please?

@corpsee corpsee added this to the 1.0 milestone Apr 25, 2018
@corpsee corpsee changed the title feature: Phan Plugin Feature: Phan Plugin Apr 25, 2018
@caouecs
Copy link
Copy Markdown
Contributor Author

caouecs commented Apr 25, 2018

Done

@corpsee corpsee merged commit e81e7a9 into php-censor:master Apr 25, 2018
@corpsee
Copy link
Copy Markdown
Member

corpsee commented Apr 25, 2018

@caouecs Thanks!

@caouecs caouecs deleted the plugin_phan branch April 25, 2018 12:09
@corpsee corpsee removed this from the Version 1.0.* (patch) milestone May 7, 2019
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.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.