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

Phpstan extra config values #110

Closed
ndench opened this issue Feb 9, 2018 · 0 comments
Closed

Phpstan extra config values #110

ndench opened this issue Feb 9, 2018 · 0 comments

Comments

@ndench
Copy link
Contributor

ndench commented Feb 9, 2018

Phpstan allows for more than just parameters in the phpstan.neon file. For example see phpstan's own phpstan.neon:

includes:
	- ../vendor/phpstan/phpstan-php-parser/extension.neon
	- ../vendor/phpstan/phpstan-phpunit/extension.neon
	- ../vendor/phpstan/phpstan-phpunit/rules.neon
	- ../vendor/phpstan/phpstan-phpunit/strictRules.neon
	- ../vendor/phpstan/phpstan-strict-rules/rules.neon
parameters:
	bootstrap: %rootDir%/tests/phpstan-bootstrap.php
	excludes_analyse:
		- %rootDir%/tests/*/data/*
		- %rootDir%/tests/PHPStan/Analyser/traits/*
		- %rootDir%/tests/notAutoloaded/*
	ignoreErrors:
		- '#Constant PHPSTAN_TEST_CONSTANT not found#'
		- '#Strict comparison using === between PhpParser\\Node\\Expr\\ArrayItem and null will always evaluate to false#'
		- '#Dynamic call to static method PHPUnit\\Framework\\#'
	tmpDir: %rootDir%/tmp
services:
	-
		class: PHPStan\Build\ServiceLocatorDynamicReturnTypeExtension
		tags:
			- phpstan.broker.dynamicMethodReturnTypeExtension

It also has things like includes and services. However phpqa ignores everything that's not in `parameters.

It would be really great if phpqa supported the entire phpstan config because you can do cool things like include phpstan-strict-rules and create custom rules.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant