phpstan-drupal icon indicating copy to clipboard operation
phpstan-drupal copied to clipboard

Provide some way to disable rules provided

Open mglaman opened this issue 6 years ago • 2 comments

Currently, to use this project and only do deprecation testing one would need to add the following to their phpstan.neon:

	# Ignore phpstan-drupal extension's rules.
	ignoreErrors:
		- '#\Drupal calls should be avoided in classes, use dependency injection instead#'
		- '#Plugin definitions cannot be altered.#'
		- '#Missing cache backend declaration for performance.#'
		- '#Plugin manager has cache backend specified but does not declare cache tags.#'

It would be nice if there was an easier way to kill this as the rules grow.

mglaman avatar Feb 03 '19 15:02 mglaman

Can copy what strict-rules is providing.

mglaman avatar May 10 '23 20:05 mglaman

Dupe of https://github.com/mglaman/phpstan-drupal/issues/385

mglaman avatar May 10 '23 20:05 mglaman