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

Meaningless error message #246

Closed
TMWagner opened this issue Sep 30, 2021 · 1 comment
Closed

Meaningless error message #246

TMWagner opened this issue Sep 30, 2021 · 1 comment

Comments

@TMWagner
Copy link

TMWagner commented Sep 30, 2021

How is drupal-check error?

I've just installed drupal-check using composer as described here on a Drupal 9 site.

I

drupal-check is installed using the phar
drupal-check is installed globally via Composer
drupal-check is installed globally using consolidation/cgr
drupal-check is installed as a dependency to my project

Environment:

  • OS: Mac OS Big Sur
  • PHP Version: 7.4
  • Drupal core: 9.3

Describe the bug
I attempted a command used in the examples:
vendor/bin/drupal-check -ad --drupal-root=web web/modules/contrib/address

Returned meaningless error messages

Performing deprecation checks
Performing analysis checks
Analyzing path: /Users/thomas.wagner/htdocs/tableau-www/web/modules/contrib/address
Current working directory: /Users/thomas.wagner/htdocs/tableau-www
Using Drupal root: /Users/thomas.wagner/htdocs/tableau-www/web
Using vendor root: /Users/thomas.wagner/htdocs/tableau-www/vendor
Assumed running as global dependency
PHPStan path: /Users/thomas.wagner/htdocs/tableau-www/vendor/phpstan/phpstan/phpstan.phar
PHPStan configuration path: /private/var/folders/0y/1yh6g6356c77lkxxj1v8wsbh0000gq/T/drupal_check_phpstan_1632972522.neon
PHPStan configuration:
parameters:
	tipsOfTheDay: false
	reportUnmatchedIgnoredErrors: false
	excludePaths:
		- */tests/Drupal/Tests/Listeners/Legacy/*
		- */tests/fixtures/*.php
		- */settings*.php
		- */node_modules/*

	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.#"
		- "#Unsafe usage of new static\\(\\)#"

	drupal:
		drupal_root: /Users/thomas.wagner/htdocs/tableau-www/web

	level: 4
	bootstrapFiles:
		- /Users/thomas.wagner/htdocs/tableau-www/vendor/mglaman/drupal-check/error-bootstrap.php

includes:
	- /Users/thomas.wagner/htdocs/tableau-www/vendor/phpstan/phpstan-deprecation-rules/rules.neon
	- /Users/thomas.wagner/htdocs/tableau-www/vendor/mglaman/phpstan-drupal/extension.neon


Executing PHPStan
Configuration parameters excludes_analyse and excludePaths cannot be used at the same time.

Parameter excludes_analyse has been deprecated so use excludePaths only from now on.

Finished executing PHPStan
Unlinking PHPStan configuration
Return PHPStan exit code

Console output
Paste the output of the console when running the command with -vvv

@mglaman
Copy link
Owner

mglaman commented Nov 15, 2021

Returned meaningless error messages

Can you explain what is the "meaningless" error message?

@mglaman mglaman closed this as completed Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants